org.inria.myriads.snoozecommon.communication.rest.api
Interface LocalControllerAPI

All Known Implementing Classes:
RESTLocalControllerCommunicator

public interface LocalControllerAPI

Local controller resource interface.

Author:
Eugen Feller

Method Summary
 boolean destroyVirtualMachine(String id)
          Routine to destroy a virtual machine.
 boolean migrateVirtualMachine(MigrationRequest migrationRequest)
          Routine to migrate a virtual machine.
 boolean resumeVirtualMachine(String id)
          Routine to resume a virtual machine.
 boolean shutdownNode()
          Routine to shutdown the host.
 boolean shutdownVirtualMachine(String id)
          Routine to shutdown a virtual machine.
 boolean startVirtualMachine(VirtualMachineMetaData virtualMachineMetaData)
          Start a virtual machine.
 boolean startVirtualMachineMonitoring(VirtualMachineMetaData virtualMachineMetaData)
          Starts virtual machine montitoring.
 boolean suspendNodeToBoth()
          Routine to suspend the local controller to disk.
 boolean suspendNodeToDisk()
          Routine to suspend the local controller to disk.
 boolean suspendNodeToRam()
          Routine to suspend the local controller to ram.
 boolean suspendVirtualMachine(String id)
          Routine to suspend a virtual machine.
 

Method Detail

startVirtualMachine

@Post(value="?startVirtualMachine")
boolean startVirtualMachine(VirtualMachineMetaData virtualMachineMetaData)
Start a virtual machine. (called by the group manager)

Parameters:
virtualMachineMetaData - The virtual machine description
Returns:
true if everything ok, false otherwise

suspendVirtualMachine

@Post(value="?suspendVirtualMachine")
boolean suspendVirtualMachine(String id)
Routine to suspend a virtual machine.

Parameters:
id - The virtual machine identifier
Returns:
true if everything ok, false otherwise

resumeVirtualMachine

@Post(value="?resumeVirtualMachine")
boolean resumeVirtualMachine(String id)
Routine to resume a virtual machine.

Parameters:
id - The virtual machine identifier
Returns:
true if everything ok, false otherwise

shutdownVirtualMachine

@Post(value="?shutdownVirtualMachine")
boolean shutdownVirtualMachine(String id)
Routine to shutdown a virtual machine.

Parameters:
id - The virtual machine identifier
Returns:
true if everything ok, false otherwise

destroyVirtualMachine

@Post(value="?destroyVirtualMachine")
boolean destroyVirtualMachine(String id)
Routine to destroy a virtual machine.

Parameters:
id - The virtual machine identifier
Returns:
true if everything ok, false otherwise

migrateVirtualMachine

@Post(value="?migrateVirtualMachine")
boolean migrateVirtualMachine(MigrationRequest migrationRequest)
Routine to migrate a virtual machine.

Parameters:
migrationRequest - The migration request
Returns:
true if everything ok, false otherwise

suspendNodeToRam

@Get(value="?suspendNodeToRam")
boolean suspendNodeToRam()
Routine to suspend the local controller to ram.

Returns:
true if everything ok, false otherwise

suspendNodeToDisk

@Get(value="?suspendNodeToBoth")
boolean suspendNodeToDisk()
Routine to suspend the local controller to disk.

Returns:
true if everything ok, false otherwise

suspendNodeToBoth

@Get(value="?suspendNodeToBoth")
boolean suspendNodeToBoth()
Routine to suspend the local controller to disk.

Returns:
true if everything ok, false otherwise

shutdownNode

@Get(value="?shutdownNode")
boolean shutdownNode()
Routine to shutdown the host.

Returns:
true if everything ok, false otherwise

startVirtualMachineMonitoring

@Post(value="?startVirtualMachineMonitoring")
boolean startVirtualMachineMonitoring(VirtualMachineMetaData virtualMachineMetaData)
Starts virtual machine montitoring.

Parameters:
virtualMachineMetaData - The virtual machine meta data
Returns:
true if everything ok, false otherwise


Copyright © 2012. All Rights Reserved.