public class PERF_TP extends Protocol
| Constructor and Description |
|---|
PERF_TP() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
done() |
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). |
String |
toString() |
Object |
up(Event evt)
An event was received from the layer below.
|
destroy, downThreadEnabled, dumpStats, enableStats, getConfigurableObjects, getDownProtocol, getId, getLevel, getName, getProperties, getProtocolStack, getSocketFactory, getThreadFactory, getTransport, getUpProtocol, getValue, isErgonomics, printStats, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, resetStats, setDownProtocol, setErgonomics, setId, setLevel, setProperties, setPropertiesInternal, setProperty, setProtocolStack, setSocketFactory, setUpProtocol, setValue, setValues, statsEnabled, stop, upThreadEnabledpublic static PERF_TP getInstance()
public boolean done()
public long getNumMessages()
public void setExpectedMessages(long m)
public void reset()
public long getTotalTime()
public void init()
throws Exception
Protocolpublic void start()
throws Exception
ProtocolChannel.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 ProtocolException - Thrown if protocol cannot be started successfully. This will cause the ProtocolStack
to fail, so Channel.connect(String) will throw an exceptionpublic Object down(Event evt)
public Object up(Event evt)
Protocoldown_prot.down() or c) the event (or another event) is sent up
the stack using up_prot.up().Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.