Constructor and Description |
---|
TP.ProtocolAdapter(java.lang.String cluster_name,
java.lang.String transport_name,
Protocol up,
Protocol down,
java.lang.String pattern,
Address addr) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
down(Event evt)
An event is to be sent down the stack.
|
java.util.List<Address> |
getMembers() |
java.lang.String |
getName() |
ThreadFactory |
getThreadFactory()
Supposed to be overwritten by subclasses.
|
java.lang.String |
toString() |
java.lang.Object |
up(Event evt)
An event was received from the layer below.
|
destroy, downThreadEnabled, dumpStats, enableStats, getDownProtocol, getProperties, getProtocolStack, getTransport, getUpProtocol, init, printStats, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, resetStats, setDownProtocol, setProperties, setPropertiesInternal, setProtocolStack, setUpProtocol, start, statsEnabled, stop, upThreadEnabled
public java.util.List<Address> getMembers()
public ThreadFactory getThreadFactory()
Protocol
getThreadFactory
in class Protocol
public java.lang.Object down(Event evt)
Protocol
down_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)
Protocol
down_prot.down()
or c) the event (or another event) is sent up
the stack using up_prot.up()
.public java.lang.String toString()
toString
in class java.lang.Object
Copyright ? 1998-2008 Bela Ban. All Rights Reserved.