public class DockerContainerImpl extends org.apache.brooklyn.entity.stock.BasicStartableImpl implements DockerContainer
org.apache.brooklyn.core.entity.AbstractEntity.BasicConfigurationSupport, org.apache.brooklyn.core.entity.AbstractEntity.BasicEnricherSupport, org.apache.brooklyn.core.entity.AbstractEntity.BasicFeedSupport, org.apache.brooklyn.core.entity.AbstractEntity.BasicGroupSupport, org.apache.brooklyn.core.entity.AbstractEntity.BasicPolicySupport, org.apache.brooklyn.core.entity.AbstractEntity.BasicSensorSupport, org.apache.brooklyn.core.entity.AbstractEntity.BasicSubscriptionSupportorg.apache.brooklyn.core.objs.AbstractBrooklynObject.BasicTagSupportorg.apache.brooklyn.entity.stock.BasicStartable.LocationsFilterorg.apache.brooklyn.api.entity.Entity.AdjunctSupport<T extends org.apache.brooklyn.api.objs.EntityAdjunct>, org.apache.brooklyn.api.entity.Entity.EnricherSupport, org.apache.brooklyn.api.entity.Entity.GroupSupport, org.apache.brooklyn.api.entity.Entity.PolicySupport, org.apache.brooklyn.api.entity.Entity.SensorSupportorg.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.entity.trait.Startable.RestartEffectorBody, org.apache.brooklyn.core.entity.trait.Startable.StartEffectorBody, org.apache.brooklyn.core.entity.trait.Startable.StopEffectorBodyorg.apache.brooklyn.core.entity.EntityInternal.EnricherSupportInternal, org.apache.brooklyn.core.entity.EntityInternal.EntitySubscriptionSupportInternal, org.apache.brooklyn.core.entity.EntityInternal.FeedSupport, org.apache.brooklyn.core.entity.EntityInternal.GroupSupportInternal, org.apache.brooklyn.core.entity.EntityInternal.PolicySupportInternal, org.apache.brooklyn.core.entity.EntityInternal.SensorSupportInternalorg.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_subscriptionTracker, CHILD_ADDED, CHILD_REMOVED, CONFIG_KEY_ADDED, CONFIG_KEY_REMOVED, DEFAULT_DISPLAY_NAME, EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, GROUP_ADDED, GROUP_REMOVED, LOCATION_ADDED, LOCATION_REMOVED, managementSupport, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, tempWorkingsCONTAINER, CONTAINER_ADDRESSES, CONTAINER_PAUSED, CONTAINER_RUNNING, DOCKER_CONTAINER_ENVIRONMENT, DOCKER_CONTAINER_ID, DOCKER_CONTAINER_NAME, DOCKER_CONTAINER_VOLUME_EXPORT, DOCKER_CONTAINER_VOLUMES_FROM, DOCKER_CPU_SHARES, DOCKER_HARDWARE_ID, DOCKER_HOST, DOCKER_IMAGE_COMMANDS, DOCKER_IMAGE_ENTRYPOINT, DOCKER_IMAGE_ID, DOCKER_IMAGE_NAME, DOCKER_IMAGE_TAG, DOCKER_INFRASTRUCTURE, DOCKER_LOGIN_PASSWORD, DOCKER_MEMORY, DOCKER_USE_HOST_DNS_NAME, DOCKER_USE_SSH, ENTITY, INTERACTIVE, MANAGED, PAUSE, PRIVILEGED, RESUME, RUNNING, SERVICE_STATE_ACTUAL, SHUT_DOWN, SSH_MACHINE_LOCATIONLOCATIONS_FILTER, START_LATCH| Constructor and Description |
|---|
DockerContainerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
configurePortBindings(DockerHost host,
org.apache.brooklyn.api.entity.Entity entity) |
protected void |
connectSensors() |
DockerContainerLocation |
createLocation(Map flags)
Create a new
DockerContainerLocation wrapping a machine from the host's JcloudsLocation. |
void |
deleteLocation() |
void |
disconnectSensors() |
String |
getContainerId() |
String |
getDisplayName() |
String |
getDockerContainerName() |
DockerHost |
getDockerHost() |
DockerContainerLocation |
getDynamicLocation() |
String |
getHostname() |
String |
getIconUrl() |
Collection<org.jclouds.net.domain.IpPermission> |
getIpPermissions(org.apache.brooklyn.api.entity.Entity entity) |
org.apache.brooklyn.location.ssh.SshMachineLocation |
getMachine() |
Set<String> |
getPrivateAddresses() |
Set<String> |
getPublicAddresses() |
org.apache.brooklyn.api.entity.Entity |
getRunningEntity() |
String |
getShortName() |
void |
init() |
boolean |
isLocationAvailable() |
void |
pause()
Pause the Docker container.
|
void |
rebind() |
void |
removePortBindings(DockerHost host,
org.apache.brooklyn.api.entity.Entity entity) |
void |
restart() |
void |
resume()
Resume the Docker container.
|
void |
setRunningEntity(org.apache.brooklyn.api.entity.Entity entity) |
void |
shutDown()
Shut-down the Docker container.
|
void |
start(Collection<? extends org.apache.brooklyn.api.location.Location> locs) |
void |
stop() |
addChild, addChild, addEnricher, addEnricher, addFeed, addGroup, addLocations, addPolicy, addPolicy, clearLocations, clearParent, config, configure, configure, configure, configure, configure, configure, destroy, emit, emitInternal, enrichers, equals, feeds, firstLocation, getAllAttributes, getAllConfig, getAllConfigBag, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getConfig, getConfig, getConfig, getConfig, getConfigMap, getConfigRaw, getConfigRaw, getCreationTime, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getFeedSupport, getGroups, getLocalConfigBag, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionTracker, groups, hashCode, initEnrichers, invalidateReferences, invoke, invoke, invoke, modifyAttribute, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, onManagementStopped, onTagsChanged, policies, refreshInheritedConfig, relations, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeGroup, removeLocations, removePolicy, requestPersist, resetProxy, sensors, setApplication, setAttribute, setAttribute, setAttributeWithoutPublishing, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setDefaultDisplayName, setDisplayName, setManagementContext, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, subscriptions, toMetadataRecord, toString, toStringHelper, unsubscribe, unsubscribeconfigure, getCatalogItemId, getId, isLegacyConstruction, isRebinding, setCatalogItemId, tagsclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChild, addChild, addEnricher, addEnricher, addFeed, addGroup, addPolicy, addPolicy, clearParent, enrichers, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfigRaw, getConfigRaw, getCreationTime, getEnrichers, getEntityType, getGroups, getId, getLocations, getParent, getPolicies, groups, invoke, policies, relations, removeChild, removeEnricher, removeGroup, removePolicy, sensors, setDisplayName, setParentgetCatalogItemId, subscriptions, tagspublic void init()
init in class org.apache.brooklyn.core.entity.AbstractEntitypublic String getIconUrl()
getIconUrl in interface org.apache.brooklyn.api.entity.EntitygetIconUrl in class org.apache.brooklyn.core.entity.AbstractEntitypublic String getDisplayName()
getDisplayName in interface org.apache.brooklyn.api.entity.EntitygetDisplayName in interface org.apache.brooklyn.api.objs.BrooklynObjectgetDisplayName in class org.apache.brooklyn.core.entity.AbstractEntityprotected void connectSensors()
public void disconnectSensors()
public org.apache.brooklyn.api.entity.Entity getRunningEntity()
getRunningEntity in interface DockerContainerpublic void setRunningEntity(org.apache.brooklyn.api.entity.Entity entity)
setRunningEntity in interface DockerContainerpublic String getDockerContainerName()
getDockerContainerName in interface DockerContainerpublic String getContainerId()
getContainerId in interface DockerContainerpublic org.apache.brooklyn.location.ssh.SshMachineLocation getMachine()
getMachine in interface DockerContainerpublic DockerHost getDockerHost()
getDockerHost in interface DockerContainerpublic String getShortName()
getShortName in interface org.apache.brooklyn.api.objs.HasShortNamepublic DockerContainerLocation getDynamicLocation()
getDynamicLocation in interface org.apache.brooklyn.core.location.dynamic.LocationOwner<DockerContainerLocation,DockerContainer>public boolean isLocationAvailable()
isLocationAvailable in interface org.apache.brooklyn.core.location.dynamic.LocationOwner<DockerContainerLocation,DockerContainer>public void shutDown()
DockerContainershutDown in interface DockerContainerpublic void pause()
DockerContainerpause in interface DockerContainerpublic void resume()
DockerContainerresume in interface DockerContainerpublic void configurePortBindings(DockerHost host, org.apache.brooklyn.api.entity.Entity entity)
public void removePortBindings(DockerHost host, org.apache.brooklyn.api.entity.Entity entity)
public Collection<org.jclouds.net.domain.IpPermission> getIpPermissions(org.apache.brooklyn.api.entity.Entity entity)
public DockerContainerLocation createLocation(Map flags)
DockerContainerLocation wrapping a machine from the host's JcloudsLocation.createLocation in interface org.apache.brooklyn.core.location.dynamic.LocationOwner<DockerContainerLocation,DockerContainer>public void deleteLocation()
deleteLocation in interface org.apache.brooklyn.core.location.dynamic.LocationOwner<DockerContainerLocation,DockerContainer>public void start(Collection<? extends org.apache.brooklyn.api.location.Location> locs)
start in interface org.apache.brooklyn.core.entity.trait.Startablestart in class org.apache.brooklyn.entity.stock.BasicStartableImplpublic void rebind()
rebind in class org.apache.brooklyn.core.objs.AbstractBrooklynObjectpublic void restart()
restart in interface org.apache.brooklyn.core.entity.trait.Startablerestart in class org.apache.brooklyn.entity.stock.BasicStartableImplpublic void stop()
stop in interface org.apache.brooklyn.core.entity.trait.Startablestop in class org.apache.brooklyn.entity.stock.BasicStartableImplpublic String getHostname()
getHostname in interface org.apache.brooklyn.util.net.HasNetworkAddressespublic Set<String> getPublicAddresses()
getPublicAddresses in interface org.apache.brooklyn.util.net.HasNetworkAddressesCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.