org.zeroturnaround.process
Class Processes

java.lang.Object
  extended by org.zeroturnaround.process.Processes

public class Processes
extends Object

Creates SystemProcess instances.


Constructor Summary
Processes()
           
 
Method Summary
static JavaProcess newJavaProcess(Process process)
          Creates instance that represents given Process object.
static PidProcess newPidProcess(int pid)
          Creates instance that represent the given PID value and use external tools for the operations.
static PidProcess newPidProcess(Process process)
          Creates instance that represents PID value of the given Process and use external tools for the operations.
static SystemProcess newProcessForMultiple(SystemProcess... processes)
          Combines existing SystemProcess objects for multiple processes.
static SystemProcess newProcessWithAtlernatives(SystemProcess... processes)
          Combines existing SystemProcess objects as alternative implementations for a single process.
static SystemProcess newStandardProcess(Process process)
          Creates instance that represents the given Process by detecting its PID and using both Process object and the PID with external tools.
static SystemProcess newStandardProcess(Process process, int pid)
          Creates instance that represents the given Process or the given PID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Processes

public Processes()
Method Detail

newStandardProcess

public static SystemProcess newStandardProcess(Process process)
Creates instance that represents the given Process by detecting its PID and using both Process object and the PID with external tools. Java APIs are tried before using the external tools.


newStandardProcess

public static SystemProcess newStandardProcess(Process process,
                                               int pid)
Creates instance that represents the given Process or the given PID. They are expected to belong to the same system process. Java APIs are tried before using the external tools (PID value).


newJavaProcess

public static JavaProcess newJavaProcess(Process process)
Creates instance that represents given Process object.


newPidProcess

public static PidProcess newPidProcess(Process process)
Creates instance that represents PID value of the given Process and use external tools for the operations.


newPidProcess

public static PidProcess newPidProcess(int pid)
Creates instance that represent the given PID value and use external tools for the operations.


newProcessWithAtlernatives

public static SystemProcess newProcessWithAtlernatives(SystemProcess... processes)
Combines existing SystemProcess objects as alternative implementations for a single process.


newProcessForMultiple

public static SystemProcess newProcessForMultiple(SystemProcess... processes)
Combines existing SystemProcess objects for multiple processes.



Copyright © 2015 ZeroTurnaround. All rights reserved.