public interface ContainerStateObserver
| Modifier and Type | Method and Description |
|---|---|
void |
addObservedContainer(String containerId)
Adds the container with the given container Id to the list of observed
containers.
|
void |
addTerminationCallback(ContainerTerminationCallback callback)
Adds the callback that will be notified using
ContainerTerminationCallback.notifyTermination(String, int) |
List<String> |
getObservedContainers()
Returns the list of observed containers.
|
void |
removedObservedContainer(String containerId)
Removes the container with the given container Id from the list of
observed containers.
|
void |
removeTerminationCallback(ContainerTerminationCallback callback)
Removes the callback that will be notified using
ContainerTerminationCallback.notifyTermination(String, int) |
void |
startObserving()
Start observing the state of containers
|
void |
stopObserving()
Stop observing the state of containers
|
void startObserving()
void stopObserving()
void addTerminationCallback(ContainerTerminationCallback callback)
ContainerTerminationCallback.notifyTermination(String, int)callback - the class that should be called if a container terminatesvoid removeTerminationCallback(ContainerTerminationCallback callback)
ContainerTerminationCallback.notifyTermination(String, int)callback - the class that should be called if a container terminatesvoid addObservedContainer(String containerId)
containerId - the Id of the container that should be observedvoid removedObservedContainer(String containerId)
containerId - the Id of the container that should be removedCopyright © 2017–2018. All rights reserved.