|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.location.basic.AbstractLocation
brooklyn.location.cloud.AbstractCloudMachineProvisioningLocation
brooklyn.location.jclouds.JcloudsLocation
public class JcloudsLocation extends AbstractCloudMachineProvisioningLocation
For provisioning and managing VMs in a particular provider/region, using jclouds. Configuration flags are defined in JcloudsLocationConfig.
Field Summary | |
---|---|
static Logger |
LOG
|
static java.util.List |
NON_ADDABLE_USERS
|
static java.util.List |
ROOT_ALIASES
these userNames are known to be the preferred/required logins in some common/default images where root@ is not allowed to log in |
static java.lang.String |
ROOT_USERNAME
|
static java.util.Map |
SUPPORTED_TEMPLATE_BUILDER_PROPERTIES
properties which cause customization of the TemplateBuilder |
static java.util.Map |
SUPPORTED_TEMPLATE_OPTIONS_PROPERTIES
properties which cause customization of the TemplateOptions |
Fields inherited from class AbstractLocation | |
---|---|
LOG, PARENT_LOCATION, hostGeoInfo, name |
Constructor Summary | |
JcloudsLocation(java.util.Map conf)
typically wants at least ACCESS_IDENTITY and ACCESS_CREDENTIAL |
|
JcloudsLocation(java.lang.String identity, java.lang.String credential, java.lang.String providerLocationId)
@deprecated since 0.5.0 use map-based constructor |
Method Summary | |
---|---|
static java.io.File
|
asFile(java.lang.Object o)
|
protected Template
|
buildTemplate(ComputeService computeService, ConfigBag config)
returns the jclouds Template which describes the image to be built |
protected void
|
configure(java.util.Map properties)
|
protected JcloudsSshMachineLocation
|
createJcloudsSshMachineLocation(NodeMetadata node, java.lang.String vmHostname, ConfigBag setup)
|
protected java.util.Map
|
extractSshConfig(ConfigBag setup, NodeMetadata node)
|
protected LoginCredentials
|
extractVmCredentials(ConfigBag setup, NodeMetadata node)
|
static java.lang.String
|
fileAsString(java.lang.Object o)
|
static java.util.Set
|
getAllSupportedProperties()
|
ComputeService
|
getComputeService()
|
ComputeService
|
getComputeService(java.util.Map flags)
|
java.lang.String
|
getCredential()
|
protected java.util.Collection
|
getCustomizers(ConfigBag setup)
|
java.lang.String
|
getEndpoint()
|
java.lang.String
|
getIdentity()
|
java.lang.String
|
getJcloudsProviderLocationId()
@deprecated since 0.5.0 use getRegion |
java.lang.String
|
getProvider()
|
java.util.Map
|
getProvisioningFlags(java.util.Collection tags)
|
java.lang.String
|
getRegion()
returns the location ID used by the provider, if set, e.g. us-west-1 |
java.lang.String
|
getUser(ConfigBag config)
|
java.util.Set
|
listNodes()
|
java.util.Set
|
listNodes(java.util.Map flags)
|
JcloudsLocation
|
newSubLocation(java.util.Map newFlags)
|
JcloudsSshMachineLocation
|
obtain()
|
JcloudsSshMachineLocation
|
obtain(TemplateBuilder tb)
|
JcloudsSshMachineLocation
|
obtain(java.util.Map flags, TemplateBuilder tb)
|
JcloudsSshMachineLocation
|
obtain(java.util.Map flags)
core method for obtaining a VM using jclouds; Map should contain CLOUD_PROVIDER and CLOUD_ENDPOINT or CLOUD_REGION, depending on the cloud, as well as ACCESS_IDENTITY and ACCESS_CREDENTIAL, plus any further properties to specify e.g. images, hardware profiles, accessing user (for initial login, and a user potentially to create for subsequent ie normal access) |
JcloudsSshMachineLocation
|
rebindMachine(NodeMetadata metadata)
|
JcloudsSshMachineLocation
|
rebindMachine(java.util.Map flags, NodeMetadata metadata)
|
JcloudsSshMachineLocation
|
rebindMachine(ConfigBag setup)
Brings an existing machine with the given details under management. |
JcloudsSshMachineLocation
|
rebindMachine(java.util.Map flags)
|
protected JcloudsSshMachineLocation
|
registerJcloudsSshMachineLocation(NodeMetadata node, java.lang.String vmHostname, ConfigBag setup)
|
void
|
release(SshMachineLocation machine)
|
protected void
|
setCreationString(ConfigBag config)
attaches a string describing where something is being created (provider, region/location and/or endpoint, callerContext) |
void
|
setDefaultImageId(java.lang.String val)
|
protected boolean
|
setHostname(ConfigBag setup, NodeMetadata metadata, boolean rethrow)
|
protected void
|
setHostnameUpdatingCredentials(ConfigBag setup, NodeMetadata metadata)
|
void
|
setTagMapping(java.util.Map val)
|
protected static byte[]
|
toByteArray(java.lang.Object v)
|
protected static double
|
toDouble(java.lang.Object v)
|
protected static int[]
|
toIntArray(java.lang.Object v)
|
protected static java.util.Map
|
toMapStringString(java.lang.Object v)
|
java.lang.String
|
toString()
|
protected static java.lang.String[]
|
toStringArray(java.lang.Object v)
|
protected void
|
waitForReachable(ComputeService computeService, NodeMetadata node, LoginCredentials expectedCredentials, ConfigBag setup)
|
Methods inherited from class AbstractCloudMachineProvisioningLocation | |
---|---|
extractSshConfig, getProvisioningFlags, newSubLocation |
Field Detail |
---|
public static final Logger LOG
public static final java.util.List NON_ADDABLE_USERS
public static final java.util.List ROOT_ALIASES
public static final java.lang.String ROOT_USERNAME
public static final java.util.Map SUPPORTED_TEMPLATE_BUILDER_PROPERTIES
public static final java.util.Map SUPPORTED_TEMPLATE_OPTIONS_PROPERTIES
Constructor Detail |
---|
public JcloudsLocation(java.util.Map conf)
@Deprecated public JcloudsLocation(java.lang.String identity, java.lang.String credential, java.lang.String providerLocationId)
Method Detail |
---|
public static java.io.File asFile(java.lang.Object o)
protected Template buildTemplate(ComputeService computeService, ConfigBag config)
protected void configure(java.util.Map properties)
protected JcloudsSshMachineLocation createJcloudsSshMachineLocation(NodeMetadata node, java.lang.String vmHostname, ConfigBag setup)
protected java.util.Map extractSshConfig(ConfigBag setup, NodeMetadata node)
protected LoginCredentials extractVmCredentials(ConfigBag setup, NodeMetadata node)
public static java.lang.String fileAsString(java.lang.Object o)
public static final java.util.Set getAllSupportedProperties()
public ComputeService getComputeService()
public ComputeService getComputeService(java.util.Map flags)
public java.lang.String getCredential()
protected java.util.Collection getCustomizers(ConfigBag setup)
public java.lang.String getEndpoint()
public java.lang.String getIdentity()
public java.lang.String getJcloudsProviderLocationId()
public java.lang.String getProvider()
public java.util.Map getProvisioningFlags(java.util.Collection tags)
public java.lang.String getRegion()
public java.lang.String getUser(ConfigBag config)
public java.util.Set listNodes()
public java.util.Set listNodes(java.util.Map flags)
public JcloudsLocation newSubLocation(java.util.Map newFlags)
public JcloudsSshMachineLocation obtain()
public JcloudsSshMachineLocation obtain(TemplateBuilder tb)
public JcloudsSshMachineLocation obtain(java.util.Map flags, TemplateBuilder tb)
public JcloudsSshMachineLocation obtain(java.util.Map flags)
public JcloudsSshMachineLocation rebindMachine(NodeMetadata metadata)
public JcloudsSshMachineLocation rebindMachine(java.util.Map flags, NodeMetadata metadata)
public JcloudsSshMachineLocation rebindMachine(ConfigBag setup)
Required fields are:
public JcloudsSshMachineLocation rebindMachine(java.util.Map flags)
protected JcloudsSshMachineLocation registerJcloudsSshMachineLocation(NodeMetadata node, java.lang.String vmHostname, ConfigBag setup)
public void release(SshMachineLocation machine)
protected void setCreationString(ConfigBag config)
public void setDefaultImageId(java.lang.String val)
protected boolean setHostname(ConfigBag setup, NodeMetadata metadata, boolean rethrow)
protected void setHostnameUpdatingCredentials(ConfigBag setup, NodeMetadata metadata)
public void setTagMapping(java.util.Map val)
protected static byte[] toByteArray(java.lang.Object v)
protected static double toDouble(java.lang.Object v)
protected static int[] toIntArray(java.lang.Object v)
protected static java.util.Map toMapStringString(java.lang.Object v)
@Override public java.lang.String toString()
protected static java.lang.String[] toStringArray(java.lang.Object v)
protected void waitForReachable(ComputeService computeService, NodeMetadata node, LoginCredentials expectedCredentials, ConfigBag setup)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.