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

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

public final class Uswsusp
extends Object
implements Suspend

Implementation of userspace software suspend feature.

Author:
Eugen Feller

Constructor Summary
Uswsusp(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

Uswsusp

public Uswsusp(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.