public class DockerHostLocation extends org.apache.brooklyn.core.location.AbstractLocation implements org.apache.brooklyn.api.location.MachineProvisioningLocation<DockerContainerLocation>, DockerVirtualLocation, org.apache.brooklyn.core.location.dynamic.DynamicLocation<DockerHost,DockerHostLocation>, Closeable
org.apache.brooklyn.core.location.AbstractLocation.BasicSubscriptionSupportorg.apache.brooklyn.core.objs.AbstractBrooklynObject.BasicTagSupportorg.apache.brooklyn.api.objs.BrooklynObject.RelationSupport<T extends org.apache.brooklyn.api.objs.BrooklynObject>, org.apache.brooklyn.api.objs.BrooklynObject.SubscriptionSupport, org.apache.brooklyn.api.objs.BrooklynObject.TagSupportorg.apache.brooklyn.api.objs.Configurable.ConfigurationSupportorg.apache.brooklyn.core.objs.BrooklynObjectInternal.ConfigurationSupportInternal, org.apache.brooklyn.core.objs.BrooklynObjectInternal.RelationSupportInternal<T extends org.apache.brooklyn.api.objs.BrooklynObject>, org.apache.brooklyn.core.objs.BrooklynObjectInternal.SubscriptionSupportInternal| Modifier and Type | Field and Description |
|---|---|
static String |
CONTAINER_MUTEX |
static org.apache.brooklyn.config.ConfigKey<org.apache.brooklyn.location.jclouds.JcloudsLocation> |
JCLOUDS_LOCATION |
static org.apache.brooklyn.config.ConfigKey<String> |
LOCATION_NAME |
static org.apache.brooklyn.config.ConfigKey<org.apache.brooklyn.location.ssh.SshMachineLocation> |
MACHINE |
static org.apache.brooklyn.config.ConfigKey<brooklyn.networking.common.subnet.PortForwarder> |
PORT_FORWARDER |
_subscriptionTracker, PARENT_LOCATION, TEMPORARY_LOCATIONCONTAINER, HOST, INFRASTRUCTURE, PREFIX, PROVISIONER| Constructor and Description |
|---|
DockerHostLocation() |
DockerHostLocation(Map properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
deregister() |
int |
getCurrentSize() |
List<org.apache.brooklyn.api.entity.Entity> |
getDockerContainerList() |
List<org.apache.brooklyn.api.entity.Entity> |
getDockerHostList() |
DockerInfrastructure |
getDockerInfrastructure() |
org.apache.brooklyn.location.jclouds.JcloudsLocation |
getJcloudsLocation() |
Lock |
getLock() |
org.apache.brooklyn.location.ssh.SshMachineLocation |
getMachine() |
DockerHost |
getOwner() |
brooklyn.networking.common.subnet.PortForwarder |
getPortForwarder() |
Map<String,Object> |
getProvisioningFlags(Collection<String> tags) |
void |
init() |
void |
markImage(String imageName) |
org.apache.brooklyn.api.location.MachineProvisioningLocation<DockerContainerLocation> |
newSubLocation(Map<?,?> newFlags) |
DockerContainerLocation |
obtain() |
DockerContainerLocation |
obtain(Map<?,?> flags) |
void |
rebind() |
org.apache.brooklyn.api.location.LocationDefinition |
register() |
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, relations, removeChild, setConfig, setDisplayName, setHostGeoInfo, setManagementContext, setName, setParent, setParent, subscriptions, toMetadataRecord, toString, toVerboseStringconfigure, getCatalogItemId, getId, getManagementContext, isLegacyConstruction, isRebinding, onTagsChanged, requestPersist, setCatalogItemId, tagsclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsLocation, getAllConfig, getChildren, getConfig, getDisplayName, getExtension, getId, getParent, hasConfig, hasExtension, relations, setParent, toVerboseStringgetCatalogItemId, subscriptions, tagsconfig, getConfig, setConfigpublic static final String CONTAINER_MUTEX
public static final org.apache.brooklyn.config.ConfigKey<String> LOCATION_NAME
public static final org.apache.brooklyn.config.ConfigKey<org.apache.brooklyn.location.ssh.SshMachineLocation> MACHINE
public static final org.apache.brooklyn.config.ConfigKey<brooklyn.networking.common.subnet.PortForwarder> PORT_FORWARDER
public static final org.apache.brooklyn.config.ConfigKey<org.apache.brooklyn.location.jclouds.JcloudsLocation> JCLOUDS_LOCATION
public DockerHostLocation()
public DockerHostLocation(Map properties)
public void init()
init in class org.apache.brooklyn.core.objs.AbstractBrooklynObjectpublic void rebind()
rebind in class org.apache.brooklyn.core.objs.AbstractBrooklynObjectpublic org.apache.brooklyn.api.location.LocationDefinition register()
register in interface org.apache.brooklyn.core.location.dynamic.DynamicLocation<DockerHost,DockerHostLocation>public void deregister()
deregister in interface org.apache.brooklyn.core.location.dynamic.DynamicLocation<DockerHost,DockerHostLocation>public DockerContainerLocation obtain() throws org.apache.brooklyn.api.location.NoMachinesAvailableException
org.apache.brooklyn.api.location.NoMachinesAvailableExceptionpublic DockerContainerLocation obtain(Map<?,?> flags) throws org.apache.brooklyn.api.location.NoMachinesAvailableException
obtain in interface org.apache.brooklyn.api.location.MachineProvisioningLocation<DockerContainerLocation>obtain in interface org.apache.brooklyn.api.location.ProvisioningLocation<DockerContainerLocation>org.apache.brooklyn.api.location.NoMachinesAvailableExceptionpublic void waitForImage(String imageName)
public void markImage(String imageName)
public void release(DockerContainerLocation machine)
release in interface org.apache.brooklyn.api.location.MachineProvisioningLocation<DockerContainerLocation>release in interface org.apache.brooklyn.api.location.ProvisioningLocation<DockerContainerLocation>public Map<String,Object> getProvisioningFlags(Collection<String> tags)
getProvisioningFlags in interface org.apache.brooklyn.api.location.MachineProvisioningLocation<DockerContainerLocation>public DockerHost getOwner()
getOwner in interface org.apache.brooklyn.core.location.dynamic.DynamicLocation<DockerHost,DockerHostLocation>public org.apache.brooklyn.location.ssh.SshMachineLocation getMachine()
public org.apache.brooklyn.location.jclouds.JcloudsLocation getJcloudsLocation()
public brooklyn.networking.common.subnet.PortForwarder getPortForwarder()
public int getCurrentSize()
public org.apache.brooklyn.api.location.MachineProvisioningLocation<DockerContainerLocation> newSubLocation(Map<?,?> newFlags)
newSubLocation in interface org.apache.brooklyn.api.location.MachineProvisioningLocation<DockerContainerLocation>public List<org.apache.brooklyn.api.entity.Entity> getDockerContainerList()
getDockerContainerList in interface DockerVirtualLocationpublic List<org.apache.brooklyn.api.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 org.apache.brooklyn.core.location.AbstractLocationCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.