Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- AbstractProcess - Class in org.zeroturnaround.process
-
Base implementation of
SystemProcess. - AbstractProcess() - Constructor for class org.zeroturnaround.process.AbstractProcess
- AndProcess - Class in org.zeroturnaround.process
-
Represents multiple processes.
- AndProcess(List<? extends SystemProcess>) - Constructor for class org.zeroturnaround.process.AndProcess
- ASCII_OPTIONS - Static variable in interface org.zeroturnaround.process.win.W32API
-
Standard options to use the ASCII/MBCS version of a w32 API.
C
- canDestroy(boolean) - Method in class org.zeroturnaround.process.Java8Process
- canDestroy(boolean) - Method in class org.zeroturnaround.process.JavaProcess
-
Check if destroying the process is supported based on the OS and JVM version (regardless the process is running or not).
- children - Variable in class org.zeroturnaround.process.CompositeProcess
- CompositeProcess - Class in org.zeroturnaround.process
-
Contains other
SystemProcesses preserving their order. - CompositeProcess(List<? extends SystemProcess>) - Constructor for class org.zeroturnaround.process.CompositeProcess
D
- DEFAULT_OPTIONS - Static variable in interface org.zeroturnaround.process.win.W32API
- destroy(boolean) - Method in class org.zeroturnaround.process.AbstractProcess
-
Destroys the process either forcefully or gracefully according to the given option.
- destroy(boolean) - Method in class org.zeroturnaround.process.AndProcess
- destroy(boolean) - Method in class org.zeroturnaround.process.JavaProcess
- destroy(boolean) - Method in class org.zeroturnaround.process.OrProcess
- destroy(boolean) - Method in class org.zeroturnaround.process.UnixProcess
- destroy(boolean) - Method in class org.zeroturnaround.process.WindowsProcess
- destroyForcefully() - Method in class org.zeroturnaround.process.AbstractProcess
-
Kills this process.
- destroyForcefully() - Method in interface org.zeroturnaround.process.SystemProcess
-
Kills this process.
- destroyForcefullyAndWait(SystemProcess) - Static method in class org.zeroturnaround.process.ProcessUtil
-
Destroys the given process forcefully and waits until it finishes or the current thread is interrupted.
- destroyForcefullyAndWait(SystemProcess, long, TimeUnit) - Static method in class org.zeroturnaround.process.ProcessUtil
-
Destroys the given process forcefully and waits until it finishes, a timeout occurs or the current thread is interrupted.
- destroyGracefully() - Method in class org.zeroturnaround.process.AbstractProcess
-
Terminates this process.
- destroyGracefully() - Method in interface org.zeroturnaround.process.SystemProcess
-
Terminates this process.
- destroyGracefullyAndWait(SystemProcess) - Static method in class org.zeroturnaround.process.ProcessUtil
-
Destroys the given process gracefully and waits until it finishes or the current thread is interrupted.
- destroyGracefullyAndWait(SystemProcess, long, TimeUnit) - Static method in class org.zeroturnaround.process.ProcessUtil
-
Destroys the given process gracefully and waits until it finishes, a timeout occurs or the current thread is interrupted.
- destroyGracefullyOrForcefullyAndWait(SystemProcess) - Static method in class org.zeroturnaround.process.ProcessUtil
-
Destroys the given process gracefully and waits until it finishes or the current thread is interrupted.
- destroyGracefullyOrForcefullyAndWait(SystemProcess, long, TimeUnit) - Static method in class org.zeroturnaround.process.ProcessUtil
-
Destroys the given process gracefully and waits until it finishes, a timeout occurs or the current thread is interrupted.
- destroyGracefullyOrForcefullyAndWait(SystemProcess, long, TimeUnit, long, TimeUnit) - Static method in class org.zeroturnaround.process.ProcessUtil
-
Destroys the given process gracefully and waits until it finishes, first timeout occurs or the current thread is interrupted.
E
- ERROR_FILE_NOT_FOUND - Static variable in interface org.zeroturnaround.process.win.W32Errors
- ERROR_INVALID_FUNCTION - Static variable in interface org.zeroturnaround.process.win.W32Errors
- ERROR_PATH_NOT_FOUND - Static variable in interface org.zeroturnaround.process.win.W32Errors
- ESRCH - Static variable in interface org.zeroturnaround.process.unix.LibC
F
- fromNative(Object, FromNativeContext) - Method in class org.zeroturnaround.process.win.W32API.HANDLE
G
- GetCurrentProcess() - Method in interface org.zeroturnaround.process.win.Kernel32
- getDescription() - Method in class org.zeroturnaround.process.AbstractProcess
- getDescription() - Method in class org.zeroturnaround.process.CompositeProcess
- getDescription() - Method in class org.zeroturnaround.process.JavaProcess
- getDescription() - Method in class org.zeroturnaround.process.PidProcess
- getIntervalForCheckingFinished() - Method in class org.zeroturnaround.process.PollingProcess
- getMyPid() - Static method in class org.zeroturnaround.process.PidUtil
- getPath() - Static method in class org.zeroturnaround.process.win.WmicUtil
- getpgid(int) - Method in interface org.zeroturnaround.process.unix.LibC
- getPid() - Method in class org.zeroturnaround.process.PidProcess
- getPid(Process) - Static method in class org.zeroturnaround.process.PidUtil
-
Detects PID from given
Processobject. - getProcess() - Method in class org.zeroturnaround.process.JavaProcess
-
Returns the wrapped process.
- GetProcessId(W32API.HANDLE) - Method in interface org.zeroturnaround.process.win.Kernel32
- getWmicPath() - Method in class org.zeroturnaround.process.WindowsProcess
H
- HANDLE() - Constructor for class org.zeroturnaround.process.win.W32API.HANDLE
I
- INSTANCE - Static variable in interface org.zeroturnaround.process.unix.LibC
- INSTANCE - Static variable in interface org.zeroturnaround.process.win.Kernel32
- INVALID_HANDLE_VALUE - Static variable in interface org.zeroturnaround.process.win.W32API
-
Constant value representing an invalid HANDLE.
- invokeDestroy(boolean) - Method in class org.zeroturnaround.process.Java8Process
- invokeDestroy(boolean) - Method in class org.zeroturnaround.process.JavaProcess
- invokeDestroy(SystemProcess, boolean) - Static method in class org.zeroturnaround.process.CompositeProcess
- invokeDestroyForcibly() - Method in class org.zeroturnaround.process.Java8Process
- isAlive() - Method in class org.zeroturnaround.process.AndProcess
- isAlive() - Method in class org.zeroturnaround.process.Java8Process
- isAlive() - Method in class org.zeroturnaround.process.JavaProcess
- isAlive() - Method in class org.zeroturnaround.process.OrProcess
- isAlive() - Method in interface org.zeroturnaround.process.SystemProcess
-
Tests whether this process is alive.
- isAlive() - Method in class org.zeroturnaround.process.UnixProcess
- isAlive() - Method in class org.zeroturnaround.process.WindowsProcess
- isAllAlive() - Method in class org.zeroturnaround.process.AndProcess
- isGracefulDestroyEnabled() - Method in class org.zeroturnaround.process.WindowsProcess
- isIncludeChildren() - Method in class org.zeroturnaround.process.WindowsProcess
- isSupported() - Static method in class org.zeroturnaround.process.Java8Process
J
- Java8Process - Class in org.zeroturnaround.process
-
Wrapper for
Processsince Java 8. - Java8Process(Process) - Constructor for class org.zeroturnaround.process.Java8Process
- JavaProcess - Class in org.zeroturnaround.process
-
Wrapper for
Process. - JavaProcess(Process) - Constructor for class org.zeroturnaround.process.JavaProcess
K
- Kernel32 - Interface in org.zeroturnaround.process.win
- kill(int) - Method in class org.zeroturnaround.process.UnixProcess
-
Sends a signal to this process.
- kill(int, int) - Method in interface org.zeroturnaround.process.unix.LibC
L
- LibC - Interface in org.zeroturnaround.process.unix
- log - Variable in class org.zeroturnaround.process.AbstractProcess
N
- newJavaProcess(Process) - Static method in class org.zeroturnaround.process.Processes
-
Creates an instance that represents the given
Processobject. - newPidProcess(int) - Static method in class org.zeroturnaround.process.Processes
-
Creates an instance that represents the given PID value.
- newPidProcess(Process) - Static method in class org.zeroturnaround.process.Processes
-
Creates an instance that represents the PID value of the given
Process. - newProcessForMultiple(SystemProcess...) - Static method in class org.zeroturnaround.process.Processes
-
Combines existing
SystemProcessobjects for multiple processes. - newProcessWithAlternatives(SystemProcess...) - Static method in class org.zeroturnaround.process.Processes
-
Combines existing
SystemProcessobjects as alternative implementations for a single process. - newProcessWithAtlernatives(SystemProcess...) - Static method in class org.zeroturnaround.process.Processes
-
Deprecated.
- newStandardProcess(Process) - Static method in class org.zeroturnaround.process.Processes
- newStandardProcess(Process, int) - Static method in class org.zeroturnaround.process.Processes
-
Creates an instance that represents the given
Processor the given PID. - NO_ERROR - Static variable in interface org.zeroturnaround.process.win.W32Errors
O
- org.zeroturnaround.process - package org.zeroturnaround.process
- org.zeroturnaround.process.unix - package org.zeroturnaround.process.unix
- org.zeroturnaround.process.win - package org.zeroturnaround.process.win
- OrProcess - Class in org.zeroturnaround.process
-
Represents a single system process containing alternative
SystemProcessimplementations for controlling it. - OrProcess(List<? extends SystemProcess>) - Constructor for class org.zeroturnaround.process.OrProcess
P
- pid - Variable in class org.zeroturnaround.process.PidProcess
-
The process ID.
- PidProcess - Class in org.zeroturnaround.process
-
Base implementation for processes that use
PID(Process ID) values. - PidProcess(int) - Constructor for class org.zeroturnaround.process.PidProcess
- PidUtil - Class in org.zeroturnaround.process
-
Helper methods for retrieving process IDs.
- PidUtil() - Constructor for class org.zeroturnaround.process.PidUtil
- PollingProcess - Class in org.zeroturnaround.process
-
Base implementation that polls for a process status.
- PollingProcess() - Constructor for class org.zeroturnaround.process.PollingProcess
- process - Variable in class org.zeroturnaround.process.JavaProcess
-
The wrapped process.
- Processes - Class in org.zeroturnaround.process
-
Creates
SystemProcessinstances. - Processes() - Constructor for class org.zeroturnaround.process.Processes
- ProcessUtil - Class in org.zeroturnaround.process
-
Additional helper methods for killing processes and waiting until they finish.
- ProcessUtil() - Constructor for class org.zeroturnaround.process.ProcessUtil
S
- setGracefulDestroyEnabled(boolean) - Method in class org.zeroturnaround.process.WindowsProcess
- setIncludeChildren(boolean) - Method in class org.zeroturnaround.process.WindowsProcess
- setIntervalForCheckingFinished(long) - Method in class org.zeroturnaround.process.PollingProcess
- setWmicPath(File) - Method in class org.zeroturnaround.process.WindowsProcess
- SIGKILL - Static variable in interface org.zeroturnaround.process.unix.LibC
- SIGTERM - Static variable in interface org.zeroturnaround.process.unix.LibC
- SystemProcess - Interface in org.zeroturnaround.process
-
Represents a native system process.
T
- taskkill(boolean) - Method in class org.zeroturnaround.process.WindowsProcess
-
Sends the destroy signal to this process.
- toString() - Method in class org.zeroturnaround.process.AbstractProcess
- toString() - Method in class org.zeroturnaround.process.CompositeProcess
U
- UNICODE_OPTIONS - Static variable in interface org.zeroturnaround.process.win.W32API
-
Standard options to use the unicode version of a w32 API.
- UnixProcess - Class in org.zeroturnaround.process
-
Process implementation for UNIX PID values.
- UnixProcess(int) - Constructor for class org.zeroturnaround.process.UnixProcess
W
- W32API - Interface in org.zeroturnaround.process.win
-
Base type for most W32 API libraries.
- W32API.HANDLE - Class in org.zeroturnaround.process.win
- W32Errors - Interface in org.zeroturnaround.process.win
- waitFor() - Method in class org.zeroturnaround.process.AndProcess
- waitFor() - Method in class org.zeroturnaround.process.JavaProcess
- waitFor() - Method in class org.zeroturnaround.process.OrProcess
- waitFor() - Method in class org.zeroturnaround.process.PollingProcess
- waitFor() - Method in interface org.zeroturnaround.process.SystemProcess
-
Causes the current thread to wait, if necessary, until this process has terminated.
- waitFor(long, TimeUnit) - Method in class org.zeroturnaround.process.AbstractProcess
-
Causes the current thread to wait, if necessary, until the process handled by this killer has terminated, or the specified timeout is reached.
- waitFor(long, TimeUnit) - Method in class org.zeroturnaround.process.Java8Process
- waitFor(long, TimeUnit) - Method in interface org.zeroturnaround.process.SystemProcess
-
Causes the current thread to wait, if necessary, until the process has terminated, or the specified timeout is reached.
- waitFor(SystemProcess) - Static method in class org.zeroturnaround.process.ProcessUtil
-
Waits until the given process finishes or the current thread is interrupted.
- waitFor(SystemProcess, long, TimeUnit) - Static method in class org.zeroturnaround.process.ProcessUtil
-
Waits until the given process finishes, a timeout is reached or the current thread is interrupted.
- WindowsProcess - Class in org.zeroturnaround.process
-
Process implementation for Windows PID values.
- WindowsProcess(int) - Constructor for class org.zeroturnaround.process.WindowsProcess
- WindowsProcess(int, File) - Constructor for class org.zeroturnaround.process.WindowsProcess
- WmicUtil - Class in org.zeroturnaround.process.win
-
Helper for locating
WMIC.exewhich is usually atC:\Windows\System32\Wbem. - WmicUtil() - Constructor for class org.zeroturnaround.process.win.WmicUtil
All Classes and Interfaces|All Packages|Constant Field Values
Processes.newProcessWithAlternatives(SystemProcess...)instead.