public class PERF_TP extends Protocol
down_handler, down_prot, down_queue, down_thread, down_thread_prio, log, observer, props, stack, stats, up_handler, up_prot, up_queue, up_thread, up_thread_prio
Constructor and Description |
---|
PERF_TP() |
Modifier and Type | Method and Description |
---|---|
boolean |
done() |
void |
down(Event evt)
Caller by the layer above this layer.
|
static PERF_TP |
getInstance() |
java.lang.String |
getName() |
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() |
void |
up(Event evt)
An event was received from the layer below.
|
destroy, downThreadEnabled, dumpStats, enableStats, getDownProtocol, getDownQueue, getProperties, getUpProtocol, getUpQueue, handleSpecialDownEvent, passDown, passUp, printStats, providedDownServices, providedUpServices, receiveDownEvent, receiveUpEvent, requiredDownServices, requiredUpServices, resetStats, setDownProtocol, setObserver, setProperties, setPropertiesInternal, setProtocolStack, setUpProtocol, startDownHandler, startUpHandler, statsEnabled, stop, stopInternal, upThreadEnabled
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
public 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 void down(Event evt)
public void up(Event evt)
Protocol
passDown()
or c) the event (or another event) is sent up
the stack using passUp()
.Copyright ? 1998-2006 Bela Ban. All Rights Reserved.