org.inria.myriads.snoozenode.groupmanager.energysaver.wakeup
Class WakeupResources

java.lang.Object
  extended by org.inria.myriads.snoozenode.groupmanager.energysaver.wakeup.WakeupResources

public final class WakeupResources
extends Object

Implements the triggers to wakeup resources.

Author:
Eugen Feller

Constructor Summary
WakeupResources(int wakeupTimeout, int commandExecutionTimeout, GroupManagerRepository repository)
          Constructor.
 
Method Summary
 boolean sleep()
          Causes the resolver module to sleep.
 boolean wakeupLocalController(org.inria.myriads.snoozecommon.communication.localcontroller.LocalControllerDescription localController)
          Wakes up a passive local controller.
 boolean wakeupLocalControllers(List<org.inria.myriads.snoozecommon.communication.localcontroller.LocalControllerDescription> localControllers)
          Wakeup local controllers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WakeupResources

public WakeupResources(int wakeupTimeout,
                       int commandExecutionTimeout,
                       GroupManagerRepository repository)
Constructor.

Parameters:
wakeupTimeout - The wakeup timeout
commandExecutionTimeout - The command execution timeout
repository - The repository
Method Detail

wakeupLocalControllers

public boolean wakeupLocalControllers(List<org.inria.myriads.snoozecommon.communication.localcontroller.LocalControllerDescription> localControllers)
                               throws InterruptedException
Wakeup local controllers.

Parameters:
localControllers - The local controllers
Returns:
true if everything ok, false otherwise
Throws:
InterruptedException

sleep

public boolean sleep()
Causes the resolver module to sleep.

Returns:
true if everything ok, false otherwise

wakeupLocalController

public boolean wakeupLocalController(org.inria.myriads.snoozecommon.communication.localcontroller.LocalControllerDescription localController)
Wakes up a passive local controller.

Parameters:
localController - The local controller description
Returns:
true if everything ok, false otherwise


Copyright © 2012. All Rights Reserved.