org.jclouds.trmk.vcloud_0_8.compute
Class TerremarkVCloudComputeService
java.lang.Object
org.jclouds.compute.internal.BaseComputeService
org.jclouds.trmk.vcloud_0_8.compute.TerremarkVCloudComputeService
- All Implemented Interfaces:
- ComputeService
@Singleton
public class TerremarkVCloudComputeService
- extends BaseComputeService
- Author:
- Adrian Cole
Constructor Summary |
protected |
TerremarkVCloudComputeService(ComputeServiceContext context,
Map<String,Credentials> credentialStore,
com.google.common.base.Supplier<Set<? extends Image>> images,
com.google.common.base.Supplier<Set<? extends Hardware>> sizes,
com.google.common.base.Supplier<Set<? extends Location>> locations,
ListNodesStrategy listNodesStrategy,
GetNodeMetadataStrategy getNodeMetadataStrategy,
CreateNodesInGroupThenAddToSet runNodesAndAddToSetStrategy,
RebootNodeStrategy rebootNodeStrategy,
DestroyNodeStrategy destroyNodeStrategy,
ResumeNodeStrategy resumeNodeStrategy,
SuspendNodeStrategy suspendNodeStrategy,
javax.inject.Provider<TemplateBuilder> templateBuilderProvider,
javax.inject.Provider<TemplateOptions> templateOptionsProvider,
com.google.common.base.Predicate<NodeMetadata> nodeRunning,
com.google.common.base.Predicate<NodeMetadata> nodeTerminated,
com.google.common.base.Predicate<NodeMetadata> nodeSuspended,
InitializeRunScriptOnNodeOrPlaceInBadMap.Factory initScriptRunnerFactory,
RunScriptOnNode.Factory runScriptOnNodeFactory,
InitAdminAccess initAdminAccess,
PersistNodeCredentials persistNodeCredentials,
ComputeServiceConstants.Timeouts timeouts,
ExecutorService executor,
CleanupOrphanKeys cleanupOrphanKeys,
ConcurrentMap<OrgAndName,KeyPairCredentials> credentialsMap,
NodeMetadataToOrgAndName nodeToOrgAndName)
|
Methods inherited from class org.jclouds.compute.internal.BaseComputeService |
createNodesInGroup, createNodesInGroup, createNodesInGroup, destroyNode, getContext, getNodeMetadata, listAssignableLocations, listHardwareProfiles, listImages, listNodes, listNodesDetailsMatching, rebootNode, rebootNodesMatching, resumeNode, resumeNodesMatching, runNodesWithTag, runNodesWithTag, runNodesWithTag, runScriptOnNode, runScriptOnNode, runScriptOnNode, runScriptOnNode, runScriptOnNodesMatching, runScriptOnNodesMatching, runScriptOnNodesMatching, runScriptOnNodesMatching, runScriptOnNodesMatching, runScriptOnNodesMatching, submitScriptOnNode, suspendNode, suspendNodesMatching, templateBuilder, updateNodeWithCredentialsIfPresent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TerremarkVCloudComputeService
@Inject
protected TerremarkVCloudComputeService(ComputeServiceContext context,
Map<String,Credentials> credentialStore,
com.google.common.base.Supplier<Set<? extends Image>> images,
com.google.common.base.Supplier<Set<? extends Hardware>> sizes,
com.google.common.base.Supplier<Set<? extends Location>> locations,
ListNodesStrategy listNodesStrategy,
GetNodeMetadataStrategy getNodeMetadataStrategy,
CreateNodesInGroupThenAddToSet runNodesAndAddToSetStrategy,
RebootNodeStrategy rebootNodeStrategy,
DestroyNodeStrategy destroyNodeStrategy,
ResumeNodeStrategy resumeNodeStrategy,
SuspendNodeStrategy suspendNodeStrategy,
javax.inject.Provider<TemplateBuilder> templateBuilderProvider,
javax.inject.Provider<TemplateOptions> templateOptionsProvider,
@Named(value="NODE_RUNNING")
com.google.common.base.Predicate<NodeMetadata> nodeRunning,
@Named(value="NODE_TERMINATED")
com.google.common.base.Predicate<NodeMetadata> nodeTerminated,
@Named(value="NODE_SUSPENDED")
com.google.common.base.Predicate<NodeMetadata> nodeSuspended,
InitializeRunScriptOnNodeOrPlaceInBadMap.Factory initScriptRunnerFactory,
RunScriptOnNode.Factory runScriptOnNodeFactory,
InitAdminAccess initAdminAccess,
PersistNodeCredentials persistNodeCredentials,
ComputeServiceConstants.Timeouts timeouts,
@Named(value="jclouds.user-threads")
ExecutorService executor,
CleanupOrphanKeys cleanupOrphanKeys,
ConcurrentMap<OrgAndName,KeyPairCredentials> credentialsMap,
NodeMetadataToOrgAndName nodeToOrgAndName)
destroyNodesMatching
public Set<? extends NodeMetadata> destroyNodesMatching(com.google.common.base.Predicate<NodeMetadata> filter)
- like
BaseComputeService.destroyNodesMatching(com.google.common.base.Predicate)
except that this will
clean implicit keypairs.
- Specified by:
destroyNodesMatching
in interface ComputeService
- Overrides:
destroyNodesMatching
in class BaseComputeService
- Returns:
- list of nodes destroyed
templateOptions
public TerremarkVCloudTemplateOptions templateOptions()
- returns template options, except of type
TerremarkVCloudTemplateOptions
.
- Specified by:
templateOptions
in interface ComputeService
- Overrides:
templateOptions
in class BaseComputeService
Copyright © 2009-2011 jclouds. All Rights Reserved.