public interface DockerHost extends brooklyn.entity.machine.MachineEntity, brooklyn.entity.trait.Resizable, brooklyn.entity.trait.HasShortName, brooklyn.location.dynamic.LocationOwner<DockerHostLocation,DockerHost>
This entity controls the DockerHostLocation location, and creates
and wraps a JcloudsLocation representing the API for the Docker
service on this machine.
brooklyn.entity.basic.SoftwareProcess.ChildStartableMode, brooklyn.entity.basic.SoftwareProcess.RestartSoftwareParameters, brooklyn.entity.basic.SoftwareProcess.StopSoftwareParametersbrooklyn.basic.BrooklynObject.TagSupport| Modifier and Type | Field and Description |
|---|---|
static brooklyn.entity.basic.MethodEffector<String> |
CREATE_SSHABLE_IMAGE |
static brooklyn.entity.basic.MethodEffector<String> |
DEPLOY_ARCHIVE |
static brooklyn.event.AttributeSensor<brooklyn.entity.group.DynamicCluster> |
DOCKER_CONTAINER_CLUSTER |
static brooklyn.event.basic.AttributeSensorAndConfigKey<brooklyn.entity.proxying.EntitySpec,brooklyn.entity.proxying.EntitySpec> |
DOCKER_CONTAINER_SPEC |
static brooklyn.event.basic.AttributeSensorAndConfigKey<String,String> |
DOCKER_HARDWARE_ID |
static brooklyn.config.ConfigKey<List<String>> |
DOCKER_HOST_AFFINITY_RULES |
static brooklyn.event.AttributeSensor<String> |
DOCKER_HOST_NAME |
static brooklyn.config.ConfigKey<String> |
DOCKER_HOST_NAME_FORMAT |
static brooklyn.event.AttributeSensor<brooklyn.networking.subnet.SubnetTier> |
DOCKER_HOST_SUBNET_TIER |
static brooklyn.event.basic.AttributeSensorAndConfigKey<Map<String,String>,Map<String,String>> |
DOCKER_HOST_VOLUME_MAPPING |
static brooklyn.event.basic.AttributeSensorAndConfigKey<String,String> |
DOCKER_IMAGE_ID |
static brooklyn.event.AttributeSensor<String> |
DOCKER_IMAGE_NAME |
static brooklyn.event.basic.AttributeSensorAndConfigKey<brooklyn.entity.Entity,brooklyn.entity.Entity> |
DOCKER_INFRASTRUCTURE |
static brooklyn.config.ConfigKey<String> |
DOCKER_PASSWORD |
static brooklyn.event.basic.PortAttributeSensorAndConfigKey |
DOCKER_PORT |
static brooklyn.event.basic.PortAttributeSensorAndConfigKey |
DOCKER_SSL_PORT |
static brooklyn.config.ConfigKey<String> |
DOCKER_STORAGE_DRIVER |
static brooklyn.config.ConfigKey<String> |
DOCKER_VERSION |
static brooklyn.event.basic.AttributeSensorAndConfigKey<String,String> |
DOWNLOAD_URL |
static brooklyn.config.ConfigKey<String> |
EPEL_RELEASE |
static brooklyn.event.AttributeSensor<brooklyn.location.jclouds.JcloudsLocation> |
JCLOUDS_DOCKER_LOCATION |
static brooklyn.config.ConfigKey<Boolean> |
OPEN_IPTABLES |
static brooklyn.config.ConfigKey<Map<String,Object>> |
PROVISIONING_FLAGS |
static brooklyn.entity.basic.MethodEffector<String> |
RUN_DOCKER_COMMAND |
static brooklyn.entity.basic.MethodEffector<String> |
RUN_DOCKER_COMMAND_TIMEOUT |
static brooklyn.event.AttributeSensor<Void> |
SCAN |
static brooklyn.config.ConfigKey<brooklyn.util.time.Duration> |
SCAN_INTERVAL |
static brooklyn.config.ConfigKey<brooklyn.util.time.Duration> |
START_TIMEOUT |
CPU_USAGE, EXEC_COMMAND, EXEC_COMMAND_TIMEOUT, FREE_MEMORY, LOAD_AVERAGE, TOTAL_MEMORY, UPTIME, USED_MEMORYADDRESS, CHILDREN_STARTABLE_MODE, CUSTOMIZE_LATCH, DOWNLOAD_ADDON_URLS, ENTITY_STARTED, EXPANDED_INSTALL_DIR, HOSTNAME, INSTALL_DIR, INSTALL_FILES, INSTALL_LATCH, INSTALL_RESOURCES_LATCH, INSTALL_TEMPLATES, INSTALL_UNIQUE_LABEL, LAUNCH_LATCH, MAXIMUM_REBIND_SENSOR_CONNECT_DELAY, PID_FILE, POST_INSTALL_COMMAND, POST_LAUNCH_COMMAND, PRE_INSTALL_COMMAND, PRE_INSTALL_FILES, PRE_INSTALL_TEMPLATES, PRE_LAUNCH_COMMAND, PROVISIONING_LOCATION, PROVISIONING_PROPERTIES, REQUIRED_OPEN_LOGIN_PORTS, RUN_DIR, RUNTIME_FILES, RUNTIME_RESOURCES_LATCH, RUNTIME_TEMPLATES, SERVICE_PROCESS_IS_RUNNING, SERVICE_STATE_ACTUAL, SERVICE_STATE_EXPECTED, SETUP_LATCH, SHELL_ENVIRONMENT, SKIP_ENTITY_START_IF_RUNNING, SKIP_INSTALLATION, START_LATCH, SUBNET_ADDRESS, SUBNET_HOSTNAME, SUGGESTED_INSTALL_DIR, SUGGESTED_RUN_DIR, SUGGESTED_VERSION| Modifier and Type | Method and Description |
|---|---|
String |
createSshableImage(String dockerFile,
String name)
Create an SSHable image and returns the image ID.
|
String |
deployArchive(String url)
Upload an archive file to the host and expand it, for export to a container.
|
int |
execCommandStatus(String command) |
int |
execCommandStatusTimeout(String command,
brooklyn.util.time.Duration timeout)
Runs a Unix command on the
machine and returns the exit status. |
brooklyn.entity.group.DynamicCluster |
getDockerContainerCluster() |
List<brooklyn.entity.Entity> |
getDockerContainerList() |
String |
getDockerHostName() |
Integer |
getDockerPort() |
com.google.common.base.Optional<String> |
getImageNamed(String name)
As
getImageNamed(String, String) and looking for the latest image. |
com.google.common.base.Optional<String> |
getImageNamed(String name,
String tag) |
DockerInfrastructure |
getInfrastructure() |
brooklyn.location.jclouds.JcloudsLocation |
getJcloudsLocation() |
String |
getPassword() |
brooklyn.networking.subnet.SubnetTier |
getSubnetTier() |
String |
layerSshableImageOn(String baseImage,
String tag)
Create an SSHable image based on the image with the given name.
|
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.
|
execCommand, execCommandTimeoutaddChild, 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, setParentstatic final brooklyn.config.ConfigKey<String> DOCKER_VERSION
static final brooklyn.config.ConfigKey<brooklyn.util.time.Duration> START_TIMEOUT
static final brooklyn.event.basic.AttributeSensorAndConfigKey<String,String> DOWNLOAD_URL
static final brooklyn.event.basic.PortAttributeSensorAndConfigKey DOCKER_PORT
static final brooklyn.event.basic.PortAttributeSensorAndConfigKey DOCKER_SSL_PORT
static final brooklyn.config.ConfigKey<Boolean> OPEN_IPTABLES
static final brooklyn.event.basic.AttributeSensorAndConfigKey<brooklyn.entity.proxying.EntitySpec,brooklyn.entity.proxying.EntitySpec> DOCKER_CONTAINER_SPEC
static final brooklyn.event.basic.AttributeSensorAndConfigKey<brooklyn.entity.Entity,brooklyn.entity.Entity> DOCKER_INFRASTRUCTURE
static final brooklyn.config.ConfigKey<String> DOCKER_HOST_NAME_FORMAT
static final brooklyn.config.ConfigKey<String> EPEL_RELEASE
static final brooklyn.config.ConfigKey<String> DOCKER_STORAGE_DRIVER
static final brooklyn.event.basic.AttributeSensorAndConfigKey<String,String> DOCKER_IMAGE_ID
static final brooklyn.event.AttributeSensor<String> DOCKER_IMAGE_NAME
static final brooklyn.event.basic.AttributeSensorAndConfigKey<String,String> DOCKER_HARDWARE_ID
static final brooklyn.event.basic.AttributeSensorAndConfigKey<Map<String,String>,Map<String,String>> DOCKER_HOST_VOLUME_MAPPING
static final brooklyn.config.ConfigKey<String> DOCKER_PASSWORD
static final brooklyn.config.ConfigKey<List<String>> DOCKER_HOST_AFFINITY_RULES
static final brooklyn.event.AttributeSensor<String> DOCKER_HOST_NAME
static final brooklyn.config.ConfigKey<brooklyn.util.time.Duration> SCAN_INTERVAL
static final brooklyn.event.AttributeSensor<Void> SCAN
static final brooklyn.event.AttributeSensor<brooklyn.entity.group.DynamicCluster> DOCKER_CONTAINER_CLUSTER
static final brooklyn.event.AttributeSensor<brooklyn.location.jclouds.JcloudsLocation> JCLOUDS_DOCKER_LOCATION
static final brooklyn.event.AttributeSensor<brooklyn.networking.subnet.SubnetTier> DOCKER_HOST_SUBNET_TIER
static final brooklyn.entity.basic.MethodEffector<String> CREATE_SSHABLE_IMAGE
static final brooklyn.entity.basic.MethodEffector<String> RUN_DOCKER_COMMAND
static final brooklyn.entity.basic.MethodEffector<String> RUN_DOCKER_COMMAND_TIMEOUT
static final brooklyn.entity.basic.MethodEffector<String> DEPLOY_ARCHIVE
String getPassword()
Integer getDockerPort()
brooklyn.location.jclouds.JcloudsLocation getJcloudsLocation()
brooklyn.networking.subnet.SubnetTier getSubnetTier()
String getDockerHostName()
brooklyn.entity.group.DynamicCluster getDockerContainerCluster()
List<brooklyn.entity.Entity> getDockerContainerList()
DockerInfrastructure getInfrastructure()
int execCommandStatusTimeout(String command, brooklyn.util.time.Duration timeout)
machine and returns the exit status.MachineEntity.execCommandTimeout(String, Duration)int execCommandStatus(String command)
com.google.common.base.Optional<String> getImageNamed(String name)
getImageNamed(String, String) and looking for the latest image.com.google.common.base.Optional<String> getImageNamed(String name, String tag)
String createSshableImage(String dockerFile, String name)
dockerFile - URL of Dockerfile to copyname - Repository nameDockerHostDriver.buildImage(String, String)String layerSshableImageOn(String baseImage, String tag)
baseImage - The parent image to base the new image on, e.g. "tomcat" or "redis"tag - The tag of the parent image, e.g. "latest"String runDockerCommand(String command)
command - Docker commandString runDockerCommandTimeout(String command, brooklyn.util.time.Duration timeout)
command - Docker commandtimeout - TimeoutCopyright © 2015. All rights reserved.