public static class LocalhostMachineProvisioningLocation.LocalhostMachine extends SshMachineLocation implements HasSubnetHostname
AbstractLocation.BasicSubscriptionSupportBrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupportConfigurable.ConfigurationSupportBrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal| Modifier and Type | Field and Description |
|---|---|
static ConfigKey<java.lang.Boolean> |
SKIP_ON_BOX_BASE_DIR_RESOLUTION |
ALL_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 |
|---|
LocalhostMachine() |
LocalhostMachine(java.util.Map<?,?> properties)
Deprecated.
since 0.6.0 use no-arg constructor (and spec) then configure
|
| Modifier and Type | Method and Description |
|---|---|
LocalhostMachineProvisioningLocation.LocalhostMachine |
configure(java.util.Map<?,?> properties)
Will set fields from flags, and put the remaining ones into the 'leftovers' map.
|
OsDetails |
getOsDetails() |
java.lang.String |
getSubnetHostname()
returns a hostname for use internally within a subnet / VPC
|
java.lang.String |
getSubnetIp()
returns an IP for use internally within a subnet / VPC
|
WithMutexes |
mutexes() |
int |
obtainPort(PortRange range)
Reserve a port for your application, with a port number in a specific range.
|
boolean |
obtainSpecificPort(int portNumber)
Reserve a specific port for an application.
|
void |
releasePort(int portNumber)
Release a previously reserved port.
|
acquireMutex, close, copyFrom, copyFrom, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, execCommands, execCommands, execCommands, execCommands, execScript, execScript, execScript, execScript, findKeyPair, findPassword, getAddress, getHostname, getPort, getPrivateAddresses, getPublicAddresses, getSshHostAndPort, getUser, hasMutex, init, installTo, installTo, installTo, installTo, isSshable, releaseMutex, resolveOnBoxDirFor, toString, toVerboseString, tryAcquireMutexgetMachineDetailsaddChild, addExtension, config, containsLocation, equals, getChildren, getConfig, getConfig, getDisplayName, getExtension, getHostGeoInfo, getLocationTypeInternal, getParent, getRebindSupport, hasExtension, hashCode, isManaged, onManagementStarted, onManagementStopped, rebind, relations, removeChild, setDisplayName, setHostGeoInfo, setManagementContext, setParent, setParent, subscriptions, toMetadataRecordaddSearchPath, getCatalogItemId, getCatalogItemIdSearchPath, getId, getManagementContext, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId, tagsgetMachineDetailscontainsLocation, getChildren, getConfig, getDisplayName, getExtension, getId, getParent, hasExtension, relations, setParentgetCatalogItemId, getCatalogItemIdSearchPath, subscriptions, tagsconfig, getConfiggetManagementContextaddSearchPath, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemIdpublic static final ConfigKey<java.lang.Boolean> SKIP_ON_BOX_BASE_DIR_RESOLUTION
public LocalhostMachine()
@Deprecated public LocalhostMachine(java.util.Map<?,?> properties)
public WithMutexes mutexes()
mutexes in class AbstractMachineLocationpublic boolean obtainSpecificPort(int portNumber)
PortSupplierobtainSpecificPort in interface PortSupplierobtainSpecificPort in class SshMachineLocationportNumber - the required port number.true if the port was successfully reserved; false if it has been previously reserved.SshMachineLocation.obtainPort(PortRange),
PortRanges.ANY_HIGH_PORTpublic int obtainPort(PortRange range)
PortSupplierobtainPort in interface PortSupplierobtainPort in class SshMachineLocationrange - the range of acceptable port numbers.public void releasePort(int portNumber)
PortSupplierreleasePort in interface PortSupplierreleasePort in class SshMachineLocationportNumber - the port number from a call to PortSupplier.obtainPort(PortRange) or PortSupplier.obtainSpecificPort(int)public OsDetails getOsDetails()
getOsDetails in interface MachineLocationgetOsDetails in class AbstractMachineLocationpublic LocalhostMachineProvisioningLocation.LocalhostMachine configure(java.util.Map<?,?> properties)
AbstractBrooklynObjectConfigBag.getUnusedConfig().
To be overridden by AbstractEntity, AbstractLoation, AbstractPolicy, AbstractEnricher, etc.
But should not be overridden by specific entity types. If you do, the entity may break in subsequent releases. Also note that if you require fields to be initialized you must do that in this method. You must *not* rely on field initializers because they may not run until *after* this method (this method is invoked by the constructor in this class, so initializers in subclasses will not have run when this overridden method is invoked.)
configure in class SshMachineLocationpublic java.lang.String getSubnetHostname()
HasSubnetHostnamegetSubnetHostname in interface HasSubnetHostnamepublic java.lang.String getSubnetIp()
HasSubnetHostnamegetSubnetIp in interface HasSubnetHostname