public class ContainerTracker extends Object
docker:start and docker:stop are used in the same run| Constructor and Description |
|---|
ContainerTracker() |
| Modifier and Type | Method and Description |
|---|---|
String |
lookupContainer(String lookup)
Lookup a container by name or alias from the tracked containers
|
void |
registerContainer(String containerId,
ImageConfiguration imageConfig,
PomLabel pomLabel)
Register a started container to this tracker
|
io.fabric8.maven.docker.service.ContainerTracker.ContainerShutdownDescriptor |
removeContainer(String containerId)
Remove a container from this container (if stored) and return its descriptor
|
Collection<io.fabric8.maven.docker.service.ContainerTracker.ContainerShutdownDescriptor> |
removeShutdownDescriptors(PomLabel pomLabel)
Get all shutdown descriptors for a given pom label and remove it from the tracker.
|
public void registerContainer(String containerId, ImageConfiguration imageConfig, PomLabel pomLabel)
containerId - container id to registerimageConfig - configuration of associated imagepomLabel - pom label to identifying the reactor project where the container was createdpublic io.fabric8.maven.docker.service.ContainerTracker.ContainerShutdownDescriptor removeContainer(String containerId)
containerId - id to removenullpublic String lookupContainer(String lookup)
lookup - name or alias of the container to lookupnullpublic Collection<io.fabric8.maven.docker.service.ContainerTracker.ContainerShutdownDescriptor> removeShutdownDescriptors(PomLabel pomLabel)
pomLabel - the label for which to get the descriptors or null for all descriptorsCopyright © 2016. All Rights Reserved.