Processes when the VM exits.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private Method | |
| private ProcessDestroyer. | |
| private final Set | |
| private Method | |
| private boolean | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | ProcessDestroyer()
Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| private void | addShutdownHook()
Registers this |
| public boolean | Returns: true if this is currently added as shutdown hookReturns whether or not the ProcessDestroyer is registered as as shutdown hook |
| public boolean | |
| private void | removeShutdownHook()
Removes this |
| public void |
| added | back to summary |
|---|---|
| private boolean added | |
| addShutdownHookMethod | back to summary |
|---|---|
| private Method addShutdownHookMethod | |
| destroyProcessThread | back to summary |
|---|---|
| private ProcessDestroyer. | |
| processes | back to summary |
|---|---|
| private final Set<Process> processes | |
| removeShutdownHookMethod | back to summary |
|---|---|
| private Method removeShutdownHookMethod | |
| running | back to summary |
|---|---|
| private boolean running | |
| THREAD_DIE_TIMEOUT | back to summary |
|---|---|
| private static final int THREAD_DIE_TIMEOUT | |
| ProcessDestroyer | back to summary |
|---|---|
| pack-priv ProcessDestroyer() Constructs a | |
| add | back to summary |
|---|---|
| public boolean add(Process process) Returns
| |
| addShutdownHook | back to summary |
|---|---|
| private void addShutdownHook() Registers this | |
| isAddedAsShutdownHook | back to summary |
|---|---|
| public boolean isAddedAsShutdownHook() Returns whether or not the ProcessDestroyer is registered as as shutdown hook
| |
| remove | back to summary |
|---|---|
| public boolean remove(Process process) Returns
| |
| removeShutdownHook | back to summary |
|---|---|
| private void removeShutdownHook() Removes this | |
| run | back to summary |
|---|---|
| public void run() Implements java. Invoked by the VM when it is exiting.
| |
| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | run()
Overrides java. Implements java. |
| public void |
| shouldDestroy | back to summary |
|---|---|
| private boolean shouldDestroy | |
| ProcessDestroyerImpl | back to summary |
|---|---|
| public ProcessDestroyerImpl() | |
| run | back to summary |
|---|---|
| public void run() Overrides java. Implements java. Doc from java. This method is run by the thread when it executes. Subclasses of This method is not intended to be invoked directly. If this thread is a
platform thread created with a
| |
| setShouldDestroy | back to summary |
|---|---|
| public void setShouldDestroy(boolean shouldDestroy) | |