public class JcloudsSshMachineLocation extends SshMachineLocation implements JcloudsMachineLocation
AbstractLocation.BasicSubscriptionSupportBrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupportConfigurable.ConfigurationSupportBrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternalALL_SSH_CONFIG_KEY_NAMES, ALL_SSH_CONFIG_KEYS, ALLOCATE_PTY, CLOSE_CONNECTION, DETECT_MACHINE_DETAILS, LOCAL_TEMP_DIR, LOG_PREFIX, MACHINE_DETAILS, NO_STDERR_LOGGING, NO_STDOUT_LOGGING, PASSWORD, PRIVATE_ADDRESSES, PRIVATE_KEY_DATA, PRIVATE_KEY_FILE, PRIVATE_KEY_PASSPHRASE, REUSABLE_SSH_PROPS, SCP_EXECUTABLE, SCRIPT_DIR, SSH_CACHE_EXPIRY_DURATION, SSH_CONFIG_GIVEN_TO_PROPS, SSH_ENV_MAP, SSH_EXECUTABLE, SSH_HOST, SSH_PORT, SSH_TOOL_CLASS, SSH_TOOL_CLASS_PROPERTIES_PREFIX, STDERR, STDOUT, TCP_PORT_MAPPINGS, UNIQUE_IDPARENT_LOCATION, TEMPORARY_LOCATIONFINAL_SPEC, NAMED_SPEC_NAME, ORIGINAL_SPEC| Constructor and Description | 
|---|
| JcloudsSshMachineLocation() | 
| JcloudsSshMachineLocation(java.util.Map<?,?> flags,
                         JcloudsLocation jcloudsParent,
                         org.jclouds.compute.domain.NodeMetadata node)Deprecated. 
 since 0.6; use LocationSpec (which calls no-arg constructor) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | execRemoteScript(java.lang.String... commands)Deprecated. 
 since 0.9.0; use standard  SshMachineLocation.execScript(String, List)and the other variants. | 
| java.lang.String | getHostname()note | 
| java.lang.String | getJcloudsId() | 
| org.jclouds.compute.domain.NodeMetadata | getNode()Deprecated. 
 since 0.9.0 | 
|  | getOptionalNode() | 
| JcloudsLocation | getParent()Get the 'parent' of this location. | 
| java.util.Set<java.lang.String> | getPrivateAddresses()All private IP addresses. | 
| java.util.Set<java.lang.String> | getPublicAddresses()In clouds like AWS, the public hostname is the only way to ensure VMs in different zones can access each other. | 
| java.lang.String | getSubnetHostname()In most clouds, the public hostname is the only way to ensure VMs in different zones can access each other. | 
| java.lang.String | getSubnetIp()returns an IP for use internally within a subnet / VPC | 
| org.jclouds.compute.domain.Template | getTemplate()Deprecated. 
 since 0.9.0 | 
| void | init()Called by framework (in new-style instances where spec was used) after configuring etc,
 but before a reference to this instance is shared. | 
| void | rebind()Called by framework on rebind (in new-style instances):
 
  after configuring, but
  before the instance is managed, and
  before adjuncts are attached to entities, and
  before a reference to an object is shared. | 
|  | submitRunScript(org.jclouds.scriptbuilder.domain.Statement script)Deprecated. 
 since 0.9.0; use standard  SshMachineLocation.execScript(String, List)and the other variants. | 
|  | submitRunScript(org.jclouds.scriptbuilder.domain.Statement script,
               org.jclouds.compute.options.RunScriptOptions options)Deprecated. 
 since 0.9.0; use standard  SshMachineLocation.execScript(String, List)and the other variants. | 
|  | submitRunScript(java.lang.String... statements)Deprecated. 
 since 0.9.0; use standard  SshMachineLocation.execScript(String, List)and the other variants. | 
| java.util.Map<java.lang.String,java.lang.String> | toMetadataRecord()Get a record of the metadata of this location. | 
| java.lang.String | toVerboseString() | 
| java.lang.String | waitForPassword()Deprecated. 
 since 0.9.0; use the machine to execute commands, so no need to extract the password | 
acquireMutex, close, configure, copyFrom, copyFrom, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, execCommands, execCommands, execCommands, execCommands, execScript, execScript, execScript, execScript, findKeyPair, findPassword, getAddress, getMachineDetails, getOsDetails, getPort, getSshHostAndPort, getUser, hasMutex, installTo, installTo, installTo, installTo, isSshable, obtainPort, obtainSpecificPort, releaseMutex, releasePort, toString, tryAcquireMutexaddChild, addExtension, config, containsLocation, equals, getAllConfig, getAllConfigBag, getChildren, getConfig, getConfig, getDisplayName, getExtension, getHostGeoInfo, getLocalConfigBag, getRawLocalConfigBag, getRebindSupport, hasConfig, hasExtension, hashCode, isManaged, onManagementStarted, onManagementStopped, relations, removeChild, setConfig, setDisplayName, setHostGeoInfo, setManagementContext, setName, setParent, setParent, subscriptionsgetCatalogItemId, getId, getManagementContext, setCatalogItemId, tagsgetPort, getUsergetAddress, getMachineDetails, getOsDetailscontainsLocation, getAllConfig, getChildren, getConfig, getDisplayName, getExtension, getId, hasConfig, hasExtension, relations, setParentgetCatalogItemId, subscriptions, tagsconfig, getConfig, setConfiggetManagementContextsetCatalogItemIdpublic JcloudsSshMachineLocation()
@Deprecated
public JcloudsSshMachineLocation(java.util.Map<?,?> flags,
                                    JcloudsLocation jcloudsParent,
                                    org.jclouds.compute.domain.NodeMetadata node)
public void init()
AbstractBrooklynObjectTo preserve backwards compatibility for if the instance is constructed directly, one can call the code below, but that means it will be called after references to this policy have been shared with other entities.
 if (isLegacyConstruction()) {
     init();
 }
 
 init in class SshMachineLocationpublic void rebind()
AbstractBrooklynObjectAbstractBrooklynObject.init() will not be called on rebind.
 
 If you need to intercept behaviour after adjuncts are attached,
 consider AbstractEntity.onManagementStarting() 
 (but probably worth raising a discussion on the mailing list!)
rebind in class AbstractBrooklynObjectpublic java.lang.String toVerboseString()
toVerboseString in interface LocationtoVerboseString in class SshMachineLocationpublicgetOptionalNode() 
getOptionalNode in interface JcloudsMachineLocation@Deprecated public org.jclouds.compute.domain.NodeMetadata getNode()
getNode in interface JcloudsMachineLocation@Deprecated public org.jclouds.compute.domain.Template getTemplate()
getTemplate in interface JcloudsMachineLocationpublic JcloudsLocation getParent()
Locationnull if this location is the tree root.getParent in interface LocationgetParent in interface JcloudsMachineLocationgetParent in class AbstractLocationnull if this location is the tree root.public java.lang.String getHostname()
HasNetworkAddressesgetHostname in interface HasNetworkAddressesgetHostname in class SshMachineLocationpublic java.util.Set<java.lang.String> getPublicAddresses()
getPublicAddresses in interface HasNetworkAddressesgetPublicAddresses in class SshMachineLocationpublic java.util.Set<java.lang.String> getPrivateAddresses()
HasNetworkAddressesgetPrivateAddresses in interface HasNetworkAddressesgetPrivateAddresses in class SshMachineLocationpublic java.lang.String getSubnetHostname()
JcloudsMachineLocationgetSubnetHostname in interface HasSubnetHostnamegetSubnetHostname in interface JcloudsMachineLocationpublic java.lang.String getSubnetIp()
HasSubnetHostnamegetSubnetIp in interface HasSubnetHostnamepublic java.lang.String getJcloudsId()
getJcloudsId in interface JcloudsMachineLocation@Deprecated publicsubmitRunScript(java.lang.String... statements) 
SshMachineLocation.execScript(String, List) and the other variants.@Deprecated publicsubmitRunScript(org.jclouds.scriptbuilder.domain.Statement script) 
SshMachineLocation.execScript(String, List) and the other variants.@Deprecated publicsubmitRunScript(org.jclouds.scriptbuilder.domain.Statement script, org.jclouds.compute.options.RunScriptOptions options) 
SshMachineLocation.execScript(String, List) and the other variants.@Deprecated public void execRemoteScript(java.lang.String... commands)
SshMachineLocation.execScript(String, List) and the other variants.@Deprecated public java.lang.String waitForPassword()
public java.util.Map<java.lang.String,java.lang.String> toMetadataRecord()
LocationInternalMetadata records are used to record an audit trail of events relating to location usage (for billing purposes, for example). Implementations (and subclasses) should override this method to return information useful for this purpose.
toMetadataRecord in interface LocationInternaltoMetadataRecord in class AbstractLocation