public class JcloudsWinRmMachineLocation extends WinRmMachineLocation implements JcloudsMachineLocation
AbstractLocation.BasicSubscriptionSupportBrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupportConfigurable.ConfigurationSupportBrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternalADDRESS, ALL_WINRM_CONFIG_KEY_NAMES, ALL_WINRM_CONFIG_KEYS, COPY_FILE_CHUNK_SIZE_BYTES, EXEC_TRIES, EXECUTION_ATTEMPTS, OPERATION_TIMEOUT, PASSWORD, PRIVATE_ADDRESSES, RETRIES_OF_NETWORK_FAILURES, TCP_PORT_MAPPINGS, USE_HTTPS_WINRM, USE_NTLM, USER, WAIT_WINDOWS_TO_START, WINRM_CONFIG_PORT, WINRM_TOOL_CLASS, WINRM_TOOL_CLASS_PROPERTIES_PREFIXDETECT_MACHINE_DETAILS, MACHINE_DETAILSPARENT_LOCATION, TEMPORARY_LOCATIONFINAL_SPEC, NAMED_SPEC_NAME, ORIGINAL_SPEC| Constructor and Description |
|---|
JcloudsWinRmMachineLocation() |
| 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.lang.String |
toVerboseString() |
copyTo, copyTo, copyTo, executeCommand, executeCommand, executeCommand, executePsScript, executePsScript, executePsScript, executeScript, executeScript, executeScript, getAddress, getDefaultUserMetadataString, getMachineDetails, getOsDetails, getPort, getUser, resolveOnBoxDirFormutexesaddChild, addExtension, config, configure, containsLocation, equals, getChildren, getConfig, getConfig, getDisplayName, getExtension, getHostGeoInfo, getLocationTypeInternal, getRebindSupport, hasExtension, hashCode, isManaged, onManagementStarted, onManagementStopped, relations, removeChild, setDisplayName, setHostGeoInfo, setManagementContext, setParent, setParent, subscriptions, toMetadataRecord, toStringaddSearchPath, 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 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 WinRmMachineLocationpublic 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 AbstractLocationpublic 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 <any> getOptionalNode()
getOptionalNode in interface JcloudsMachineLocation@Deprecated public org.jclouds.compute.domain.NodeMetadata getNode()
getNode in interface JcloudsMachineLocationpublic java.lang.String getHostname()
HasNetworkAddressesgetHostname in interface HasNetworkAddressesgetHostname in class WinRmMachineLocationpublic java.util.Set<java.lang.String> getPublicAddresses()
getPublicAddresses in interface HasNetworkAddressesgetPublicAddresses in class WinRmMachineLocationpublic java.util.Set<java.lang.String> getPrivateAddresses()
HasNetworkAddressesgetPrivateAddresses in interface HasNetworkAddressesgetPrivateAddresses in class WinRmMachineLocationpublic 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