Package com.zfabrik.util.internal
Class WorkerVault
- java.lang.Object
-
- com.zfabrik.util.internal.WorkerVault
-
public class WorkerVault extends java.lang.Object
This is a utility place where worker processes get registered during their start. A stop request at that time will simply kill all starting workers the hard way. Usually this is due to user interactions when workers hang or get started at the time of a desired shutdown- Author:
- hb
-
-
Field Summary
Fields Modifier and Type Field Description static WorkerVault
INSTANCE
-
Constructor Summary
Constructors Constructor Description WorkerVault()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Process
exec(java.lang.ProcessBuilder processBuilder)
java.lang.Process
exec(java.lang.String cmdline)
void
release(java.lang.Process p)
void
shutDown()
-
-
-
Field Detail
-
INSTANCE
public static final WorkerVault INSTANCE
-
-
Method Detail
-
exec
public java.lang.Process exec(java.lang.String cmdline) throws java.io.IOException
- Throws:
java.io.IOException
-
exec
public java.lang.Process exec(java.lang.ProcessBuilder processBuilder) throws java.io.IOException
- Throws:
java.io.IOException
-
release
public void release(java.lang.Process p)
-
shutDown
public void shutDown()
-
-