public class DockerLocation extends brooklyn.location.basic.AbstractLocation implements DockerVirtualLocation, brooklyn.location.MachineProvisioningLocation<brooklyn.location.MachineLocation>, brooklyn.location.dynamic.DynamicLocation<DockerInfrastructure,DockerLocation>, brooklyn.util.mutex.WithMutexes, Closeable
| Modifier and Type | Field and Description |
|---|---|
static String |
DOCKER_HOST_MUTEX |
CONTAINER, HOST, INFRASTRUCTURE, MACHINE, PREFIX, PROVISIONER| Constructor and Description |
|---|
DockerLocation() |
DockerLocation(Map properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireMutex(String mutexId,
String description) |
void |
close() |
List<brooklyn.entity.Entity> |
getDockerContainerList() |
List<brooklyn.entity.Entity> |
getDockerHostList() |
DockerInfrastructure |
getDockerInfrastructure() |
DockerInfrastructure |
getOwner() |
brooklyn.location.MachineProvisioningLocation<brooklyn.location.basic.SshMachineLocation> |
getProvisioner() |
Map<String,Object> |
getProvisioningFlags(Collection<String> tags) |
boolean |
hasMutex(String mutexId) |
void |
init() |
brooklyn.location.MachineProvisioningLocation<brooklyn.location.MachineLocation> |
newSubLocation(Map<?,?> newFlags) |
brooklyn.location.MachineLocation |
obtain() |
brooklyn.location.MachineLocation |
obtain(Map<?,?> flags) |
void |
release(brooklyn.location.MachineLocation machine) |
void |
releaseMutex(String mutexId) |
protected void |
remove(DockerHostLocation machine) |
com.google.common.base.Objects.ToStringHelper |
string() |
boolean |
tryAcquireMutex(String mutexId,
String description) |
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 DOCKER_HOST_MUTEX
public DockerLocation()
public DockerLocation(Map properties)
public void init()
init in class brooklyn.basic.AbstractBrooklynObjectpublic brooklyn.location.MachineProvisioningLocation<brooklyn.location.basic.SshMachineLocation> getProvisioner()
public brooklyn.location.MachineLocation obtain()
throws brooklyn.location.NoMachinesAvailableException
brooklyn.location.NoMachinesAvailableExceptionpublic brooklyn.location.MachineLocation obtain(Map<?,?> flags) throws brooklyn.location.NoMachinesAvailableException
obtain in interface brooklyn.location.MachineProvisioningLocation<brooklyn.location.MachineLocation>brooklyn.location.NoMachinesAvailableExceptionpublic brooklyn.location.MachineProvisioningLocation<brooklyn.location.MachineLocation> newSubLocation(Map<?,?> newFlags)
newSubLocation in interface brooklyn.location.MachineProvisioningLocation<brooklyn.location.MachineLocation>public void release(brooklyn.location.MachineLocation machine)
release in interface brooklyn.location.MachineProvisioningLocation<brooklyn.location.MachineLocation>protected void remove(DockerHostLocation machine)
public Map<String,Object> getProvisioningFlags(Collection<String> tags)
getProvisioningFlags in interface brooklyn.location.MachineProvisioningLocation<brooklyn.location.MachineLocation>public DockerInfrastructure getOwner()
getOwner in interface brooklyn.location.dynamic.DynamicLocation<DockerInfrastructure,DockerLocation>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.