org.jclouds.trmk.vcloud_0_8.compute.strategy
Class TerremarkVCloudLifeCycleStrategy

java.lang.Object
  extended by org.jclouds.trmk.vcloud_0_8.compute.strategy.TerremarkVCloudLifeCycleStrategy
All Implemented Interfaces:
RebootNodeStrategy, ResumeNodeStrategy, SuspendNodeStrategy

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

Author:
Adrian Cole

Field Summary
protected  GetNodeMetadataStrategy getNode
           
protected  Logger logger
           
protected  com.google.common.base.Predicate<URI> taskTester
           
 
Constructor Summary
protected TerremarkVCloudLifeCycleStrategy(TerremarkVCloudClient 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

logger

@Named(value="jclouds.compute")
protected Logger logger

taskTester

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

getNode

protected final GetNodeMetadataStrategy getNode
Constructor Detail

TerremarkVCloudLifeCycleStrategy

@Inject
protected TerremarkVCloudLifeCycleStrategy(TerremarkVCloudClient 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.