org.jclouds.openstack.nova.compute.strategy
Class NovaLifeCycleStrategy

java.lang.Object
  extended by org.jclouds.openstack.nova.compute.strategy.NovaLifeCycleStrategy
All Implemented Interfaces:
RebootNodeStrategy, ResumeNodeStrategy, SuspendNodeStrategy

@Singleton
public class NovaLifeCycleStrategy
extends Object
implements RebootNodeStrategy, SuspendNodeStrategy, ResumeNodeStrategy

Author:
Adrian Cole

Constructor Summary
protected NovaLifeCycleStrategy(NovaClient client, GetNodeMetadataStrategy getNode)
           
 
Method Summary
 NodeMetadata rebootNode(String id)
           
 NodeMetadata resumeNode(String id)
           
 NodeMetadata suspendNode(String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NovaLifeCycleStrategy

@Inject
protected NovaLifeCycleStrategy(NovaClient client,
                                       GetNodeMetadataStrategy getNode)
Method Detail

rebootNode

public NodeMetadata rebootNode(String id)
Specified by:
rebootNode in interface RebootNodeStrategy

suspendNode

public NodeMetadata suspendNode(String id)
Specified by:
suspendNode in interface SuspendNodeStrategy

resumeNode

public NodeMetadata resumeNode(String id)
Specified by:
resumeNode in interface ResumeNodeStrategy


Copyright © 2009-2011 jclouds. All Rights Reserved.