@Singleton public class JoyentCloudComputeService extends BaseComputeService
| Modifier and Type | Field and Description | 
|---|---|
protected com.google.common.cache.LoadingCache<DatacenterAndName,KeyAndPrivateKey> | 
keyCache  | 
protected GroupNamingConvention.Factory | 
namingConvention  | 
protected JoyentCloudApi | 
novaApi  | 
protected com.google.common.base.Function<Set<? extends NodeMetadata>,com.google.common.collect.Multimap<String,String>> | 
orphanedGroupsByDatacenterId  | 
context, credentialStore, logger| Modifier | Constructor and Description | 
|---|---|
protected  | 
JoyentCloudComputeService(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,
                         GetImageStrategy getImageStrategy,
                         GetNodeMetadataStrategy getNodeMetadataStrategy,
                         CreateNodesInGroupThenAddToSet runNodesAndAddToSetStrategy,
                         RebootNodeStrategy rebootNodeStrategy,
                         DestroyNodeStrategy destroyNodeStrategy,
                         ResumeNodeStrategy startNodeStrategy,
                         SuspendNodeStrategy stopNodeStrategy,
                         javax.inject.Provider<TemplateBuilder> templateBuilderProvider,
                         javax.inject.Provider<TemplateOptions> templateOptionsProvider,
                         com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning,
                         com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeTerminated,
                         com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeSuspended,
                         InitializeRunScriptOnNodeOrPlaceInBadMap.Factory initScriptRunnerFactory,
                         RunScriptOnNode.Factory runScriptOnNodeFactory,
                         InitAdminAccess initAdminAccess,
                         PersistNodeCredentials persistNodeCredentials,
                         ComputeServiceConstants.Timeouts timeouts,
                         ExecutorService executor,
                         JoyentCloudApi novaApi,
                         com.google.common.cache.LoadingCache<DatacenterAndName,KeyAndPrivateKey> keyCache,
                         com.google.common.base.Function<Set<? extends NodeMetadata>,com.google.common.collect.Multimap<String,String>> orphanedGroupsByDatacenterId,
                         GroupNamingConvention.Factory namingConvention,
                         com.google.common.base.Optional<ImageExtension> imageExtension)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
cleanUpIncidentalResourcesOfDeadNodes(Set<? extends NodeMetadata> deadNodes)  | 
JoyentCloudTemplateOptions | 
templateOptions()
returns template options, except of type  
JoyentCloudTemplateOptions. | 
createNodesInGroup, createNodesInGroup, createNodesInGroup, destroyNode, destroyNodesMatching, doDestroyNode, getContext, getImage, getImageExtension, getNodeMetadata, listAssignableLocations, listHardwareProfiles, listImages, listNodes, listNodesDetailsMatching, rebootNode, rebootNodesMatching, resumeNode, resumeNodesMatching, runScriptOnNode, runScriptOnNode, runScriptOnNode, runScriptOnNode, runScriptOnNodesMatching, runScriptOnNodesMatching, runScriptOnNodesMatching, runScriptOnNodesMatching, submitScriptOnNode, suspendNode, suspendNodesMatching, templateBuilder, updateNodeWithCredentialsIfPresentprotected final JoyentCloudApi novaApi
protected final com.google.common.cache.LoadingCache<DatacenterAndName,KeyAndPrivateKey> keyCache
protected final com.google.common.base.Function<Set<? extends NodeMetadata>,com.google.common.collect.Multimap<String,String>> orphanedGroupsByDatacenterId
protected final GroupNamingConvention.Factory namingConvention
@Inject protected JoyentCloudComputeService(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, GetImageStrategy getImageStrategy, GetNodeMetadataStrategy getNodeMetadataStrategy, CreateNodesInGroupThenAddToSet runNodesAndAddToSetStrategy, RebootNodeStrategy rebootNodeStrategy, DestroyNodeStrategy destroyNodeStrategy, ResumeNodeStrategy startNodeStrategy, SuspendNodeStrategy stopNodeStrategy, javax.inject.Provider<TemplateBuilder> templateBuilderProvider, @Named(value="DEFAULT") javax.inject.Provider<TemplateOptions> templateOptionsProvider, @Named(value="jclouds.compute.timeout.node-running") com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning, @Named(value="jclouds.compute.timeout.node-terminated") com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeTerminated, @Named(value="jclouds.compute.timeout.node-suspended") com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeSuspended, InitializeRunScriptOnNodeOrPlaceInBadMap.Factory initScriptRunnerFactory, RunScriptOnNode.Factory runScriptOnNodeFactory, InitAdminAccess initAdminAccess, PersistNodeCredentials persistNodeCredentials, ComputeServiceConstants.Timeouts timeouts, @Named(value="jclouds.user-threads") ExecutorService executor, JoyentCloudApi novaApi, com.google.common.cache.LoadingCache<DatacenterAndName,KeyAndPrivateKey> keyCache, com.google.common.base.Function<Set<? extends NodeMetadata>,com.google.common.collect.Multimap<String,String>> orphanedGroupsByDatacenterId, GroupNamingConvention.Factory namingConvention, com.google.common.base.Optional<ImageExtension> imageExtension)
protected void cleanUpIncidentalResourcesOfDeadNodes(Set<? extends NodeMetadata> deadNodes)
cleanUpIncidentalResourcesOfDeadNodes in class BaseComputeServicepublic JoyentCloudTemplateOptions templateOptions()
JoyentCloudTemplateOptions.templateOptions in interface ComputeServicetemplateOptions in class BaseComputeServiceCopyright © 2009-2013 jclouds. All Rights Reserved.