@ManagedResource(value="Reaper for external processes") public class ExternalProcessReaper extends AbstractReaper<ExternalProcessReaper.PIDGroup>
If there are several potential PIDs that this process might have the reaper keeps tracks of them
in a ExternalProcessReaper.PIDGroup
until it is not ambiguous anymore which one to kill. There are two
possibilities:
ExternalProcessReaper.PIDGroup
shrinks by terminating the processes in other ways until only one PID is
left.ExternalProcessReaper.PIDGroup
s get enqueued
until the number of identical
ExternalProcessReaper.PIDGroup
is the same as the number of PIDs tracked.Modifier and Type | Class and Description |
---|---|
static class |
ExternalProcessReaper.PIDGroup |
protected static class |
ExternalProcessReaper.UnixPIDGroup |
protected static class |
ExternalProcessReaper.WindowsPIDGroup |
Constructor and Description |
---|
ExternalProcessReaper() |
Modifier and Type | Method and Description |
---|---|
static ExternalProcessReaper.PIDGroup |
createPIDGroup(Collection<Integer> pids) |
protected com.levigo.util.log.Logger |
getLogger() |
protected String |
getName() |
protected void |
reapAllObjectsOnShutdown() |
protected boolean |
reapObject(ExternalProcessReaper.PIDGroup pidGroup,
int attempt) |
afterPropertiesSet, destroy, enqueue, enqueue, getEnqueuedObjectCount, getEnqueuedObjects, getObjectName, getReapedObjectCount, getTimeInterval, run, setTimeInterval
public static ExternalProcessReaper.PIDGroup createPIDGroup(Collection<Integer> pids)
protected boolean reapObject(ExternalProcessReaper.PIDGroup pidGroup, int attempt)
reapObject
in class AbstractReaper<ExternalProcessReaper.PIDGroup>
protected void reapAllObjectsOnShutdown()
reapAllObjectsOnShutdown
in class AbstractReaper<ExternalProcessReaper.PIDGroup>
protected String getName()
getName
in class AbstractReaper<ExternalProcessReaper.PIDGroup>
protected com.levigo.util.log.Logger getLogger()
getLogger
in class AbstractReaper<ExternalProcessReaper.PIDGroup>
Copyright © 2017 levigo holding gmbh. All rights reserved.