Interface ProcessControlProvider
- All Known Implementing Classes:
AttachProcessControlProvider
public interface ProcessControlProvider
Provides the ability to monitor the process of a container.
- Since:
- 7.3.5
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configureContainer
(Container container) Configure a container for process monitoring.containerProcess
(Container container) Returns the process of a container if it exists.void
generateThreadDump
(Container container, Writer writer) Generate a thread dump of the process to the specified writer.
-
Method Details
-
configureContainer
Configure a container for process monitoring. This could, for example, set a unique identifier.- Parameters:
container
- container to configure.
-
containerProcess
Returns the process of a container if it exists.- Parameters:
container
- the container to retrieve the process for.- Returns:
- the container process, or null if it does not exist.
- Throws:
IOException
- if an error occurs reading the container's process.
-
generateThreadDump
Generate a thread dump of the process to the specified writer.- Throws:
IOException
- if an I/O error occurs generating the thread dump or writing towriter
.
-