|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PriorityTransportLayer<Identifier>
Does 3 things: a) Sends messages on a Socket (depending on the options). b) Prioritizes messages into queues. c) calls sendFailed if there is a liveness change
| Field Summary | |
|---|---|
static byte |
DEFAULT_PRIORITY
|
static byte |
HIGH_PRIORITY
|
static byte |
LOW_PRIORITY
|
static byte |
LOWEST_PRIORITY
|
static byte |
MAX_PRIORITY
|
static byte |
MEDIUM_HIGH_PRIORITY
|
static byte |
MEDIUM_LOW_PRIORITY
|
static byte |
MEDIUM_PRIORITY
|
static java.lang.String |
OPTION_PRIORITY
|
static int |
STATUS_CONNECTED
|
static int |
STATUS_CONNECTING
|
static int |
STATUS_NOT_CONNECTED
|
| Method Summary | |
|---|---|
void |
addPrimarySocketListener(PrimarySocketListener<Identifier> listener)
|
void |
addPriorityTransportLayerListener(PriorityTransportLayerListener<Identifier> listener)
|
void |
addTransportLayerListener(TransportLayerListener<Identifier> listener)
|
long |
bytesPending(Identifier i)
The number of bytes to be sent to the identifier |
java.util.Map<java.lang.String,java.lang.Object> |
connectionOptions(Identifier i)
Returns the options on the primary connection |
int |
connectionStatus(Identifier i)
Returns if there is a primary connection to the identifier |
java.util.List<MessageInfo> |
getPendingMessages(Identifier i)
The number of bytes to be sent to the identifier |
java.util.Collection<Identifier> |
nodesWithPendingMessages()
usually used with bytesPending() or queueLength() |
void |
openPrimaryConnection(Identifier i,
java.util.Map<java.lang.String,java.lang.Object> options)
open a primary connection |
int |
queueLength(Identifier i)
Returns the number of messages pending to be sent |
void |
removePrimarySocketListener(PrimarySocketListener<Identifier> listener)
|
void |
removePriorityTransportLayerListener(PriorityTransportLayerListener<Identifier> listener)
|
void |
removeTransportLayerListener(TransportLayerListener<Identifier> listener)
|
| Methods inherited from interface org.mpisws.p2p.transport.TransportLayer |
|---|
acceptMessages, acceptSockets, getLocalIdentifier, openSocket, sendMessage, setCallback, setErrorHandler |
| Methods inherited from interface rice.Destructable |
|---|
destroy |
| Field Detail |
|---|
static final java.lang.String OPTION_PRIORITY
static final byte MAX_PRIORITY
static final byte HIGH_PRIORITY
static final byte MEDIUM_HIGH_PRIORITY
static final byte MEDIUM_PRIORITY
static final byte MEDIUM_LOW_PRIORITY
static final byte LOW_PRIORITY
static final byte LOWEST_PRIORITY
static final byte DEFAULT_PRIORITY
static final int STATUS_NOT_CONNECTED
static final int STATUS_CONNECTING
static final int STATUS_CONNECTED
| Method Detail |
|---|
void addTransportLayerListener(TransportLayerListener<Identifier> listener)
void removeTransportLayerListener(TransportLayerListener<Identifier> listener)
void addPriorityTransportLayerListener(PriorityTransportLayerListener<Identifier> listener)
void removePriorityTransportLayerListener(PriorityTransportLayerListener<Identifier> listener)
int connectionStatus(Identifier i)
i -
java.util.Map<java.lang.String,java.lang.Object> connectionOptions(Identifier i)
i -
java.util.Collection<Identifier> nodesWithPendingMessages()
int queueLength(Identifier i)
i -
long bytesPending(Identifier i)
i -
java.util.List<MessageInfo> getPendingMessages(Identifier i)
i -
void openPrimaryConnection(Identifier i,
java.util.Map<java.lang.String,java.lang.Object> options)
i - notifyMe - when it is openvoid addPrimarySocketListener(PrimarySocketListener<Identifier> listener)
void removePrimarySocketListener(PrimarySocketListener<Identifier> listener)
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||