bamboo.openhash.multicast
Class MulticastTest
java.lang.Object
bamboo.util.StandardStage
bamboo.openhash.multicast.MulticastTest
- All Implemented Interfaces:
- EventHandlerIF, SingleThreadedEventHandlerIF
public class MulticastTest
- extends StandardStage
- implements SingleThreadedEventHandlerIF
Test class for implementation of multicast
Joins have TTL 60 seconds
Clients re-join every 30 seconds, on average
| Methods inherited from class bamboo.util.StandardStage |
BUG, BUG, BUG, config_get_boolean, config_get_double, config_get_int, config_get_string, configGetInt, destroy, dispatch, enqueue, handleEvents, lookup_stage, now_ms, timer_ms |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
APP
protected static final String APP
- See Also:
- Constant Field Values
client
protected MulticastClient client
rand
protected Random rand
groupname
protected BigInteger groupname
acore
protected ASyncCore acore
digest
protected MessageDigest digest
messageNumber
protected int messageNumber
nodes
protected int nodes
interval_sec
protected int interval_sec
JOIN_TTL
protected final int JOIN_TTL
- See Also:
- Constant Field Values
MulticastTest
public MulticastTest()
init
public void init(ConfigDataIF config)
throws Exception
- Specified by:
init in interface EventHandlerIF- Overrides:
init in class StandardStage
- Throws:
Exception
handleEvent
public void handleEvent(QueueElementIF item)
- Specified by:
handleEvent in interface EventHandlerIF- Overrides:
handleEvent in class StandardStage