public class SEQUENCER extends Protocol
| Modifier and Type | Class | Description |
|---|---|---|
static class |
SEQUENCER.SequencerHeader |
| Constructor | Description |
|---|---|
SEQUENCER() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
down(Event evt) |
An event is to be sent down the stack.
|
java.util.Map<java.lang.String,java.lang.Object> |
dumpStats() |
|
long |
getBroadcast() |
|
Address |
getCoordinator() |
|
long |
getForwarded() |
|
Address |
getLocalAddress() |
|
java.lang.String |
getName() |
|
long |
getReceivedBroadcasts() |
|
long |
getReceivedForwards() |
|
boolean |
isCoordinator() |
|
java.lang.String |
printStats() |
|
void |
resetStats() |
|
boolean |
setProperties(java.util.Properties props) |
Configures the protocol initially.
|
java.lang.Object |
up(Event evt) |
An event was received from the layer below.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, downThreadEnabled, enableStats, getDownProtocol, getProperties, getProtocolStack, getThreadFactory, getTransport, getUpProtocol, init, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, setDownProtocol, setPropertiesInternal, setProtocolStack, setUpProtocol, start, statsEnabled, stop, upThreadEnabledpublic boolean isCoordinator()
public Address getCoordinator()
public Address getLocalAddress()
public long getForwarded()
public long getBroadcast()
public long getReceivedForwards()
public long getReceivedBroadcasts()
public void resetStats()
resetStats in class Protocolpublic java.util.Map<java.lang.String,java.lang.Object> dumpStats()
public java.lang.String printStats()
printStats in class Protocolpublic boolean setProperties(java.util.Properties props)
Protocol"loopback=false;unicast_inport=4444"
setProperties in class Protocolpublic java.lang.Object down(Event evt)
Protocoldown_prot.down(). In case of a GET_ADDRESS event (which tries to
retrieve the stack's address from one of the bottom layers), the layer may need to send
a new response event back up the stack using up_prot.up().public java.lang.Object up(Event evt)
Protocoldown_prot.down() or c) the event (or another event) is sent up
the stack using up_prot.up().Copyright ? 1998-2008 Bela Ban. All Rights Reserved.