|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.inria.myriads.snoozenode.heartbeat.HeartbeatFactory
public final class HeartbeatFactory
Heartbeat factory.
Method Summary | |
---|---|
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,
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 backend
Exception
- The exceptionpublic static GroupManagerHeartbeatHandler newGroupManagerHeartbeatHandler(org.inria.myriads.snoozecommon.communication.NetworkAddress heartbeatAddress, int timeout, LocalControllerBackend backend) throws Exception
heartbeatAddress
- The heartbeat addresstimeout
- The timeoutbackend
- The local controller backend
Exception
- 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 event
Exception
- The exceptionpublic static HeartbeatMulticastSender newHeartbeatMulticastSender(org.inria.myriads.snoozecommon.communication.NetworkAddress heartbeatAddress, int interval, HeartbeatMessage heartbeatMessage) throws SocketException
heartbeatAddress
- The heartbeat addressinterval
- The intervalheartbeatMessage
- The heartbeat messsage
SocketException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |