Package org.apache.commons.exec
Interface ProcessDestroyer
- 
- All Known Implementing Classes:
 ShutdownHookProcessDestroyer
public interface ProcessDestroyerDestroys all registeredProcessafter a certain event, typically when the VM exits- See Also:
 ShutdownHookProcessDestroyer
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanadd(java.lang.Process process)Returnstrueif the specifiedProcesswas successfully added to the list of processes to be destroy.booleanremove(java.lang.Process process)Returnstrueif the specifiedProcesswas successfully removed from the list of processes to be destroy.intsize()Returns the number of registered processes. 
 - 
 
- 
- 
Method Detail
- 
add
boolean add(java.lang.Process process)
Returnstrueif the specifiedProcesswas successfully added to the list of processes to be destroy.- Parameters:
 process- the process to add- Returns:
 trueif the specifiedProcesswas successfully added
 
- 
remove
boolean remove(java.lang.Process process)
Returnstrueif the specifiedProcesswas successfully removed from the list of processes to be destroy.- Parameters:
 process- the process to remove- Returns:
 trueif the specifiedProcesswas successfully removed
 
- 
size
int size()
Returns the number of registered processes.- Returns:
 - the number of register process
 
 
 - 
 
 -