Class SHUFFLE
java.lang.Object
org.jgroups.stack.Protocol
org.jgroups.protocols.SHUFFLE
- All Implemented Interfaces:
Runnable
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()voidrun()Removes a random chosen message from themessages Listinvalid input: '<'\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.booleansetProperties(Properties props) Configures the protocol initially.voidstart()Starts themessagesHandlerinvalid input: '<'\code>voidstop()Stops the messagesHandlerAdds upcoming messages to themessages Listinvalid input: '<'\code> where themessagesHandlerinvalid input: '<'\code> retrieves them.Methods inherited from class Protocol
destroy, down, downThreadEnabled, dumpStats, enableStats, getDownProtocol, getProperties, getProtocolStack, getThreadFactory, getTransport, getUpProtocol, init, printStats, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, resetStats, setDownProtocol, setPropertiesInternal, setProtocolStack, setUpProtocol, statsEnabled, upThreadEnabled
-
Constructor Details
-
SHUFFLE
public SHUFFLE()
-
-
Method Details
-
getName
-
setProperties
Description copied from class:ProtocolConfigures the protocol initially. A configuration string consists of name=value items, separated by a ';' (semicolon), e.g.:"loopback=false;unicast_inport=4444"
- Overrides:
setPropertiesin classProtocol
-
up
-
start
Starts themessagesHandlerinvalid input: '<'\code>- Overrides:
startin classProtocol- Throws:
Exception- Thrown if protocol cannot be started successfully. This will cause the ProtocolStack to fail, soChannel.connect(String)will throw an exception
-
stop
-
run
-