public class DockerLocation extends org.apache.brooklyn.core.location.AbstractLocation implements DockerVirtualLocation, org.apache.brooklyn.api.location.MachineProvisioningLocation<org.apache.brooklyn.api.location.MachineLocation>, org.apache.brooklyn.core.location.dynamic.DynamicLocation<DockerInfrastructure,DockerLocation>, 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 org.apache.brooklyn.config.ConfigKey<String> |
LOCATION_NAME |
_subscriptionTracker, PARENT_LOCATION, TEMPORARY_LOCATIONCONTAINER, HOST, INFRASTRUCTURE, MACHINE, PREFIX, PROVISIONER| Constructor and Description |
|---|
DockerLocation() |
DockerLocation(Map properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
deregister() |
List<org.apache.brooklyn.api.entity.Entity> |
getDockerContainerList() |
List<org.apache.brooklyn.api.entity.Entity> |
getDockerHostList() |
protected List<DockerHostLocation> |
getDockerHostLocations() |
DockerInfrastructure |
getDockerInfrastructure() |
DockerInfrastructure |
getOwner() |
org.apache.brooklyn.api.location.MachineProvisioningLocation<org.apache.brooklyn.location.ssh.SshMachineLocation> |
getProvisioner() |
Map<String,Object> |
getProvisioningFlags(Collection<String> tags) |
org.apache.brooklyn.api.mgmt.rebind.RebindSupport<org.apache.brooklyn.api.mgmt.rebind.mementos.LocationMemento> |
getRebindSupport() |
void |
init() |
org.apache.brooklyn.api.location.MachineProvisioningLocation<org.apache.brooklyn.api.location.MachineLocation> |
newSubLocation(Map<?,?> newFlags) |
org.apache.brooklyn.api.location.MachineLocation |
obtain() |
org.apache.brooklyn.api.location.MachineLocation |
obtain(Map<?,?> flags) |
void |
rebind() |
org.apache.brooklyn.api.location.LocationDefinition |
register() |
void |
release(org.apache.brooklyn.api.location.MachineLocation machine) |
protected void |
remove(DockerHostLocation machine) |
com.google.common.base.Objects.ToStringHelper |
string() |
addChild, addChild, addExtension, assertNotYetManaged, config, configure, containsLocation, equals, getAllConfig, getAllConfigBag, getChildren, getConfig, getConfig, getDisplayName, getExtension, getHostGeoInfo, getLocalConfigBag, getParent, getRawLocalConfigBag, 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 org.apache.brooklyn.config.ConfigKey<String> LOCATION_NAME
public DockerLocation()
public DockerLocation(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<DockerInfrastructure,DockerLocation>public void deregister()
deregister in interface org.apache.brooklyn.core.location.dynamic.DynamicLocation<DockerInfrastructure,DockerLocation>public org.apache.brooklyn.api.location.MachineProvisioningLocation<org.apache.brooklyn.location.ssh.SshMachineLocation> getProvisioner()
protected List<DockerHostLocation> getDockerHostLocations()
public org.apache.brooklyn.api.location.MachineLocation obtain()
throws org.apache.brooklyn.api.location.NoMachinesAvailableException
org.apache.brooklyn.api.location.NoMachinesAvailableExceptionpublic org.apache.brooklyn.api.location.MachineLocation obtain(Map<?,?> flags) throws org.apache.brooklyn.api.location.NoMachinesAvailableException
obtain in interface org.apache.brooklyn.api.location.MachineProvisioningLocation<org.apache.brooklyn.api.location.MachineLocation>obtain in interface org.apache.brooklyn.api.location.ProvisioningLocation<org.apache.brooklyn.api.location.MachineLocation>org.apache.brooklyn.api.location.NoMachinesAvailableExceptionpublic org.apache.brooklyn.api.location.MachineProvisioningLocation<org.apache.brooklyn.api.location.MachineLocation> newSubLocation(Map<?,?> newFlags)
newSubLocation in interface org.apache.brooklyn.api.location.MachineProvisioningLocation<org.apache.brooklyn.api.location.MachineLocation>public void release(org.apache.brooklyn.api.location.MachineLocation machine)
release in interface org.apache.brooklyn.api.location.MachineProvisioningLocation<org.apache.brooklyn.api.location.MachineLocation>release in interface org.apache.brooklyn.api.location.ProvisioningLocation<org.apache.brooklyn.api.location.MachineLocation>protected void remove(DockerHostLocation machine)
public Map<String,Object> getProvisioningFlags(Collection<String> tags)
getProvisioningFlags in interface org.apache.brooklyn.api.location.MachineProvisioningLocation<org.apache.brooklyn.api.location.MachineLocation>public DockerInfrastructure getOwner()
getOwner in interface org.apache.brooklyn.core.location.dynamic.DynamicLocation<DockerInfrastructure,DockerLocation>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 org.apache.brooklyn.api.mgmt.rebind.RebindSupport<org.apache.brooklyn.api.mgmt.rebind.mementos.LocationMemento> getRebindSupport()
getRebindSupport in interface org.apache.brooklyn.api.mgmt.rebind.RebindablegetRebindSupport in interface org.apache.brooklyn.core.location.internal.LocationInternalgetRebindSupport in interface org.apache.brooklyn.core.objs.BrooklynObjectInternalgetRebindSupport in class org.apache.brooklyn.core.location.AbstractLocationpublic 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.