|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.stack.Protocol org.jgroups.protocols.PERF_TP
public class PERF_TP
Measures the time for a message to travel from the channel to the transport
Field Summary |
---|
Fields inherited from class org.jgroups.stack.Protocol |
---|
down_prot, ergonomics, id, log, name, stack, stats, up_prot |
Constructor Summary | |
---|---|
PERF_TP()
|
Method Summary | |
---|---|
boolean |
done()
|
java.lang.Object |
down(Event evt)
Caller by the layer above this layer. |
static PERF_TP |
getInstance()
|
long |
getNumMessages()
|
long |
getTotalTime()
|
void |
init()
Called after instance has been created (null constructor) and before protocol is started. |
void |
reset()
|
void |
setExpectedMessages(long m)
|
void |
start()
This method is called on a Channel.connect(String) . |
java.lang.String |
toString()
|
java.lang.Object |
up(Event evt)
An event was received from the layer below. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PERF_TP()
Method Detail |
---|
public static PERF_TP getInstance()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean done()
public long getNumMessages()
public void setExpectedMessages(long m)
public void reset()
public long getTotalTime()
public void init() throws java.lang.Exception
Protocol
init
in class Protocol
java.lang.Exception
- Thrown if protocol cannot be initialized successfully. This will cause the
ProtocolStack to fail, so the channel constructor will throw an exceptionpublic void start() throws java.lang.Exception
Protocol
Channel.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.
start
in class Protocol
java.lang.Exception
- Thrown if protocol cannot be started successfully. This will cause the ProtocolStack
to fail, so Channel.connect(String)
will throw an exceptionpublic java.lang.Object down(Event evt)
down
in class Protocol
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()
.
up
in class Protocol
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |