org.inria.myriads.snoozenode.localcontroller.powermanagement.suspend.impl
Class PmUtils

java.lang.Object
  extended by org.inria.myriads.snoozenode.localcontroller.powermanagement.suspend.impl.PmUtils
All Implemented Interfaces:
Suspend

public final class PmUtils
extends Object
implements Suspend

Wrapper around pm-utils package.

Author:
Eugen Feller

Constructor Summary
PmUtils(ShellCommandExecuter executor)
          Constructor.
 
Method Summary
 boolean suspendToBoth()
          Suspends the node to disk and memory.
 boolean suspendToDisk()
          Suspends the node to disk.
 boolean suspendToRam()
          Suspends the node to ram.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmUtils

public PmUtils(ShellCommandExecuter executor)
Constructor.

Parameters:
executor - The executor
Method Detail

suspendToRam

public boolean suspendToRam()
Suspends the node to ram.

Specified by:
suspendToRam in interface Suspend
Returns:
true if everything ok, false otherwise

suspendToDisk

public boolean suspendToDisk()
Suspends the node to disk.

Specified by:
suspendToDisk in interface Suspend
Returns:
true if everything ok, false otherwise

suspendToBoth

public boolean suspendToBoth()
Suspends the node to disk and memory.

Specified by:
suspendToBoth in interface Suspend
Returns:
true if everything ok, false otherwise


Copyright © 2012. All Rights Reserved.