public class SHUFFLE extends Protocol implements java.lang.Runnable
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 |
|---|
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
|
void |
up(Event evt)
Adds upcoming messages to the
messages List<\code> where the |
destroy, down, downThreadEnabled, dumpStats, enableStats, getDownProtocol, getDownQueue, getProperties, getUpProtocol, getUpQueue, handleSpecialDownEvent, init, passDown, passUp, printStats, providedDownServices, providedUpServices, receiveDownEvent, receiveUpEvent, requiredDownServices, requiredUpServices, resetStats, setDownProtocol, setObserver, setPropertiesInternal, setProtocolStack, setUpProtocol, startDownHandler, startUpHandler, statsEnabled, stopInternal, upThreadEnabledpublic boolean setProperties(java.util.Properties props)
Protocol"loopback=false;unicast_inport=4444"
setProperties in class Protocolpublic void up(Event evt)
messages List<\code> where the messagesHandler<\code>
retrieves them.public void start()
throws java.lang.Exception
messagesHandler<\code>start in class Protocoljava.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.RunnableCopyright ? 1998-2006 Bela Ban. All Rights Reserved.