public class DockerContainerLocation extends brooklyn.location.basic.SshMachineLocation implements brooklyn.location.basic.SupportsPortForwarding, brooklyn.location.basic.HasSubnetHostname, brooklyn.location.dynamic.DynamicLocation<DockerContainer,DockerContainerLocation>
Location that wraps a Docker container.
The underlying container is presented as an SshMachineLocation obtained using the jclouds Docker driver.
brooklyn.basic.AbstractBrooklynObject.BasicTagSupportbrooklyn.location.basic.SupportsPortForwarding.RequiresPortForwardingbrooklyn.basic.BrooklynObject.TagSupportaddress, ALL_SSH_CONFIG_KEY_NAMES, ALL_SSH_CONFIG_KEYS, ALLOCATE_PTY, CLOSE_CONNECTION, DETECT_MACHINE_DETAILS, LOCAL_TEMP_DIR, LOG_PREFIX, logSsh, MACHINE_DETAILS, NO_STDERR_LOGGING, NO_STDOUT_LOGGING, PASSWORD, previouslyConnected, 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, STDERR, STDOUT, UNIQUE_ID, user| Constructor and Description |
|---|
DockerContainerLocation() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
execCommands(Map<String,?> props,
String summaryForLogging,
List<String> commands,
Map<String,?> env) |
int |
execScript(Map<String,?> props,
String summaryForLogging,
List<String> commands,
Map<String,?> env) |
InetAddress |
getAddress() |
brooklyn.location.jclouds.JcloudsSshMachineLocation |
getMachine() |
int |
getMappedPort(int portNumber) |
DockerContainer |
getOwner() |
com.google.common.net.HostAndPort |
getSocketEndpointFor(brooklyn.util.net.Cidr accessor,
int privatePort) |
String |
getSubnetHostname() |
String |
getSubnetIp() |
void |
init() |
int |
obtainPort(brooklyn.location.PortRange range) |
boolean |
obtainSpecificPort(int portNumber) |
void |
releasePort(int portNumber) |
com.google.common.base.Objects.ToStringHelper |
string() |
acquireMutex, addSshPoolCacheCleanupTask, configure, connectSsh, connectSsh, copyFrom, copyFrom, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, execCommands, execCommands, execCommands, execScript, execScript, execScript, execSsh, execWithLogging, findKeyPair, findPassword, getHostname, getMachineDetails, getMutexSupport, getOsDetails, getPort, getPrivateAddresses, getPublicAddresses, getSshHostAndPort, getUser, hasMutex, inferMachineDetails, installTo, installTo, installTo, installTo, isSshable, newExecWithLoggingHelpers, releaseMutex, toString, toVerboseString, tryAcquireMutexaddChild, addChild, addExtension, assertNotYetManaged, config, containsLocation, equals, getAllConfig, getAllConfigBag, getChildren, getConfig, getConfig, getDisplayName, getExtension, getHostGeoInfo, getLocalConfigBag, getParent, getRawLocalConfigBag, getRebindSupport, hasConfig, hasExtension, hashCode, isDisplayNameAutoGenerated, isManaged, onChanged, onManagementStarted, onManagementStopped, removeChild, setConfig, setDisplayName, setHostGeoInfo, setManagementContext, setName, setParent, setParent, toMetadataRecordconfigure, getCatalogItemId, getId, getManagementContext, getTagSupport, isLegacyConstruction, isRebinding, onTagsChanged, rebind, requestPersist, setCatalogItemId, tagsclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsLocation, getAllConfig, getChildren, getConfig, getConfig, getDisplayName, getExtension, getId, getParent, hasConfig, hasExtension, setParentpublic void init()
init in class brooklyn.basic.AbstractBrooklynObjectpublic DockerContainer getOwner()
getOwner in interface brooklyn.location.dynamic.DynamicLocation<DockerContainer,DockerContainerLocation>public brooklyn.location.jclouds.JcloudsSshMachineLocation getMachine()
public int getMappedPort(int portNumber)
public boolean obtainSpecificPort(int portNumber)
obtainSpecificPort in interface brooklyn.location.PortSupplierobtainSpecificPort in class brooklyn.location.basic.SshMachineLocationpublic int obtainPort(brooklyn.location.PortRange range)
obtainPort in interface brooklyn.location.PortSupplierobtainPort in class brooklyn.location.basic.SshMachineLocationpublic com.google.common.net.HostAndPort getSocketEndpointFor(brooklyn.util.net.Cidr accessor,
int privatePort)
getSocketEndpointFor in interface brooklyn.location.basic.SupportsPortForwardingpublic int execScript(Map<String,?> props, String summaryForLogging, List<String> commands, Map<String,?> env)
execScript in class brooklyn.location.basic.SshMachineLocationpublic int execCommands(Map<String,?> props, String summaryForLogging, List<String> commands, Map<String,?> env)
execCommands in class brooklyn.location.basic.SshMachineLocationpublic void releasePort(int portNumber)
releasePort in interface brooklyn.location.PortSupplierreleasePort in class brooklyn.location.basic.SshMachineLocationpublic InetAddress getAddress()
getAddress in interface brooklyn.location.AddressableLocationgetAddress in interface brooklyn.location.MachineLocationgetAddress in class brooklyn.location.basic.SshMachineLocationpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class brooklyn.location.basic.SshMachineLocationIOExceptionpublic com.google.common.base.Objects.ToStringHelper string()
string in class brooklyn.location.basic.AbstractLocationpublic String getSubnetHostname()
getSubnetHostname in interface brooklyn.location.basic.HasSubnetHostnamepublic String getSubnetIp()
getSubnetIp in interface brooklyn.location.basic.HasSubnetHostnameCopyright © 2015. All rights reserved.