org.inria.myriads.snoozenode.localcontroller.powermanagement.shutdown.impl
Class SystemShutdown

java.lang.Object
  extended by 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

Constructor Summary
SystemShutdown(ShellCommandExecuter executor)
          Constructor.
 
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
 

Constructor Detail

SystemShutdown

public SystemShutdown(ShellCommandExecuter executor)
Constructor.

Parameters:
executor - The executor
Method Detail

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.