public class DockerContainerImpl extends brooklyn.entity.basic.BasicStartableImpl implements DockerContainer
brooklyn.entity.basic.AbstractEntity.BasicConfigurationSupport, brooklyn.entity.basic.AbstractEntity.BasicFeedSupportbrooklyn.basic.AbstractBrooklynObject.BasicTagSupportbrooklyn.entity.basic.BasicStartable.LocationsFilterbrooklyn.basic.BrooklynObject.TagSupportbrooklyn.entity.trait.Configurable.ConfigurationSupportbrooklyn.entity.trait.Startable.RestartEffectorBody, brooklyn.entity.trait.Startable.StartEffectorBody, brooklyn.entity.trait.Startable.StopEffectorBody_subscriptionTracker, CHILD_ADDED, CHILD_REMOVED, EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, LOCATION_ADDED, LOCATION_REMOVED, managementSupport, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, tempWorkingsCONTAINER, CONTAINER_ADDRESSES, CONTAINER_ID, CONTAINER_PAUSED, CONTAINER_RUNNING, DOCKER_CONTAINER_ENVIRONMENT, DOCKER_CONTAINER_NAME, DOCKER_CONTAINER_NAME_FORMAT, DOCKER_CONTAINER_VOLUME_EXPORT, DOCKER_CPU_SHARES, DOCKER_HARDWARE_ID, DOCKER_HOST, DOCKER_IMAGE_ID, DOCKER_IMAGE_NAME, DOCKER_IMAGE_TAG, DOCKER_INFRASTRUCTURE, DOCKER_MEMORY, DOCKER_PASSWORD, DOCKER_USE_HOST_DNS_NAME, ENTITY, HARDWARE_ID, IMAGE_ID, IMAGE_NAME, MANAGED, PAUSE, RESUME, SERVICE_STATE_ACTUAL, SHUT_DOWN, SSH_MACHINE_LOCATION| Constructor and Description |
|---|
DockerContainerImpl() |
| Modifier and Type | Method and Description |
|---|---|
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 |
getDockerContainerName() |
DockerHost |
getDockerHost() |
DockerContainerLocation |
getDynamicLocation() |
String |
getHostname() |
brooklyn.location.basic.SshMachineLocation |
getMachine() |
Set<String> |
getPrivateAddresses() |
Set<String> |
getPublicAddresses() |
protected Collection<Integer> |
getRequiredOpenPorts(brooklyn.entity.Entity entity) |
brooklyn.entity.Entity |
getRunningEntity() |
String |
getShortName() |
void |
init() |
boolean |
isLocationAvailable() |
void |
pause()
Pause the Docker container.
|
void |
rebind() |
void |
resume()
Resume the Docker container.
|
void |
setRunningEntity(brooklyn.entity.Entity entity) |
void |
shutDown()
Shut-down the Docker container.
|
void |
start(Collection<? extends brooklyn.location.Location> locations) |
void |
stop() |
addChild, addChild, addEnricher, addEnricher, addFeed, addGroup, addLocations, addPolicy, addPolicy, addTag, clearLocations, clearParent, config, configure, configure, configure, configure, configure, containsTag, destroy, emit, emitInternal, equals, feeds, firstLocation, getAllAttributes, getAllConfig, getAllConfigBag, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getConfig, getConfig, getConfig, getConfig, getConfigMap, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getFeedSupport, getGroups, getIconUrl, getLocalConfigBag, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionContext, getSubscriptionTracker, getTags, hashCode, initEnrichers, invalidateReferences, invoke, invoke, invoke, modifyAttribute, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, onManagementStopped, onTagsChanged, refreshInheritedConfig, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeGroup, removeLocations, removePolicy, removeTag, requestPersist, resetProxy, setApplication, setAttribute, setAttribute, setAttributeWithoutPublishing, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setDefaultDisplayName, setDisplayName, setManagementContext, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, toMetadataRecord, toString, toStringHelper, unsubscribe, unsubscribeconfigure, getCatalogItemId, getId, getTagSupport, isLegacyConstruction, isRebinding, setCatalogItemId, tagsclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChild, addChild, addEnricher, addEnricher, addFeed, addGroup, addPolicy, addPolicy, addTag, clearParent, containsTag, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfig, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEnrichers, getEntityType, getGroups, getIconUrl, getId, getLocations, getParent, getPolicies, getTags, invoke, removeChild, removeEnricher, removeGroup, removePolicy, removeTag, setParentpublic void init()
init in class brooklyn.entity.basic.AbstractEntityprotected void connectSensors()
public void disconnectSensors()
public brooklyn.entity.Entity getRunningEntity()
getRunningEntity in interface DockerContainerpublic void setRunningEntity(brooklyn.entity.Entity entity)
setRunningEntity in interface DockerContainerpublic String getDockerContainerName()
getDockerContainerName in interface DockerContainerpublic String getContainerId()
getContainerId in interface DockerContainerpublic brooklyn.location.basic.SshMachineLocation getMachine()
getMachine in interface DockerContainerpublic DockerHost getDockerHost()
getDockerHost in interface DockerContainerpublic String getShortName()
getShortName in interface brooklyn.entity.trait.HasShortNamepublic DockerContainerLocation getDynamicLocation()
getDynamicLocation in interface brooklyn.location.dynamic.LocationOwner<DockerContainerLocation,DockerContainer>public boolean isLocationAvailable()
isLocationAvailable in interface brooklyn.location.dynamic.LocationOwner<DockerContainerLocation,DockerContainer>public void shutDown()
DockerContainershutDown in interface DockerContainerpublic void pause()
DockerContainerpause in interface DockerContainerpublic void resume()
DockerContainerresume in interface DockerContainerpublic DockerContainerLocation createLocation(Map flags)
DockerContainerLocation wrapping a machine from the host's JcloudsLocation.createLocation in interface brooklyn.location.dynamic.LocationOwner<DockerContainerLocation,DockerContainer>public void deleteLocation()
deleteLocation in interface brooklyn.location.dynamic.LocationOwner<DockerContainerLocation,DockerContainer>protected Collection<Integer> getRequiredOpenPorts(brooklyn.entity.Entity entity)
public void start(Collection<? extends brooklyn.location.Location> locations)
start in interface brooklyn.entity.trait.Startablestart in class brooklyn.entity.basic.BasicStartableImplpublic void rebind()
rebind in class brooklyn.basic.AbstractBrooklynObjectpublic void stop()
stop in interface brooklyn.entity.trait.Startablestop in class brooklyn.entity.basic.BasicStartableImplpublic String getHostname()
getHostname in interface brooklyn.util.net.HasNetworkAddressespublic Set<String> getPublicAddresses()
getPublicAddresses in interface brooklyn.util.net.HasNetworkAddressesCopyright © 2015. All rights reserved.