org.zeroturnaround.process
Class CompositeProcess

java.lang.Object
  extended by org.zeroturnaround.process.AbstractProcess
      extended by org.zeroturnaround.process.CompositeProcess
All Implemented Interfaces:
SystemProcess
Direct Known Subclasses:
AndProcess, OrProcess

public abstract class CompositeProcess
extends AbstractProcess

Contains other SystemProcesses preserving their order.


Field Summary
protected  List<? extends SystemProcess> children
           
 
Fields inherited from class org.zeroturnaround.process.AbstractProcess
log
 
Constructor Summary
CompositeProcess(List<? extends SystemProcess> children)
           
 
Method Summary
 String getDescription()
          Returns the description of the system process represented.
protected static void invokeDestroy(SystemProcess killer, boolean forceful)
           
 String toString()
           
 
Methods inherited from class org.zeroturnaround.process.AbstractProcess
destroy, destroyForcefully, destroyGracefully, waitFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.zeroturnaround.process.SystemProcess
isAlive, waitFor
 

Field Detail

children

protected final List<? extends SystemProcess> children
Constructor Detail

CompositeProcess

public CompositeProcess(List<? extends SystemProcess> children)
Method Detail

getDescription

public String getDescription()
Description copied from class: AbstractProcess
Returns the description of the system process represented.

Specified by:
getDescription in class AbstractProcess
Returns:
the description of the system process represented.

toString

public String toString()
Overrides:
toString in class AbstractProcess

invokeDestroy

protected static void invokeDestroy(SystemProcess killer,
                                    boolean forceful)
                             throws UnsupportedOperationException,
                                    IOException,
                                    InterruptedException
Throws:
UnsupportedOperationException
IOException
InterruptedException


Copyright © 2015 ZeroTurnaround. All rights reserved.