Uses of Interface
org.zeroturnaround.process.SystemProcess
Packages that use SystemProcess
-
Uses of SystemProcess in org.zeroturnaround.process
Classes in org.zeroturnaround.process that implement SystemProcessModifier and TypeClassDescriptionclassBase implementation ofSystemProcess.classRepresents multiple processes.classContains otherSystemProcesses preserving their order.classWrapper forProcesssince Java 8.classWrapper forProcess.classRepresents a single system process containing alternativeSystemProcessimplementations for controlling it.classBase implementation for processes that usePID(Process ID) values.classBase implementation that polls for a process status.classProcess implementation for UNIX PID values.classProcess implementation for Windows PID values.Fields in org.zeroturnaround.process with type parameters of type SystemProcessModifier and TypeFieldDescriptionprotected final List<? extends SystemProcess>CompositeProcess.childrenMethods in org.zeroturnaround.process that return SystemProcessModifier and TypeMethodDescriptionSystemProcess.destroyForcefully()Kills this process.SystemProcess.destroyGracefully()Terminates this process.static SystemProcessProcesses.newProcessForMultiple(SystemProcess... processes) Combines existingSystemProcessobjects for multiple processes.static SystemProcessProcesses.newProcessWithAlternatives(SystemProcess... processes) Combines existingSystemProcessobjects as alternative implementations for a single process.static SystemProcessProcesses.newProcessWithAtlernatives(SystemProcess... processes) Deprecated.static SystemProcessProcesses.newStandardProcess(Process process) static SystemProcessProcesses.newStandardProcess(Process process, int pid) Creates an instance that represents the givenProcessor the given PID.Methods in org.zeroturnaround.process with parameters of type SystemProcessModifier and TypeMethodDescriptionstatic voidProcessUtil.destroyForcefullyAndWait(SystemProcess process) Destroys the given process forcefully and waits until it finishes or the current thread is interrupted.static voidProcessUtil.destroyForcefullyAndWait(SystemProcess process, long timeout, TimeUnit unit) Destroys the given process forcefully and waits until it finishes, a timeout occurs or the current thread is interrupted.static voidProcessUtil.destroyGracefullyAndWait(SystemProcess process) Destroys the given process gracefully and waits until it finishes or the current thread is interrupted.static voidProcessUtil.destroyGracefullyAndWait(SystemProcess process, long timeout, TimeUnit unit) Destroys the given process gracefully and waits until it finishes, a timeout occurs or the current thread is interrupted.static voidProcessUtil.destroyGracefullyOrForcefullyAndWait(SystemProcess process) Destroys the given process gracefully and waits until it finishes or the current thread is interrupted.static voidProcessUtil.destroyGracefullyOrForcefullyAndWait(SystemProcess process, long gracefulTimeout, TimeUnit gracefulTimeoutUnit) Destroys the given process gracefully and waits until it finishes, a timeout occurs or the current thread is interrupted.static voidProcessUtil.destroyGracefullyOrForcefullyAndWait(SystemProcess process, long gracefulTimeout, TimeUnit gracefulTimeoutUnit, long forcefulTimeout, TimeUnit forcefulTimeoutUnit) Destroys the given process gracefully and waits until it finishes, first timeout occurs or the current thread is interrupted.protected static voidCompositeProcess.invokeDestroy(SystemProcess killer, boolean forceful) static SystemProcessProcesses.newProcessForMultiple(SystemProcess... processes) Combines existingSystemProcessobjects for multiple processes.static SystemProcessProcesses.newProcessWithAlternatives(SystemProcess... processes) Combines existingSystemProcessobjects as alternative implementations for a single process.static SystemProcessProcesses.newProcessWithAtlernatives(SystemProcess... processes) Deprecated.static voidProcessUtil.waitFor(SystemProcess process) Waits until the given process finishes or the current thread is interrupted.static voidProcessUtil.waitFor(SystemProcess process, long timeout, TimeUnit unit) Waits until the given process finishes, a timeout is reached or the current thread is interrupted.Constructor parameters in org.zeroturnaround.process with type arguments of type SystemProcessModifierConstructorDescriptionAndProcess(List<? extends SystemProcess> children) CompositeProcess(List<? extends SystemProcess> children) OrProcess(List<? extends SystemProcess> children)
Processes.newProcessWithAlternatives(SystemProcess...)instead.