| |
|
| java.lang.Object java.lang.Thread org.continuent.sequoia.driver.ControllerPingSender
ControllerPingSender | public class ControllerPingSender extends Thread (Code) | | This thread sends a ping to all controllers in a given list at a given
frequency
author: Gilles Rayrat author: Marc Herbert version: 1.0 |
Method Summary | |
public void | run() Starts pinging controllers.
Controllers will be ping with an interval of at least pingDelayInMs. | void | terminate() | public String | toString() |
logLevel | final int logLevel(Code) | | Level of logging (logs are printed to stdout, see
SequoiaUrl )
|
pingDelayInMs | final int pingDelayInMs(Code) | | Time to wait between 2 successive pings to a controller
|
pingPacket | final ByteBuffer pingPacket(Code) | | Packet sent as a ping
|
ControllerPingSender | public ControllerPingSender(ControllerWatcher father, WatchedControllers controllerList, DatagramChannel channel, int pingDelayInMs, int logLevel)(Code) | | Creates a new ControllerPingSender on the given controller
list with the given frequency
Parameters: controllerList - controllers to ping. Should never be null Parameters: channel - DatagramChannel to use for sending pings Parameters: pingDelayInMs - time to wait between two successive pings Parameters: logLevel - level of logging to use (logs are printed to stdout) |
run | public void run()(Code) | | Starts pinging controllers.
Controllers will be ping with an interval of at least pingDelayInMs. But as
this function is synchronized on the controller list it can be slowed down
if controllers are added/removed, raising up the ping delay
See Also: java.lang.Thread.run |
terminate | void terminate()(Code) | | |
|
|
|