public class DockerHostLocation extends brooklyn.location.basic.AbstractLocation implements brooklyn.location.MachineProvisioningLocation<DockerContainerLocation>, DockerVirtualLocation, brooklyn.location.dynamic.DynamicLocation<DockerHost,DockerHostLocation>, Closeable
brooklyn.basic.AbstractBrooklynObject.BasicTagSupportbrooklyn.basic.BrooklynObject.TagSupport| Modifier and Type | Field and Description |
|---|---|
static String |
CONTAINER_MUTEX |
CONTAINER, HOST, INFRASTRUCTURE, MACHINE, PREFIX, PROVISIONER| Constructor and Description |
|---|
DockerHostLocation() |
DockerHostLocation(Map properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getCurrentSize() |
List<brooklyn.entity.Entity> |
getDockerContainerList() |
List<brooklyn.entity.Entity> |
getDockerHostList() |
DockerInfrastructure |
getDockerInfrastructure() |
brooklyn.location.jclouds.JcloudsLocation |
getJcloudsLocation() |
Lock |
getLock() |
brooklyn.location.basic.SshMachineLocation |
getMachine() |
DockerHost |
getOwner() |
brooklyn.networking.common.subnet.PortForwarder |
getPortForwarder() |
Map<String,Object> |
getProvisioningFlags(Collection<String> tags) |
void |
markImage(String imageName) |
brooklyn.location.MachineProvisioningLocation<DockerContainerLocation> |
newSubLocation(Map<?,?> newFlags) |
DockerContainerLocation |
obtain() |
DockerContainerLocation |
obtain(Map<?,?> flags) |
void |
release(DockerContainerLocation machine) |
com.google.common.base.Objects.ToStringHelper |
string() |
void |
waitForImage(String imageName) |
addChild, addChild, addExtension, assertNotYetManaged, config, configure, 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, toMetadataRecord, toString, toVerboseStringconfigure, getCatalogItemId, getId, getManagementContext, getTagSupport, init, isLegacyConstruction, isRebinding, onTagsChanged, rebind, requestPersist, setCatalogItemId, tagsclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsLocation, getAllConfig, getChildren, getConfig, getConfig, getDisplayName, getExtension, getId, getParent, hasConfig, hasExtension, setParent, toVerboseStringpublic static final String CONTAINER_MUTEX
public DockerHostLocation()
public DockerHostLocation(Map properties)
public DockerContainerLocation obtain() throws brooklyn.location.NoMachinesAvailableException
brooklyn.location.NoMachinesAvailableExceptionpublic DockerContainerLocation obtain(Map<?,?> flags) throws brooklyn.location.NoMachinesAvailableException
obtain in interface brooklyn.location.MachineProvisioningLocation<DockerContainerLocation>obtain in interface brooklyn.location.ProvisioningLocation<DockerContainerLocation>brooklyn.location.NoMachinesAvailableExceptionpublic void waitForImage(String imageName)
public void markImage(String imageName)
public void release(DockerContainerLocation machine)
release in interface brooklyn.location.MachineProvisioningLocation<DockerContainerLocation>release in interface brooklyn.location.ProvisioningLocation<DockerContainerLocation>public Map<String,Object> getProvisioningFlags(Collection<String> tags)
getProvisioningFlags in interface brooklyn.location.MachineProvisioningLocation<DockerContainerLocation>public DockerHost getOwner()
getOwner in interface brooklyn.location.dynamic.DynamicLocation<DockerHost,DockerHostLocation>public brooklyn.location.basic.SshMachineLocation getMachine()
public brooklyn.location.jclouds.JcloudsLocation getJcloudsLocation()
public brooklyn.networking.common.subnet.PortForwarder getPortForwarder()
public int getCurrentSize()
public brooklyn.location.MachineProvisioningLocation<DockerContainerLocation> newSubLocation(Map<?,?> newFlags)
newSubLocation in interface brooklyn.location.MachineProvisioningLocation<DockerContainerLocation>public List<brooklyn.entity.Entity> getDockerContainerList()
getDockerContainerList in interface DockerVirtualLocationpublic List<brooklyn.entity.Entity> getDockerHostList()
getDockerHostList in interface DockerVirtualLocationpublic DockerInfrastructure getDockerInfrastructure()
getDockerInfrastructure in interface DockerVirtualLocationpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic Lock getLock()
public com.google.common.base.Objects.ToStringHelper string()
string in class brooklyn.location.basic.AbstractLocationCopyright © 2015. All rights reserved.