public class SHUFFLE extends Protocol implements java.lang.Runnable
Constructor and Description |
---|
SHUFFLE() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
void |
run()
Removes a random chosen message from the
messages List<\code> if there
are less than 10 messages in the List it waits some time to ensure to chose from
a set of messages > 1. |
boolean |
setProperties(java.util.Properties props)
Configures the protocol initially.
|
void |
start()
Starts the
messagesHandler<\code> |
void |
stop()
Stops the messagesHandler
|
java.lang.Object |
up(Event evt)
Adds upcoming messages to the
messages List<\code> where the |
destroy, down, downThreadEnabled, dumpStats, enableStats, getDownProtocol, getProperties, getProtocolStack, getThreadFactory, getTransport, getUpProtocol, init, printStats, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, resetStats, setDownProtocol, setPropertiesInternal, setProtocolStack, setUpProtocol, statsEnabled, upThreadEnabled
public boolean setProperties(java.util.Properties props)
Protocol
"loopback=false;unicast_inport=4444"
setProperties
in class Protocol
public java.lang.Object up(Event evt)
messages List<\code> where the messagesHandler<\code>
retrieves them.
public void start() throws java.lang.Exception
messagesHandler<\code>
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 run()
messages List<\code> if there
are less than 10 messages in the List it waits some time to ensure to chose from
a set of messages > 1.
run
in interface java.lang.Runnable
Copyright ? 1998-2008 Bela Ban. All Rights Reserved.