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, LOCAL_TEMP_DIR, LOG_PREFIX, 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_IDDETECT_MACHINE_DETAILS, MACHINE_DETAILSPARENT_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 |
|---|---|
java.lang.String |
getHostname()
note
|
java.lang.String |
getJcloudsId()
Returns the node ID as known at the cloud provider.
|
org.jclouds.compute.domain.NodeMetadata |
getNode()
Deprecated.
since 0.9.0
|
<any> |
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
|
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.
|
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, getPort, getSshHostAndPort, getUser, hasMutex, installTo, installTo, installTo, installTo, isSshable, obtainPort, obtainSpecificPort, releaseMutex, releasePort, resolveOnBoxDirFor, toString, tryAcquireMutexgetMachineDetails, getOsDetails, mutexesaddChild, addExtension, config, containsLocation, equals, getChildren, getConfig, getConfig, getDisplayName, getExtension, getHostGeoInfo, getLocationTypeInternal, getRebindSupport, hasExtension, hashCode, isManaged, onManagementStarted, onManagementStopped, relations, removeChild, setDisplayName, setHostGeoInfo, setManagementContext, setParent, setParent, subscriptionsaddSearchPath, getCatalogItemId, getCatalogItemIdSearchPath, getId, getManagementContext, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId, tagsgetPort, getUsergetAddress, getMachineDetails, getOsDetailscontainsLocation, getChildren, getConfig, getDisplayName, getExtension, getId, hasExtension, relations, setParentgetCatalogItemId, getCatalogItemIdSearchPath, subscriptions, tagsconfig, getConfiggetManagementContextaddSearchPath, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemIdpublic 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 AbstractLocationpublic java.lang.String toVerboseString()
toVerboseString in interface LocationtoVerboseString in class SshMachineLocationpublic <any> getOptionalNode()
getOptionalNode in interface JcloudsMachineLocation@Deprecated public org.jclouds.compute.domain.NodeMetadata getNode()
getNode in interface JcloudsMachineLocationpublic JcloudsLocation getParent()
Locationnull if this location is the tree root.getParent in interface LocationgetParent in interface JcloudsMachineLocationPublicgetParent 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()
JcloudsMachineLocationPublicgetSubnetHostname in interface HasSubnetHostnamegetSubnetHostname in interface JcloudsMachineLocationPublicpublic java.lang.String getSubnetIp()
HasSubnetHostnamegetSubnetIp in interface HasSubnetHostnamepublic java.lang.String getJcloudsId()
JcloudsMachineLocationPublicgetJcloudsId in interface JcloudsMachineLocationPublic@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