public class DockerHostImpl extends brooklyn.entity.machine.MachineEntityImpl implements DockerHost
brooklyn.basic.AbstractBrooklynObject.BasicTagSupportbrooklyn.entity.basic.SoftwareProcess.ChildStartableMode_subscriptionTracker, CHILD_ADDED, CHILD_REMOVED, EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, managementSupport, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, tempWorkingsCREATE_SSHABLE_IMAGE, DEPLOY_ARCHIVE, DOCKER_CONTAINER_CLUSTER_MAX_CPU, DOCKER_CONTAINER_CLUSTER_MAX_SIZE, DOCKER_CONTAINER_SPEC, DOCKER_HARDWARE_ID, DOCKER_HOST_AFFINITY_RULES, DOCKER_HOST_NAME, DOCKER_HOST_VOLUME_MAPPING, DOCKER_IMAGE_ID, DOCKER_IMAGE_NAME, DOCKER_INFRASTRUCTURE, DOCKER_PASSWORD, DOCKER_PORT, DOCKER_REPOSITORY, DOCKER_SSL_PORT, DOWNLOAD_URL, EPEL_RELEASE, HA_POLICY_ENABLE, HOST_NAME_FORMAT, RUN_DOCKER_COMMAND, RUN_DOCKER_COMMAND_TIMEOUT, START_TIMEOUT, SUGGESTED_VERSIONCPU_USAGE, EXEC_COMMAND, EXEC_COMMAND_TIMEOUT, FREE_MEMORY, LOAD_AVERAGE, TOTAL_MEMORY, UPTIME, USED_MEMORYADDRESS, CHILDREN_STARTABLE_MODE, CUSTOMIZE_LATCH, DOWNLOAD_ADDON_URLS, EXPANDED_INSTALL_DIR, HOSTNAME, INSTALL_DIR, INSTALL_LATCH, INSTALL_UNIQUE_LABEL, LAUNCH_LATCH, MAXIMUM_REBIND_SENSOR_CONNECT_DELAY, PID_FILE, POST_INSTALL_COMMAND, POST_LAUNCH_COMMAND, PRE_INSTALL_COMMAND, PRE_LAUNCH_COMMAND, PROVISIONING_LOCATION, PROVISIONING_PROPERTIES, RESOURCES_LATCH, RUN_DIR, RUNTIME_FILES, RUNTIME_TEMPLATES, SERVICE_PROCESS_IS_RUNNING, SERVICE_STATE_ACTUAL, SETUP_LATCH, SHELL_ENVIRONMENT, SKIP_INSTALLATION, START_LATCH, SUBNET_ADDRESS, SUBNET_HOSTNAME, SUGGESTED_INSTALL_DIR, SUGGESTED_RUN_DIR| Constructor and Description |
|---|
DockerHostImpl() |
| Modifier and Type | Method and Description |
|---|---|
DockerHostLocation |
createLocation(Map<String,?> flags)
Create a new
DockerHostLocation wrapping the machine we are starting in. |
String |
createSshableImage(String dockerFile,
String name)
Create an SSHable image and returns the image ID.
|
void |
deleteLocation() |
String |
deployArchive(String url)
Upload an archive file to the host and expand it, for export to a container.
|
void |
doStop() |
Integer |
getCurrentSize() |
brooklyn.entity.group.DynamicCluster |
getDockerContainerCluster() |
List<brooklyn.entity.Entity> |
getDockerContainerList() |
String |
getDockerHostName() |
Integer |
getDockerPort() |
DockerHostDriver |
getDriver() |
Class<?> |
getDriverInterface() |
DockerHostLocation |
getDynamicLocation() |
DockerInfrastructure |
getInfrastructure() |
brooklyn.location.jclouds.JcloudsLocation |
getJcloudsLocation() |
String |
getPassword() |
brooklyn.networking.subnet.PortForwarder |
getPortForwarder() |
String |
getRepository() |
String |
getShortName() |
brooklyn.networking.subnet.SubnetTier |
getSubnetTier() |
void |
init() |
boolean |
isLocationAvailable() |
protected Map<String,Object> |
obtainProvisioningFlags(brooklyn.location.MachineProvisioningLocation location) |
void |
postStart() |
protected void |
preStart() |
Integer |
resize(Integer desiredSize) |
String |
runDockerCommand(String command)
Execute a Docker command and return the output.
|
String |
runDockerCommandTimeout(String command,
brooklyn.util.time.Duration timeout)
Execute a Docker command and return the output, or throw an exception after a timeout.
|
connectSensors, disconnectSensors, execCommand, execCommandTimeout, getMachinecallRebindHooks, callStartHooks, checkModifiable, connectServiceUpIsRunning, disconnectServiceUpIsRunning, doInitDriver, doRestart, doStart, getLocalHostname, getMachineOrNull, getProvisioningLocation, getRequiredOpenPorts, initDriver, initEnrichers, newDriver, onManagementStarted, onManagementStarting, postDriverStart, postRebind, preStop, rebind, restart, setProvisioningLocation, start, startInLocation, startInLocation, startInLocation, startInLocation, stop, waitForEntityStart, waitForServiceUp, waitForServiceUp, waitForServiceUp, waitForServiceUpaddChild, addChild, addEnricher, addEnricher, addGroup, addLocations, addPolicy, addPolicy, addTag, clearLocations, clearParent, configure, configure, configure, configure, configure, containsTag, destroy, emit, emitInternal, equals, finalize, firstLocation, getAllAttributes, getAllConfig, getAllConfigBag, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getConfig, getConfig, getConfig, getConfig, getConfigMap, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getGroups, getIconUrl, getLocalConfigBag, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionContext, getSubscriptionTracker, getTags, hashCode, invalidateReferences, invoke, invoke, invoke, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStopped, onTagsChanged, refreshInheritedConfig, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeGroup, removeLocations, removePolicy, removeTag, requestPersist, 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, getId, getTagSupport, isLegacyConstruction, isRebindingexecCommand, execCommandTimeoutaddChild, addChild, addEnricher, addEnricher, 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.machine.MachineEntityImplprotected Map<String,Object> obtainProvisioningFlags(brooklyn.location.MachineProvisioningLocation location)
obtainProvisioningFlags in class brooklyn.entity.basic.SoftwareProcessImplpublic Integer resize(Integer desiredSize)
resize in interface brooklyn.entity.trait.Resizablepublic String getShortName()
getShortName in interface brooklyn.entity.trait.HasShortNamepublic Integer getCurrentSize()
getCurrentSize in interface brooklyn.entity.trait.Resizablepublic Class<?> getDriverInterface()
getDriverInterface in interface brooklyn.entity.drivers.DriverDependentEntitygetDriverInterface in class brooklyn.entity.machine.MachineEntityImplpublic DockerHostDriver getDriver()
getDriver in interface brooklyn.entity.basic.EmptySoftwareProcessgetDriver in class brooklyn.entity.basic.SoftwareProcessImplpublic Integer getDockerPort()
getDockerPort in interface DockerHostpublic String getDockerHostName()
getDockerHostName in interface DockerHostpublic List<brooklyn.entity.Entity> getDockerContainerList()
getDockerContainerList in interface DockerHostpublic DockerInfrastructure getInfrastructure()
getInfrastructure in interface DockerHostpublic String getPassword()
getPassword in interface DockerHostpublic String getRepository()
getRepository in interface DockerHostpublic String createSshableImage(String dockerFile, String name)
createSshableImage in interface DockerHostdockerFile - URL of Dockerfile to copyname - Repository nameDockerHostDriver.buildImage(String, String)public String runDockerCommand(String command)
runDockerCommand in interface DockerHostcommand - Docker commandpublic String runDockerCommandTimeout(String command, brooklyn.util.time.Duration timeout)
runDockerCommandTimeout in interface DockerHostcommand - Docker commandtimeout - Timeoutpublic String deployArchive(String url)
deployArchive in interface DockerHosturl - Archive source URLpublic DockerHostLocation getDynamicLocation()
getDynamicLocation in interface brooklyn.location.dynamic.LocationOwner<DockerHostLocation,DockerHost>public boolean isLocationAvailable()
isLocationAvailable in interface brooklyn.location.dynamic.LocationOwner<DockerHostLocation,DockerHost>public brooklyn.entity.group.DynamicCluster getDockerContainerCluster()
getDockerContainerCluster in interface DockerHostpublic brooklyn.location.jclouds.JcloudsLocation getJcloudsLocation()
getJcloudsLocation in interface DockerHostpublic brooklyn.networking.subnet.PortForwarder getPortForwarder()
getPortForwarder in interface DockerHostpublic brooklyn.networking.subnet.SubnetTier getSubnetTier()
getSubnetTier in interface DockerHostpublic DockerHostLocation createLocation(Map<String,?> flags)
DockerHostLocation wrapping the machine we are starting in.createLocation in interface brooklyn.location.dynamic.LocationOwner<DockerHostLocation,DockerHost>public void deleteLocation()
deleteLocation in interface brooklyn.location.dynamic.LocationOwner<DockerHostLocation,DockerHost>protected void preStart()
preStart in class brooklyn.entity.basic.SoftwareProcessImplpublic void postStart()
postStart in class brooklyn.entity.basic.SoftwareProcessImplpublic void doStop()
doStop in class brooklyn.entity.basic.SoftwareProcessImplCopyright © 2014. All rights reserved.