public class ContainerTracker extends Object
docker:start
and docker:stop
are used in the same runConstructor 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,
GavLabel gavLabel)
Register a started container to this tracker
|
org.eclipse.jkube.kit.build.service.docker.ContainerTracker.ContainerShutdownDescriptor |
removeContainer(String containerId)
Remove a container from this container (if stored) and return its descriptor
|
Collection<org.eclipse.jkube.kit.build.service.docker.ContainerTracker.ContainerShutdownDescriptor> |
removeShutdownDescriptors(GavLabel gavLabel)
Get all shutdown descriptors for a given pom label and remove it from the tracker.
|
public void registerContainer(String containerId, ImageConfiguration imageConfig, GavLabel gavLabel)
containerId
- container id to registerimageConfig
- configuration of associated imagegavLabel
- pom label to identifying the reactor project where the container was createdpublic org.eclipse.jkube.kit.build.service.docker.ContainerTracker.ContainerShutdownDescriptor removeContainer(String containerId)
containerId
- id to removenull
public String lookupContainer(String lookup)
lookup
- name or alias of the container to lookupnull
public Collection<org.eclipse.jkube.kit.build.service.docker.ContainerTracker.ContainerShutdownDescriptor> removeShutdownDescriptors(GavLabel gavLabel)
gavLabel
- the label for which to get the descriptors or null
for all descriptorsCopyright © 2020. All rights reserved.