public class DockerInfrastructureImpl extends org.apache.brooklyn.core.entity.AbstractApplication implements DockerInfrastructure
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.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.trait.Resizable.InsufficientCapacityExceptionorg.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, tempWorkingsDOCKER_CA_CERTIFICATE_PATH, DOCKER_CA_KEY_PATH, DOCKER_CLIENT_CERTIFICATE_PATH, DOCKER_CLIENT_KEY_PATH, DOCKER_CONTAINER_COUNT, DOCKER_CONTAINER_COUNTER, DOCKER_CONTAINER_FABRIC, DOCKER_GENERATE_TLS_CERTIFICATES, DOCKER_HARDWARE_ID, DOCKER_HOST_AFFINITY_RULES, DOCKER_HOST_CLUSTER, DOCKER_HOST_CLUSTER_MIN_SIZE, DOCKER_HOST_COUNT, DOCKER_HOST_COUNTER, DOCKER_HOST_SPEC, DOCKER_IMAGE_ID, DOCKER_IMAGE_REGISTRY, DOCKER_IMAGE_REGISTRY_PASSWORD, DOCKER_IMAGE_REGISTRY_URL, DOCKER_IMAGE_REGISTRY_USERNAME, DOCKER_IMAGE_REGISTRY_WRITEABLE, DOCKER_REGISTRY_PORT, DOCKER_SERVER_CERTIFICATE_PATH, DOCKER_SERVER_KEY_PATH, DOCKER_SHOULD_START_REGISTRY, DOCKER_VERSION, DOCKERFILE_NAME, DOCKERFILE_SUBSTITUTIONS, DOCKERFILE_URL, ETCD_CLUSTER, ETCD_VERSION, EXTERNAL_ETCD_CLUSTER, EXTERNAL_ETCD_INITIAL_SIZE, EXTERNAL_ETCD_URL, HA_POLICY_ENABLE, LOCATION_NAME, PLACEMENT_STRATEGIES, REMOVE_EMPTY_DOCKER_HOSTS, SDN_ENABLE, SDN_PROVIDER, SDN_PROVIDER_SPEC, SECURITY_GROUP, SHUTDOWN_TIMEOUT, USE_JCLOUDS_HOSTNAME_CUSTOMIZERDESTROY_ON_STOP, START_LATCH| Constructor and Description |
|---|
DockerInfrastructureImpl() |
| Modifier and Type | Method and Description |
|---|---|
DockerLocation |
createLocation(Map<String,?> flags) |
void |
deleteLocation() |
void |
doStart(Collection<? extends org.apache.brooklyn.api.location.Location> locs) |
org.apache.brooklyn.entity.group.DynamicGroup |
getContainerFabric() |
Integer |
getCurrentSize() |
List<org.apache.brooklyn.api.entity.Entity> |
getDockerContainerList() |
org.apache.brooklyn.entity.group.DynamicCluster |
getDockerHostCluster() |
List<org.apache.brooklyn.api.entity.Entity> |
getDockerHostList() |
DockerLocation |
getDynamicLocation() |
String |
getIconUrl() |
Object |
getInfrastructureMutex() |
void |
init() |
boolean |
isLocationAvailable() |
void |
postStart(Collection<? extends org.apache.brooklyn.api.location.Location> locations) |
Integer |
resize(Integer desiredSize) |
void |
stop()
De-register our
DockerLocation and its children. |
doStop, getApplication, initApp, initEnrichers, logApplicationLifecycle, onManagementStopped, preStart, recordApplicationEvent, restart, setApplication, setExpectedStateAndRecordLifecycleEvent, setParent, startaddChild, 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, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getConfig, getConfig, getConfig, getConfig, getConfigMap, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getFeedSupport, getGroups, getLocalConfigBag, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionTracker, groups, hashCode, invalidateReferences, invoke, invoke, invoke, modifyAttribute, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, onTagsChanged, policies, refreshInheritedConfig, relations, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeGroup, removeLocations, removePolicy, requestPersist, resetProxy, sensors, setAttribute, setAttribute, setAttributeWithoutPublishing, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setDefaultDisplayName, setDisplayName, setManagementContext, setProxy, subscribe, subscribeToChildren, subscribeToMembers, subscriptions, toMetadataRecord, toString, toStringHelper, unsubscribe, unsubscribeconfigure, getCatalogItemId, getId, isLegacyConstruction, isRebinding, rebind, 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, getDisplayName, getEnrichers, getEntityType, getGroups, getId, getLocations, getParent, getPolicies, groups, invoke, policies, relations, removeChild, removeEnricher, removeGroup, removePolicy, sensors, setDisplayName, setParentgetCatalogItemId, subscriptions, tagspublic Object getInfrastructureMutex()
getInfrastructureMutex in interface DockerInfrastructurepublic void init()
init in class org.apache.brooklyn.core.entity.AbstractApplicationpublic String getIconUrl()
getIconUrl in interface org.apache.brooklyn.api.entity.EntitygetIconUrl in class org.apache.brooklyn.core.entity.AbstractEntitypublic List<org.apache.brooklyn.api.entity.Entity> getDockerHostList()
getDockerHostList in interface DockerInfrastructurepublic org.apache.brooklyn.entity.group.DynamicCluster getDockerHostCluster()
getDockerHostCluster in interface DockerInfrastructurepublic List<org.apache.brooklyn.api.entity.Entity> getDockerContainerList()
getDockerContainerList in interface DockerInfrastructurepublic org.apache.brooklyn.entity.group.DynamicGroup getContainerFabric()
getContainerFabric in interface DockerInfrastructurepublic Integer resize(Integer desiredSize)
resize in interface org.apache.brooklyn.core.entity.trait.Resizablepublic Integer getCurrentSize()
getCurrentSize in interface org.apache.brooklyn.core.entity.trait.Resizablepublic DockerLocation getDynamicLocation()
getDynamicLocation in interface org.apache.brooklyn.core.location.dynamic.LocationOwner<DockerLocation,DockerInfrastructure>public boolean isLocationAvailable()
isLocationAvailable in interface org.apache.brooklyn.core.location.dynamic.LocationOwner<DockerLocation,DockerInfrastructure>public DockerLocation createLocation(Map<String,?> flags)
createLocation in interface org.apache.brooklyn.core.location.dynamic.LocationOwner<DockerLocation,DockerInfrastructure>public void deleteLocation()
deleteLocation in interface org.apache.brooklyn.core.location.dynamic.LocationOwner<DockerLocation,DockerInfrastructure>public void doStart(Collection<? extends org.apache.brooklyn.api.location.Location> locs)
doStart in class org.apache.brooklyn.core.entity.AbstractApplicationpublic void postStart(Collection<? extends org.apache.brooklyn.api.location.Location> locations)
postStart in class org.apache.brooklyn.core.entity.AbstractApplicationpublic void stop()
DockerLocation and its children.stop in interface org.apache.brooklyn.core.entity.trait.Startablestop in class org.apache.brooklyn.core.entity.AbstractApplicationCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.