Package org.jgroups.protocols
Class DUMMY_TP
java.lang.Object
org.jgroups.stack.Protocol
org.jgroups.protocols.DUMMY_TP
Dummy transport, returns a fake local address and responds to CONNECT.
Compared to LOOPBACK, this discards everything
- Version:
- $Id: DUMMY_TP.java,v 1.7 2007/01/15 15:59:26 belaban Exp $
- Author:
- Bela Ban
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jgroups.stack.Protocol
destroy, downThreadEnabled, dumpStats, enableStats, getDownProtocol, getProperties, getProtocolStack, getThreadFactory, getTransport, getUpProtocol, printStats, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, resetStats, setDownProtocol, setProperties, setPropertiesInternal, setProtocolStack, setUpProtocol, statsEnabled, stop, up, upThreadEnabled
-
Constructor Details
-
DUMMY_TP
public DUMMY_TP()
-
-
Method Details
-
toString
-
getName
-
init
Description copied from class:Protocol
Called after instance has been created (null constructor) and before protocol is started. Properties are already set. Other protocols are not yet connected and events cannot yet be sent. -
start
Description copied from class:Protocol
This method is called on aChannel.connect(String)
. Starts work. Protocols are connected and queues are ready to receive events. Will be called from bottom to top. This call will replace the START and START_OK events.- Overrides:
start
in classProtocol
- Throws:
Exception
- Thrown if protocol cannot be started successfully. This will cause the ProtocolStack to fail, soChannel.connect(String)
will throw an exception
-
down
Caller by the layer above this layer. Usually we just put this Message into the send queue and let one or more worker threads handle it. A worker thread then removes the Message from the send queue, performs a conversion and adds the modified Message to the send queue of the layer below it, by calling Down).
-