org.inria.myriads.snoozenode.localcontroller.powermanagement.shutdown.impl
Class SystemShutdown
java.lang.Object
org.inria.myriads.snoozenode.localcontroller.powermanagement.shutdown.impl.SystemShutdown
- All Implemented Interfaces:
- Shutdown
public final class SystemShutdown
- extends Object
- implements Shutdown
Shutdown based on the native shutdown command.
- Author:
- Eugen Feller
Method Summary |
boolean |
shutdown()
Will call the native "shutdown" command to turn off the resource. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemShutdown
public SystemShutdown(ShellCommandExecuter executor)
- Constructor.
- Parameters:
executor
- The executor
shutdown
public boolean shutdown()
- Will call the native "shutdown" command to turn off the resource.
- Specified by:
shutdown
in interface Shutdown
- Returns:
- true if everything ok, false otherwise
Copyright © 2012. All Rights Reserved.