public abstract class DockerClientProviderStrategy
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected com.github.dockerjava.api.DockerClient |
client |
protected com.github.dockerjava.core.DockerClientConfig |
config |
protected static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
DockerClientProviderStrategy() |
Modifier and Type | Method and Description |
---|---|
com.github.dockerjava.api.DockerClient |
getClient() |
protected com.github.dockerjava.api.DockerClient |
getClientForConfig(com.github.dockerjava.core.DockerClientConfig config) |
abstract java.lang.String |
getDescription() |
java.lang.String |
getDockerHostIpAddress() |
static DockerClientProviderStrategy |
getFirstValidStrategy(java.util.List<DockerClientProviderStrategy> strategies)
Determine the right DockerClientConfig to use for building clients by trial-and-error.
|
protected int |
getPriority() |
protected boolean |
isApplicable() |
protected boolean |
isPersistable() |
protected void |
ping(com.github.dockerjava.api.DockerClient client,
int timeoutInSeconds) |
abstract void |
test() |
protected com.github.dockerjava.api.DockerClient client
protected com.github.dockerjava.core.DockerClientConfig config
protected static final org.slf4j.Logger LOGGER
public abstract void test() throws InvalidConfigurationException
InvalidConfigurationException
- if this strategy failspublic abstract java.lang.String getDescription()
protected boolean isApplicable()
protected boolean isPersistable()
protected int getPriority()
public static DockerClientProviderStrategy getFirstValidStrategy(java.util.List<DockerClientProviderStrategy> strategies)
public com.github.dockerjava.api.DockerClient getClient()
protected com.github.dockerjava.api.DockerClient getClientForConfig(com.github.dockerjava.core.DockerClientConfig config)
protected void ping(com.github.dockerjava.api.DockerClient client, int timeoutInSeconds)
public java.lang.String getDockerHostIpAddress()