|
||||||||||
| 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 String |
OPTION_PRIORITY
|
static int |
STATUS_CONNECTED
|
static int |
STATUS_CONNECTING
|
static int |
STATUS_NOT_CONNECTED
|
| 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 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 -
Map<String,Object> connectionOptions(Identifier i)
i -
Collection<Identifier> nodesWithPendingMessages()
int queueLength(Identifier i)
i -
long bytesPending(Identifier i)
i -
List<MessageInfo> getPendingMessages(Identifier i)
i -
void openPrimaryConnection(Identifier i,
Map<String,Object> options)
i - notifyMe - when it is openvoid addPrimarySocketListener(PrimarySocketListener<Identifier> listener)
void removePrimarySocketListener(PrimarySocketListener<Identifier> listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||