public class GizmoDockerStacker extends Object implements org.opennms.gizmo.GizmoStacker<GizmoDockerStack>
| Constructor and Description |
|---|
GizmoDockerStacker(GizmoDockerRuleBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Set<String> |
getAliases() |
com.spotify.docker.client.messages.ContainerInfo |
getContainerInfo(String alias) |
protected com.spotify.docker.client.DockerClient |
getDocker() |
InetSocketAddress |
getServiceAddress(String alias,
int port) |
InetSocketAddress |
getServiceAddress(String alias,
int port,
String type) |
void |
init() |
void |
stack(GizmoDockerStack stack) |
void |
tearDown() |
public GizmoDockerStacker(GizmoDockerRuleBuilder builder)
public void init()
throws com.spotify.docker.client.exceptions.DockerCertificateException
init in interface org.opennms.gizmo.GizmoStacker<GizmoDockerStack>com.spotify.docker.client.exceptions.DockerCertificateExceptionpublic void stack(GizmoDockerStack stack) throws com.spotify.docker.client.exceptions.DockerException, InterruptedException
stack in interface org.opennms.gizmo.GizmoStacker<GizmoDockerStack>com.spotify.docker.client.exceptions.DockerExceptionInterruptedExceptionpublic void tearDown()
tearDown in interface org.opennms.gizmo.GizmoStacker<GizmoDockerStack>public com.spotify.docker.client.messages.ContainerInfo getContainerInfo(String alias)
public InetSocketAddress getServiceAddress(String alias, int port)
public InetSocketAddress getServiceAddress(String alias, int port, String type)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionprotected com.spotify.docker.client.DockerClient getDocker()
Copyright © 2017. All rights reserved.