public class JcloudsWinRmMachineLocation extends WinRmMachineLocation implements JcloudsMachineLocation
AbstractLocation.BasicSubscriptionSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal
ADDRESS, 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, WINRM_CONFIG_PORT, WINRM_TOOL_CLASS, WINRM_TOOL_CLASS_PROPERTIES_PREFIX
PARENT_LOCATION, TEMPORARY_LOCATION
FINAL_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() |
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.
|
java.lang.String |
toVerboseString() |
copyTo, copyTo, copyTo, executeCommand, executeCommand, executeCommand, executePsScript, executePsScript, executePsScript, executeScript, executeScript, executeScript, getAddress, getDefaultUserMetadataString, getMachineDetails, getOsDetails, getPort, getUser
addChild, addExtension, config, configure, 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, subscriptions, toMetadataRecord, toString
getCatalogItemId, getId, getManagementContext, setCatalogItemId, tags
getPort, getUser
getAddress, getMachineDetails, getOsDetails
containsLocation, getAllConfig, getChildren, getConfig, getDisplayName, getExtension, getId, hasConfig, hasExtension, relations, setParent
getCatalogItemId, subscriptions, tags
config, getConfig, setConfig
getManagementContext
setCatalogItemId
public void init()
AbstractBrooklynObject
To 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 WinRmMachineLocation
public void rebind()
AbstractBrooklynObject
AbstractBrooklynObject.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 AbstractBrooklynObject
public java.lang.String toVerboseString()
toVerboseString
in interface Location
toVerboseString
in class AbstractLocation
public JcloudsLocation getParent()
Location
null
if this location is the tree root.getParent
in interface Location
getParent
in interface JcloudsMachineLocation
getParent
in class AbstractLocation
null
if this location is the tree root.publicgetOptionalNode()
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 JcloudsMachineLocation
public java.lang.String getHostname()
HasNetworkAddresses
getHostname
in interface HasNetworkAddresses
getHostname
in class WinRmMachineLocation
public java.util.Set<java.lang.String> getPublicAddresses()
getPublicAddresses
in interface HasNetworkAddresses
getPublicAddresses
in class WinRmMachineLocation
public java.util.Set<java.lang.String> getPrivateAddresses()
HasNetworkAddresses
getPrivateAddresses
in interface HasNetworkAddresses
getPrivateAddresses
in class WinRmMachineLocation
public java.lang.String getSubnetHostname()
JcloudsMachineLocation
getSubnetHostname
in interface HasSubnetHostname
getSubnetHostname
in interface JcloudsMachineLocation
public java.lang.String getSubnetIp()
HasSubnetHostname
getSubnetIp
in interface HasSubnetHostname
public java.lang.String getJcloudsId()
getJcloudsId
in interface JcloudsMachineLocation