org.jclouds.vcloud.compute.strategy
Class VCloudLifeCycleStrategy

java.lang.Object
  extended by org.jclouds.vcloud.compute.strategy.VCloudLifeCycleStrategy
All Implemented Interfaces:
RebootNodeStrategy, ResumeNodeStrategy, SuspendNodeStrategy

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

Author:
Adrian Cole

Field Summary
protected  GetNodeMetadataStrategy getNode
           
protected  com.google.common.base.Predicate<URI> taskTester
           
 
Constructor Summary
protected VCloudLifeCycleStrategy(VCloudClient client, com.google.common.base.Predicate<URI> taskTester, GetNodeMetadataStrategy getNode)
           
 
Method Summary
 NodeMetadata rebootNode(String in)
           
 NodeMetadata resumeNode(String in)
           
 NodeMetadata suspendNode(String in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

taskTester

protected final com.google.common.base.Predicate<URI> taskTester

getNode

protected final GetNodeMetadataStrategy getNode
Constructor Detail

VCloudLifeCycleStrategy

@Inject
protected VCloudLifeCycleStrategy(VCloudClient client,
                                         com.google.common.base.Predicate<URI> taskTester,
                                         GetNodeMetadataStrategy getNode)
Method Detail

rebootNode

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

resumeNode

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

suspendNode

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


Copyright © 2009-2011 jclouds. All Rights Reserved.