org.inria.myriads.snoozenode.bootstrap
Class BootstrapBackend

java.lang.Object
  extended by org.inria.myriads.snoozenode.bootstrap.BootstrapBackend
All Implemented Interfaces:
HeartbeatListener

public final class BootstrapBackend
extends Object
implements HeartbeatListener

Bootstrap backend logic.

Author:
Eugen Feller

Constructor Summary
BootstrapBackend(NodeConfiguration nodeParameters)
          Bootstrap backend constructor.
 
Method Summary
 org.inria.myriads.snoozecommon.communication.groupmanager.GroupManagerDescription getGroupLeaderDescription()
          Return current group leader.
 void onHeartbeatArrival(HeartbeatMessage heartbeatMessage)
          Called by the heartbeat listener upon heartbeat arrival.
 void onHeartbeatFailure()
          Called by the heartbeat listener upon heartbeat failure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BootstrapBackend

public BootstrapBackend(NodeConfiguration nodeParameters)
                 throws Exception
Bootstrap backend constructor.

Parameters:
nodeParameters - The node parameters
Throws:
Exception
Method Detail

getGroupLeaderDescription

public org.inria.myriads.snoozecommon.communication.groupmanager.GroupManagerDescription getGroupLeaderDescription()
Return current group leader.

Returns:
Group leader information

onHeartbeatArrival

public void onHeartbeatArrival(HeartbeatMessage heartbeatMessage)
Called by the heartbeat listener upon heartbeat arrival.

Specified by:
onHeartbeatArrival in interface HeartbeatListener
Parameters:
heartbeatMessage - Heartbeat message

onHeartbeatFailure

public void onHeartbeatFailure()
Called by the heartbeat listener upon heartbeat failure.

Specified by:
onHeartbeatFailure in interface HeartbeatListener


Copyright © 2012. All Rights Reserved.