|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.counters.ActiveProcess
public class ActiveProcess
Command manages the execution and termination of a native process and an object reading the output of that process.
| Field Summary | |
|---|---|
protected InputStream |
is
|
protected static org.apache.log4j.Logger |
log
|
protected Process |
process
|
protected Future |
readerFuture
|
protected ExecutorService |
readService
Used to read is and aggregate the performance data reported
by the process. |
| Constructor Summary | |
|---|---|
ActiveProcess(List<String> command,
AbstractProcessCollector collector)
|
|
| Method Summary | |
|---|---|
boolean |
isAlive()
Return true unless the process is known to be dead. |
void |
start(AbstractProcessReader processReader)
Attaches the reader to the process, which was started by the ctor and is already running. |
void |
stop()
Stops the process |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
protected final ExecutorService readService
is and aggregate the performance data reported
by the process.
protected Process process
protected InputStream is
protected volatile Future readerFuture
| Constructor Detail |
|---|
public ActiveProcess(List<String> command,
AbstractProcessCollector collector)
command - The command to be executed. See
ProcessBuilder.command(List).collector - | Method Detail |
|---|
public void start(AbstractProcessReader processReader)
processReader - The reader.public void stop()
public boolean isAlive()
true unless the process is known to be dead.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||