org.inria.myriads.snoozenode.heartbeat
public final class HeartbeatFactory extends Object
Modifier and Type | Method and Description |
---|---|
static GroupLeaderDiscovery |
newGroupLeaderDiscovery(org.inria.myriads.snoozecommon.communication.NetworkAddress heartbeatAddress,
int timeout,
LocalControllerBackend localControllerBackend)
Creates a new group leader discovery.
|
static GroupManagerHeartbeatHandler |
newGroupManagerHeartbeatHandler(org.inria.myriads.snoozecommon.communication.NetworkAddress heartbeatAddress,
String groupManagerId,
int timeout,
LocalControllerBackend backend)
Creates a new group manager heartbeat handler.
|
static HeartbeatMulticastReceiver |
newHeartbeatMulticastListener(org.inria.myriads.snoozecommon.communication.NetworkAddress heartbeatAddress,
int timeout,
HeartbeatListener heartbeatEvent)
Creates a new heartbeat multicast listener.
|
static HeartbeatMulticastSender |
newHeartbeatMulticastSender(org.inria.myriads.snoozecommon.communication.NetworkAddress heartbeatAddress,
int interval,
HeartbeatMessage heartbeatMessage)
Creates a new heartbeat multicast sender.
|
public static GroupLeaderDiscovery newGroupLeaderDiscovery(org.inria.myriads.snoozecommon.communication.NetworkAddress heartbeatAddress, int timeout, LocalControllerBackend localControllerBackend) throws Exception
heartbeatAddress
- The heartbeat addresstimeout
- The time outlocalControllerBackend
- The local controller backendException
- The exceptionpublic static GroupManagerHeartbeatHandler newGroupManagerHeartbeatHandler(org.inria.myriads.snoozecommon.communication.NetworkAddress heartbeatAddress, String groupManagerId, int timeout, LocalControllerBackend backend) throws Exception
heartbeatAddress
- The heartbeat addressgroupManagerId
- The groupManagerIdtimeout
- The timeoutbackend
- The local controller backendException
- The exceptionpublic static HeartbeatMulticastReceiver newHeartbeatMulticastListener(org.inria.myriads.snoozecommon.communication.NetworkAddress heartbeatAddress, int timeout, HeartbeatListener heartbeatEvent) throws Exception
heartbeatAddress
- The heartbeat addresstimeout
- The timeoutheartbeatEvent
- The heartbeat eventException
- The exceptionpublic static HeartbeatMulticastSender newHeartbeatMulticastSender(org.inria.myriads.snoozecommon.communication.NetworkAddress heartbeatAddress, int interval, HeartbeatMessage heartbeatMessage) throws IOException
heartbeatAddress
- The heartbeat addressinterval
- The intervalheartbeatMessage
- The heartbeat messsageIOException
- ExceptionCopyright © 2013. All Rights Reserved.