public class CascadingCapsuleContainer extends MBeanCapsuleContainer
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CascadingCapsuleContainer.ProcessInfo |
CAPSULE_PROCESS_KILLED, CAPSULE_PROCESS_LAUNCHED| Constructor and Description |
|---|
CascadingCapsuleContainer(Path cacheDir)
Constructs a new capsule container.
|
CascadingCapsuleContainer(Path cacheDir,
MBeanServer mbeanServer)
Constructs a new capsule container
|
| Modifier and Type | Method and Description |
|---|---|
protected CascadingCapsuleContainer.ProcessInfo |
getProcessInfo(String id)
Returns information about a process
|
protected CapsuleContainer.ProcessInfo |
mountProcess(Process p,
String id,
String capsuleId,
List<String> jvmArgs,
List<String> args) |
createProcessId, getProcessMBeansconfigureCapsuleProcess, createEmitter, getMBeanInterface, getProcess, getProcesses, getProcessInfo, killProcess, launchCapsule, onProcessDeath, onProcessLaunchpublic CascadingCapsuleContainer(Path cacheDir, MBeanServer mbeanServer)
cacheDir - the path of the directory to hold capsules' cachesmbeanServer - the MBeanServer to use for reflecting the capsule's MBean servers.public CascadingCapsuleContainer(Path cacheDir)
CascadingCapsuleContainer(cacheDir, ManagementFactory.getPlatformMBeanServer()).cacheDir - the path of the directory to hold capsules' cachesprotected CapsuleContainer.ProcessInfo mountProcess(Process p, String id, String capsuleId, List<String> jvmArgs, List<String> args) throws IOException, InstanceAlreadyExistsException
mountProcess in class MBeanCapsuleContainerIOExceptionInstanceAlreadyExistsExceptionprotected CascadingCapsuleContainer.ProcessInfo getProcessInfo(String id)
CapsuleContainergetProcessInfo in class MBeanCapsuleContainerid - the process IDCapsuleContainer.ProcessInfo object/