org.inria.myriads.snoozenode.groupmanager.init
public final class GroupManagerInit extends Object
Constructor and Description |
---|
GroupManagerInit(NodeConfiguration nodeConfiguration,
org.inria.myriads.snoozecommon.communication.groupmanager.GroupManagerDescription groupManagerDescription,
ExternalNotifier externalNotifier)
Group manager logic constructor.
|
Modifier and Type | Method and Description |
---|---|
EnergySaver |
getEnergySaver()
Returns the energy saver reference.
|
ExternalNotifier |
getExternalNotifier()
Gets the external notifier.
|
GroupManagerRepository |
getRepository()
Returns the group manager repository.
|
StateMachine |
getStateMachine()
.
|
boolean |
onGroupLeaderJoin(org.inria.myriads.snoozecommon.communication.groupmanager.GroupManagerDescription groupLeader)
Routine to join the group leader.
|
void |
stopServices()
Stops the group manager services.
|
public GroupManagerInit(NodeConfiguration nodeConfiguration, org.inria.myriads.snoozecommon.communication.groupmanager.GroupManagerDescription groupManagerDescription, ExternalNotifier externalNotifier) throws Exception
nodeConfiguration
- The node configurationgroupManagerDescription
- The group manager descriptionexternalNotifier
- The external notifierException
- The exceptionpublic void stopServices() throws org.quartz.SchedulerException, IOException
IOException
org.quartz.SchedulerException
public EnergySaver getEnergySaver()
public boolean onGroupLeaderJoin(org.inria.myriads.snoozecommon.communication.groupmanager.GroupManagerDescription groupLeader) throws Exception
groupLeader
- The group leader descriptionException
- The exceptionpublic StateMachine getStateMachine()
public GroupManagerRepository getRepository()
public ExternalNotifier getExternalNotifier()
Copyright © 2013. All Rights Reserved.