Modifier and Type | Class and Description |
---|---|
class |
AWSEC2TemplateBuilderImpl |
Constructor and Description |
---|
AWSEC2ComputeService(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,
com.google.common.util.concurrent.ListeningExecutorService userExecutor,
AWSEC2Api client,
ConcurrentMap<RegionAndName,KeyPair> credentialsMap,
com.google.common.cache.LoadingCache<RegionAndName,String> securityGroupMap,
com.google.common.cache.LoadingCache<RegionAndName,String> placementGroupMap,
com.google.common.base.Predicate<PlacementGroup> placementGroupDeleted,
com.google.common.base.Optional<ImageExtension> imageExtension,
GroupNamingConvention.Factory namingConvention,
boolean generateInstanceNames,
com.google.common.base.Optional<SecurityGroupExtension> securityGroupExtension) |
AWSEC2TemplateBuilderImpl(com.google.common.base.Supplier<Set<? extends Location>> locations,
ImageCacheSupplier images,
com.google.common.base.Supplier<Set<? extends Hardware>> sizes,
com.google.common.base.Supplier<Location> defaultLocation,
javax.inject.Provider<TemplateOptions> optionsProvider,
javax.inject.Provider<TemplateBuilder> defaultTemplateProvider,
GetImageStrategy getImageStrategy,
com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>> imageMap) |
Constructor and Description |
---|
CloudStackComputeService(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,
com.google.common.util.concurrent.ListeningExecutorService userExecutor,
CloudStackApi client,
com.google.common.cache.LoadingCache<ZoneAndName,SecurityGroup> securityGroupMap,
com.google.common.cache.LoadingCache<String,SshKeyPair> keyPairCache,
com.google.common.base.Function<Set<? extends NodeMetadata>,com.google.common.collect.Multimap<String,String>> orphanedGroupsByZoneId,
GroupNamingConvention.Factory namingConvention,
com.google.common.base.Supplier<com.google.common.cache.LoadingCache<String,Zone>> zoneIdToZone,
com.google.common.base.Optional<ImageExtension> imageExtension,
com.google.common.base.Optional<SecurityGroupExtension> securityGroupExtension) |
Modifier and Type | Method and Description |
---|---|
TemplateBuilder |
ComputeService.templateBuilder()
Makes a new template builder for this service
|
Modifier and Type | Method and Description |
---|---|
protected TemplateBuilder |
BaseComputeServiceContextModule.provideTemplateOptionallyFromProperties(com.google.inject.Injector injector,
TemplateBuilder template,
String provider,
ValueOfConfigurationKeyOrNull config)
The default template if none is provided.
|
Modifier and Type | Method and Description |
---|---|
protected TemplateBuilder |
BaseComputeServiceContextModule.provideTemplateOptionallyFromProperties(com.google.inject.Injector injector,
TemplateBuilder template,
String provider,
ValueOfConfigurationKeyOrNull config)
The default template if none is provided.
|
Modifier and Type | Method and Description |
---|---|
TemplateBuilder |
TemplateBuilder.any()
prime this builder with parameters known to work on the current compute provider.
|
TemplateBuilder |
TemplateBuilder.biggest()
configure this template to the largest hardware, based on cores, ram, then disk
|
TemplateBuilder |
TemplateBuilderSpec.copyTo(TemplateBuilder builder,
TemplateOptions templateOptions)
Returns a TemplateBuilder configured according to this instance's
specification.
|
TemplateBuilder |
TemplateBuilder.fastest()
configure this template to the fastest hardware, based on cpu
|
TemplateBuilder |
TemplateBuilder.from(String spec)
Configure and return this template, updating it with the populated values of the given
spec . |
TemplateBuilder |
TemplateBuilder.from(TemplateBuilderSpec spec)
Configure and return this template, updating it with the populated values of the given
spec . |
TemplateBuilder |
TemplateBuilder.fromHardware(Hardware hardware)
Configure this template to require the minimum hardware of the parameter.
|
TemplateBuilder |
TemplateBuilder.fromImage(Image image)
Configure this template to fuzzy-match on the image parameter
|
TemplateBuilder |
TemplateBuilder.fromTemplate(Template image)
Configure this template to match the resources of the template parameter.
|
TemplateBuilder |
TemplateBuilder.hardwareId(String hardwareId)
Configure this template to require a specific hardwareId.
|
TemplateBuilder |
TemplateBuilder.hypervisorMatches(String hypervisorRegex)
Configure this template to have an hypervisor that matches the regular expression
|
TemplateBuilder |
TemplateBuilder.imageChooser(com.google.common.base.Function<Iterable<? extends Image>,Image> imageChooser)
Configure this template with a specific preference function which operates on
images which match the other criteria.
|
TemplateBuilder |
TemplateBuilder.imageDescriptionMatches(String imageDescriptionRegex)
Configure this template to have an image description that matches the regular expression
|
TemplateBuilder |
TemplateBuilder.imageId(String imageId)
Configure this template to require a specific imageId.
|
TemplateBuilder |
TemplateBuilder.imageMatches(com.google.common.base.Predicate<Image> condition)
Configure this template to have an image that matches the supplied condition
ex.
|
TemplateBuilder |
TemplateBuilder.imageNameMatches(String imageNameRegex)
Configure this template to have an image name that matches the regular expression
|
TemplateBuilder |
TemplateBuilder.imageVersionMatches(String imageVersionRegex)
Configure this template to have an image version that matches the regular expression
|
TemplateBuilder |
TemplateBuilder.locationId(String locationId)
Configure this template to start in a specific location
|
TemplateBuilder |
TemplateBuilder.minCores(double minCores)
Configure this template to require the minimum cores below
|
TemplateBuilder |
TemplateBuilder.minDisk(double gigabytes)
Configure this template with required minimum disk space in gigabytes
|
TemplateBuilder |
TemplateBuilder.minRam(int megabytes)
Configure this template to require the minimum ram in megabytes below
|
TemplateBuilder |
TemplateBuilder.options(TemplateOptions options)
Sets options on the template (i.e.
|
TemplateBuilder |
TemplateBuilder.os64Bit(boolean is64bit)
Configure this template to require a 64 bit operating system.
|
TemplateBuilder |
TemplateBuilder.osArchMatches(String architecture)
Configure this template to require a specific architecture.
|
TemplateBuilder |
TemplateBuilder.osDescriptionMatches(String osDescriptionRegex)
Configure this template to have an operating system description that matches the regular
expression
|
TemplateBuilder |
TemplateBuilder.osFamily(OsFamily os)
Configure this template to use a specific operating system image.
|
TemplateBuilder |
TemplateBuilder.osNameMatches(String osNameRegex)
Configure this template to have an operating system name that matches the regular expression
|
TemplateBuilder |
TemplateBuilder.osVersionMatches(String osVersionRegex)
Configure this template to have an os version that matches the regular expression
|
TemplateBuilder |
TemplateBuilder.smallest()
configure this template to the smallest hardware, based on cores, ram, then disk
|
Modifier and Type | Method and Description |
---|---|
TemplateBuilder |
TemplateBuilderSpec.copyTo(TemplateBuilder builder,
TemplateOptions templateOptions)
Returns a TemplateBuilder configured according to this instance's
specification.
|
Modifier and Type | Class and Description |
---|---|
class |
TemplateBuilderImpl |
Modifier and Type | Field and Description |
---|---|
protected javax.inject.Provider<TemplateBuilder> |
TemplateBuilderImpl.defaultTemplateProvider |
Modifier and Type | Method and Description |
---|---|
TemplateBuilder |
TemplateBuilderImpl.any()
prime this builder with parameters known to work on the current compute provider.
|
TemplateBuilder |
TemplateBuilderImpl.biggest()
configure this template to the largest hardware, based on cores, ram, then disk
|
TemplateBuilder |
TemplateBuilderImpl.fastest()
configure this template to the fastest hardware, based on cpu
|
TemplateBuilder |
TemplateBuilderImpl.from(String spec) |
TemplateBuilder |
TemplateBuilderImpl.from(TemplateBuilderSpec spec) |
TemplateBuilder |
TemplateBuilderImpl.fromHardware(Hardware hardware)
Configure this template to require the minimum hardware of the parameter.
|
TemplateBuilder |
TemplateBuilderImpl.fromImage(Image image)
Configure this template to fuzzy-match on the image parameter
|
TemplateBuilder |
TemplateBuilderImpl.fromTemplate(Template template)
Configure this template to match the resources of the template parameter.
|
TemplateBuilder |
TemplateBuilderImpl.hardwareId(String hardwareId)
Configure this template to require a specific hardwareId.
|
TemplateBuilder |
TemplateBuilderImpl.hypervisorMatches(String hypervisor)
Configure this template to have an hypervisor that matches the regular expression
|
TemplateBuilder |
TemplateBuilderImpl.imageDescriptionMatches(String descriptionRegex)
Configure this template to have an image description that matches the regular expression
|
TemplateBuilder |
TemplateBuilderImpl.imageId(String imageId)
Configure this template to require a specific imageId.
|
TemplateBuilder |
TemplateBuilderImpl.imageMatches(com.google.common.base.Predicate<Image> condition)
Configure this template to have an image that matches the supplied condition
ex.
|
TemplateBuilder |
TemplateBuilderImpl.imageNameMatches(String nameRegex)
Configure this template to have an image name that matches the regular expression
|
TemplateBuilder |
TemplateBuilderImpl.imageVersionMatches(String imageVersionRegex)
Configure this template to have an image version that matches the regular expression
|
TemplateBuilder |
TemplateBuilderImpl.locationId(String locationId)
Configure this template to start in a specific location
|
TemplateBuilder |
TemplateBuilderImpl.minCores(double minCores)
Configure this template to require the minimum cores below
|
TemplateBuilder |
TemplateBuilderImpl.minDisk(double gigabytes)
Configure this template with required minimum disk space in gigabytes
|
TemplateBuilder |
TemplateBuilderImpl.minRam(int megabytes)
Configure this template to require the minimum ram in megabytes below
|
TemplateBuilder |
TemplateBuilderImpl.options(TemplateOptions options)
Sets options on the template (i.e.
|
TemplateBuilder |
TemplateBuilderImpl.os64Bit(boolean is64Bit) |
TemplateBuilder |
TemplateBuilderImpl.osArchMatches(String osArchitectureRegex)
Configure this template to require a specific architecture.
|
TemplateBuilder |
TemplateBuilderImpl.osDescriptionMatches(String osDescriptionRegex)
Configure this template to have an operating system description that matches the regular
expression
|
TemplateBuilder |
TemplateBuilderImpl.osFamily(OsFamily os)
Configure this template to use a specific operating system image.
|
TemplateBuilder |
TemplateBuilderImpl.osNameMatches(String osNameRegex)
Configure this template to have an operating system name that matches the regular expression
|
TemplateBuilder |
TemplateBuilderImpl.osVersionMatches(String osVersionRegex)
Configure this template to have an os version that matches the regular expression
|
TemplateBuilder |
TemplateBuilderImpl.smallest()
configure this template to the smallest hardware, based on cores, ram, then disk
|
Constructor and Description |
---|
TemplateBuilderImpl(com.google.common.base.Supplier<Set<? extends Location>> locations,
ImageCacheSupplier images,
com.google.common.base.Supplier<Set<? extends Hardware>> hardwares,
com.google.common.base.Supplier<Location> defaultLocation,
javax.inject.Provider<TemplateOptions> optionsProvider,
javax.inject.Provider<TemplateBuilder> defaultTemplateProvider,
GetImageStrategy getImageStrategy) |
Modifier and Type | Method and Description |
---|---|
TemplateBuilder |
BaseComputeService.templateBuilder()
Makes a new template builder for this service
|
Constructor and Description |
---|
BaseComputeService(ComputeServiceContext context,
Map<String,Credentials> credentialStore,
com.google.common.base.Supplier<Set<? extends Image>> images,
com.google.common.base.Supplier<Set<? extends Hardware>> hardwareProfiles,
com.google.common.base.Supplier<Set<? extends Location>> locations,
ListNodesStrategy listNodesStrategy,
GetImageStrategy getImageStrategy,
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<AtomicReference<NodeMetadata>> nodeRunning,
com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeTerminated,
com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeSuspended,
InitializeRunScriptOnNodeOrPlaceInBadMap.Factory initScriptRunnerFactory,
InitAdminAccess initAdminAccess,
RunScriptOnNode.Factory runScriptOnNodeFactory,
PersistNodeCredentials persistNodeCredentials,
ComputeServiceConstants.Timeouts timeouts,
com.google.common.util.concurrent.ListeningExecutorService userExecutor,
com.google.common.base.Optional<ImageExtension> imageExtension,
com.google.common.base.Optional<SecurityGroupExtension> securityGroupExtension) |
Constructor and Description |
---|
EC2ComputeService(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,
com.google.common.util.concurrent.ListeningExecutorService userExecutor,
EC2Api client,
ConcurrentMap<RegionAndName,KeyPair> credentialsMap,
com.google.common.cache.LoadingCache<RegionAndName,String> securityGroupMap,
com.google.common.base.Optional<ImageExtension> imageExtension,
GroupNamingConvention.Factory namingConvention,
boolean generateInstanceNames,
com.google.common.base.Optional<SecurityGroupExtension> securityGroupExtension) |
Modifier and Type | Class and Description |
---|---|
class |
EC2TemplateBuilderImpl |
Constructor and Description |
---|
EC2TemplateBuilderImpl(com.google.common.base.Supplier<Set<? extends Location>> locations,
ImageCacheSupplier images,
com.google.common.base.Supplier<Set<? extends Hardware>> sizes,
com.google.common.base.Supplier<Location> defaultLocation,
javax.inject.Provider<TemplateOptions> optionsProvider,
javax.inject.Provider<TemplateBuilder> defaultTemplateProvider,
GetImageStrategy getImageStrategy,
com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>> imageMap) |
Constructor and Description |
---|
GoGridComputeService(ComputeServiceContext context,
Map<String,Credentials> credentialStore,
com.google.common.base.Supplier<Set<? extends Image>> images,
com.google.common.base.Supplier<Set<? extends Hardware>> hardwareProfiles,
com.google.common.base.Supplier<Set<? extends Location>> locations,
ListNodesStrategy listNodesStrategy,
GetImageStrategy getImageStrategy,
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<AtomicReference<NodeMetadata>> nodeRunning,
com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeTerminated,
com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeSuspended,
InitializeRunScriptOnNodeOrPlaceInBadMap.Factory initScriptRunnerFactory,
InitAdminAccess initAdminAccess,
RunScriptOnNode.Factory runScriptOnNodeFactory,
PersistNodeCredentials persistNodeCredentials,
ComputeServiceConstants.Timeouts timeouts,
com.google.common.util.concurrent.ListeningExecutorService userExecutor,
com.google.common.base.Optional<ImageExtension> imageExtension,
com.google.common.base.Optional<SecurityGroupExtension> securityGroupExtension) |
Constructor and Description |
---|
NovaComputeService(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,
com.google.common.util.concurrent.ListeningExecutorService userExecutor,
CleanupServer cleanupServer,
com.google.common.base.Optional<ImageExtension> imageExtension,
com.google.common.base.Optional<SecurityGroupExtension> securityGroupExtension) |
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.