Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.exec
Interface ProcessDestroyer

All Known Implementing Classes:
  ShutdownHookProcessDestroyer

    public interface ProcessDestroyer

Destroys all registered `Process` after a certain event, typically when the VM exits

See Also:
  `ShutdownHookProcessDestroyer`

Method Summary
`boolean` | `add(Process process)` Returns `true` if the specified `Process` was successfully added to the list of processes to be destroy.
`boolean` | `remove(Process process)` Returns `true` if the specified `Process` was successfully removed from the list of processes to be destroy.
`int` | `size()` Returns the number of registered processes.

Method Detail

### add

    boolean add(Process process)

  Returns `true` if the specified `Process` was successfully added to the list of processes to be destroy.

  Parameters:
    `process` - the process to add
  Returns:
    `true` if the specified `Process` was successfully added

### remove

    boolean remove(Process process)

  Returns `true` if the specified `Process` was successfully removed from the list of processes to be destroy.

  Parameters:
    `process` - the process to remove
  Returns:
    `true` if the specified `Process` was successfully removed

### size

    int size()

  Returns the number of registered processes.

  Returns:
    the number of register process

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.