Package net.sf.mmm.util.process.api

Provides the API for utilities that help to deal with Processes.

See:
          Description

Interface Summary
AsyncProcessExecutor This is the interface for an async executor of a Process.
ProcessUtil This is the interface for a collection of utility functions to deal with Processes.
 

Class Summary
ProcessContext This class represents the context for a process.
 

Package net.sf.mmm.util.process.api Description

Provides the API for utilities that help to deal with Processes.

Process-Util API

Dealing with Process is NOT an easy task. The streams for stdin, stdout, and stderr need to be transferred asynchronously. Creating a pipe is the typical task and is easily done with a shell like bash. However solving this with java is quite a little challenge if you do this from scratch. Even worse there is a bug in java when creating processes via Runtime which causes that sub-processes are NOT terminated and keep running if a Process is destroyed.
This package prevents you from those headaches by providing utilities that make it easier to deal with Processes.
If you want to use this in a server application, you can inject an Executor providing a thread-pool.



Copyright © 2001-2010 mmm-Team. All Rights Reserved.