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 |
|---|---|
static ContainerTracker |
getInstance() |
String |
lookupContainer(String lookup)
Lookup a container by name or alias from the tracked containers
|
void |
registerContainer(String containerId,
org.eclipse.jkube.kit.config.image.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 static ContainerTracker getInstance()
public void registerContainer(String containerId, org.eclipse.jkube.kit.config.image.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 removenullpublic String lookupContainer(String lookup)
lookup - name or alias of the container to lookupnullpublic 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 © 2023. All rights reserved.