public class DockerHostLocation extends brooklyn.location.basic.AbstractLocation implements brooklyn.location.MachineProvisioningLocation<DockerContainerLocation>, DockerVirtualLocation, brooklyn.location.dynamic.DynamicLocation<DockerHost,DockerHostLocation>, brooklyn.util.mutex.WithMutexes, Closeable
| 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 |
acquireMutex(String mutexId,
String description) |
void |
close() |
int |
getCurrentSize() |
List<brooklyn.entity.Entity> |
getDockerContainerList() |
List<brooklyn.entity.Entity> |
getDockerHostList() |
DockerInfrastructure |
getDockerInfrastructure() |
brooklyn.location.jclouds.JcloudsLocation |
getJcloudsLocation() |
brooklyn.location.basic.SshMachineLocation |
getMachine() |
int |
getMaxSize() |
DockerHost |
getOwner() |
brooklyn.networking.subnet.PortForwarder |
getPortForwarder() |
Map<String,Object> |
getProvisioningFlags(Collection<String> tags) |
String |
getRepository() |
boolean |
hasMutex(String mutexId) |
void |
init() |
void |
markImage(String imageName) |
brooklyn.location.MachineProvisioningLocation<DockerContainerLocation> |
newSubLocation(Map<?,?> newFlags) |
DockerContainerLocation |
obtain() |
DockerContainerLocation |
obtain(Map<?,?> flags) |
void |
release(DockerContainerLocation machine) |
void |
releaseMutex(String mutexId) |
com.google.common.base.Objects.ToStringHelper |
string() |
boolean |
tryAcquireMutex(String mutexId,
String description) |
void |
waitForImage(String imageName) |
addChild, addChild, addExtension, assertNotYetManaged, 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, toMetadataRecord, toString, toVerboseStringconfigure, getId, getManagementContext, getTagSupport, isLegacyConstruction, isRebinding, onTagsChanged, rebind, requestPersistclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final String CONTAINER_MUTEX
public DockerHostLocation()
public DockerHostLocation(Map properties)
public void init()
init in class brooklyn.basic.AbstractBrooklynObjectpublic DockerContainerLocation obtain() throws brooklyn.location.NoMachinesAvailableException
brooklyn.location.NoMachinesAvailableExceptionpublic DockerContainerLocation obtain(Map<?,?> flags) throws brooklyn.location.NoMachinesAvailableException
obtain in interface brooklyn.location.MachineProvisioningLocation<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>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 String getRepository()
public brooklyn.location.basic.SshMachineLocation getMachine()
public brooklyn.location.jclouds.JcloudsLocation getJcloudsLocation()
public brooklyn.networking.subnet.PortForwarder getPortForwarder()
public int getCurrentSize()
public int getMaxSize()
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 void acquireMutex(String mutexId, String description) throws InterruptedException
acquireMutex in interface brooklyn.util.mutex.WithMutexesInterruptedExceptionpublic boolean tryAcquireMutex(String mutexId, String description)
tryAcquireMutex in interface brooklyn.util.mutex.WithMutexespublic void releaseMutex(String mutexId)
releaseMutex in interface brooklyn.util.mutex.WithMutexespublic boolean hasMutex(String mutexId)
hasMutex in interface brooklyn.util.mutex.WithMutexespublic com.google.common.base.Objects.ToStringHelper string()
string in class brooklyn.location.basic.AbstractLocationCopyright © 2014. All rights reserved.