org.inria.myriads.snoozenode.localcontroller.powermanagement
Class PowerManagementFactory

java.lang.Object
  extended by org.inria.myriads.snoozenode.localcontroller.powermanagement.PowerManagementFactory

public final class PowerManagementFactory
extends Object

Power management features factory.

Author:
Eugen Feller

Method Summary
static Shutdown newShutdownLogic(ShutdownDriver shutdownDriver, ShellCommandExecuter executor)
          Returns shutdown logic.
static Suspend newSuspendLogic(SuspendDriver suspendDriver, ShellCommandExecuter executor)
          Returns suspend logic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newSuspendLogic

public static Suspend newSuspendLogic(SuspendDriver suspendDriver,
                                      ShellCommandExecuter executor)
Returns suspend logic.

Parameters:
suspendDriver - The suspend driver
executor - The shell command executor
Returns:
The suspend instance

newShutdownLogic

public static Shutdown newShutdownLogic(ShutdownDriver shutdownDriver,
                                        ShellCommandExecuter executor)
Returns shutdown logic.

Parameters:
shutdownDriver - The shutdown driver
executor - The shell command executor
Returns:
The shutdown instance


Copyright © 2012. All Rights Reserved.