A B C D E F G H I L M N O P R S T V W

A

add(ProcessListener) - Method in class org.zeroturnaround.exec.listener.CompositeProcessListener
Add new listener.
add(Process) - Method in interface org.zeroturnaround.exec.listener.ProcessDestroyer
Returns true if the specified Process was successfully added to the list of processes to be destroy.
add(Process) - Method in class org.zeroturnaround.exec.listener.ShutdownHookProcessDestroyer
Returns true if the specified Process was successfully added to the list of processes to destroy upon VM exit.
addDestroyer(ProcessDestroyer) - Method in class org.zeroturnaround.exec.ProcessExecutor
Adds a process destroyer to be notified when the process starts and stops.
addListener(ProcessListener) - Method in class org.zeroturnaround.exec.ProcessExecutor
Register new process event handler.
afterFinish(Process, ProcessResult) - Method in class org.zeroturnaround.exec.listener.CompositeProcessListener
 
afterFinish(Process, ProcessResult) - Method in class org.zeroturnaround.exec.listener.ProcessListener
Invoked after a process has finished successfully.
afterStart(Process, ProcessExecutor) - Method in class org.zeroturnaround.exec.listener.CompositeProcessListener
 
afterStart(Process, ProcessExecutor) - Method in class org.zeroturnaround.exec.listener.DestroyerListenerAdapter
 
afterStart(Process, ProcessExecutor) - Method in class org.zeroturnaround.exec.listener.ProcessListener
Invoked after a process has started.
afterStop(Process) - Method in class org.zeroturnaround.exec.listener.CompositeProcessListener
 
afterStop(Process) - Method in class org.zeroturnaround.exec.listener.DestroyerListenerAdapter
 
afterStop(Process) - Method in class org.zeroturnaround.exec.listener.ProcessListener
Invoked after a process has exited (whether finished or cancelled).
as(Level) - Method in class org.zeroturnaround.exec.stream.slf4j.Slf4jStream
 
asDebug() - Method in class org.zeroturnaround.exec.stream.slf4j.Slf4jStream
 
asError() - Method in class org.zeroturnaround.exec.stream.slf4j.Slf4jStream
 
asInfo() - Method in class org.zeroturnaround.exec.stream.slf4j.Slf4jStream
 
asTrace() - Method in class org.zeroturnaround.exec.stream.slf4j.Slf4jStream
 
asWarn() - Method in class org.zeroturnaround.exec.stream.slf4j.Slf4jStream
 

B

beforeStart(ProcessExecutor) - Method in class org.zeroturnaround.exec.listener.CompositeProcessListener
 
beforeStart(ProcessExecutor) - Method in class org.zeroturnaround.exec.listener.ProcessListener
Invoked before a process is started.

C

CallerLoggerUtil - Class in org.zeroturnaround.exec.stream
Constructs name for the caller logger.
CallerLoggerUtil() - Constructor for class org.zeroturnaround.exec.stream.CallerLoggerUtil
 
clear() - Method in class org.zeroturnaround.exec.listener.CompositeProcessListener
Remove all existing listeners.
clearListeners() - Method in class org.zeroturnaround.exec.ProcessExecutor
Unregister all existing process event handlers.
clone() - Method in class org.zeroturnaround.exec.listener.CompositeProcessListener
 
close(Process) - Method in interface org.zeroturnaround.exec.close.ProcessCloser
Closes standard streams of a given sub process.
close(Process) - Method in class org.zeroturnaround.exec.close.StandardProcessCloser
 
close(Process) - Method in class org.zeroturnaround.exec.close.TimeoutProcessCloser
 
close() - Method in class org.zeroturnaround.exec.stream.LogOutputStream
Writes all remaining data from the buffer.
closeTimeout(long, TimeUnit) - Method in class org.zeroturnaround.exec.ProcessExecutor
Sets a timeout for closing standard streams of the process being executed.
command(List<String>) - Method in class org.zeroturnaround.exec.ProcessExecutor
Sets the program and its arguments which are being executed.
command(String...) - Method in class org.zeroturnaround.exec.ProcessExecutor
Sets the program and its arguments which are being executed.
command(Iterable<String>) - Method in class org.zeroturnaround.exec.ProcessExecutor
Sets the program and its arguments which are being executed.
commandSplit(String) - Method in class org.zeroturnaround.exec.ProcessExecutor
Splits string by spaces and passes it to ProcessExecutor.command(String...)
NB: this method do not handle whitespace escaping, "mkdir new\ folder" would be interpreted as {"mkdir", "new\", "folder"} command.
CompositeProcessListener - Class in org.zeroturnaround.exec.listener
Composite process event handler.
CompositeProcessListener() - Constructor for class org.zeroturnaround.exec.listener.CompositeProcessListener
 
CompositeProcessListener(List<ProcessListener>) - Constructor for class org.zeroturnaround.exec.listener.CompositeProcessListener
 
createProcessErrorPump(InputStream, OutputStream) - Method in class org.zeroturnaround.exec.stream.PumpStreamHandler
Create the pump to handle error output.
createProcessOutputPump(InputStream, OutputStream) - Method in class org.zeroturnaround.exec.stream.PumpStreamHandler
Create the pump to handle process output.
createPump(InputStream, OutputStream) - Method in class org.zeroturnaround.exec.stream.PumpStreamHandler
Creates a stream pumper to copy the given input stream to the given output stream.
createPump(InputStream, OutputStream, boolean) - Method in class org.zeroturnaround.exec.stream.PumpStreamHandler
Creates a stream pumper to copy the given input stream to the given output stream.

D

DEBUG - Static variable in class org.zeroturnaround.exec.MessageLoggers
 
debug(Logger) - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectOutput(OutputStream) and Slf4jStream
debug(String) - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectOutput(OutputStream) and Slf4jStream
debug() - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectOutput(OutputStream) and Slf4jStream
DEFAULT_EXIT_VALUES - Static variable in class org.zeroturnaround.exec.ProcessExecutor
 
DEFAULT_REDIRECT_ERROR_STREAM - Static variable in class org.zeroturnaround.exec.ProcessExecutor
 
destroyer(ProcessDestroyer) - Method in class org.zeroturnaround.exec.ProcessExecutor
Sets the process destroyer to be notified when the process starts and stops.
DestroyerListenerAdapter - Class in org.zeroturnaround.exec.listener
Process event handler that wraps a process destroyer.
DestroyerListenerAdapter(ProcessDestroyer) - Constructor for class org.zeroturnaround.exec.listener.DestroyerListenerAdapter
 
destroyOnExit() - Method in class org.zeroturnaround.exec.ProcessExecutor
Sets the started process to be destroyed on VM exit (shutdown hooks are executed).
DestroyProcessStopper - Class in org.zeroturnaround.exec.stop
Default ProcessStopper implementation that just invokes Process.destroy().
DestroyProcessStopper() - Constructor for class org.zeroturnaround.exec.stop.DestroyProcessStopper
 
directory(File) - Method in class org.zeroturnaround.exec.ProcessExecutor
Sets this working directory for the process being executed.
doClose(Process) - Method in class org.zeroturnaround.exec.close.TimeoutProcessCloser
 

E

environment(Map<String, String>) - Method in class org.zeroturnaround.exec.ProcessExecutor
Adds additional environment variables for the process being executed.
environment(String, String) - Method in class org.zeroturnaround.exec.ProcessExecutor
Adds a single additional environment variable for the process being executed.
execute() - Method in class org.zeroturnaround.exec.ProcessExecutor
Executes the sub process.
executeNoTimeout() - Method in class org.zeroturnaround.exec.ProcessExecutor
Executes the sub process.
ExecuteStreamHandler - Interface in org.zeroturnaround.exec.stream
Used by Execute to handle input and output stream of subprocesses.
exitValue() - Method in exception org.zeroturnaround.exec.InvalidResultException
Deprecated. use InvalidResultException.getExitValue()
exitValue(Integer) - Method in class org.zeroturnaround.exec.ProcessExecutor
Sets the allowed exit value for the process being executed.
exitValue() - Method in class org.zeroturnaround.exec.ProcessResult
Deprecated. use ProcessResult.getExitValue()
exitValueAny() - Method in class org.zeroturnaround.exec.ProcessExecutor
Allows any exit value for the process being executed.
exitValueNormal() - Method in class org.zeroturnaround.exec.ProcessExecutor
Allows only 0 as the exit value for the process being executed.
exitValues(Integer...) - Method in class org.zeroturnaround.exec.ProcessExecutor
Sets the allowed exit values for the process being executed.
exitValues(int[]) - Method in class org.zeroturnaround.exec.ProcessExecutor
Sets the allowed exit values for the process being executed.

F

flush() - Method in class org.zeroturnaround.exec.stream.LogOutputStream
Flush this log stream.
flush() - Method in class org.zeroturnaround.exec.stream.PumpStreamHandler
 
future() - Method in class org.zeroturnaround.exec.StartedProcess
Deprecated. use StartedProcess.getFuture() instead.

G

get(Level) - Static method in class org.zeroturnaround.exec.MessageLoggers
 
getBytes() - Method in class org.zeroturnaround.exec.ProcessOutput
 
getErr() - Method in class org.zeroturnaround.exec.stream.PumpStreamHandler
Get the error stream.
getExitValue() - Method in exception org.zeroturnaround.exec.InvalidResultException
 
getExitValue() - Method in class org.zeroturnaround.exec.ProcessResult
 
getFuture() - Method in class org.zeroturnaround.exec.StartedProcess
 
getInput() - Method in class org.zeroturnaround.exec.stream.PumpStreamHandler
Get the input stream.
getLines() - Method in class org.zeroturnaround.exec.ProcessOutput
 
getLines(String) - Method in class org.zeroturnaround.exec.ProcessOutput
 
getLinesAsUTF8() - Method in class org.zeroturnaround.exec.ProcessOutput
 
getLogger() - Method in class org.zeroturnaround.exec.stream.slf4j.Slf4jOutputStream
 
getName(String) - Static method in class org.zeroturnaround.exec.stream.CallerLoggerUtil
Returns full name for the caller class' logger.
getName(String, int) - Static method in class org.zeroturnaround.exec.stream.CallerLoggerUtil
Returns full name for the caller class' logger.
getOut() - Method in class org.zeroturnaround.exec.stream.PumpStreamHandler
Get the output stream.
getOutput() - Method in class org.zeroturnaround.exec.ProcessResult
 
getProcess() - Method in class org.zeroturnaround.exec.StartedProcess
 
getResult() - Method in exception org.zeroturnaround.exec.InvalidResultException
 
getString() - Method in class org.zeroturnaround.exec.ProcessOutput
 
getString(String) - Method in class org.zeroturnaround.exec.ProcessOutput
 
getUTF8() - Method in class org.zeroturnaround.exec.ProcessOutput
 

H

hasOutput() - Method in class org.zeroturnaround.exec.ProcessResult
 

I

INFO - Static variable in class org.zeroturnaround.exec.MessageLoggers
 
info(Logger) - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectOutput(OutputStream) and Slf4jStream
info(String) - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectOutput(OutputStream) and Slf4jStream
info() - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectOutput(OutputStream) and Slf4jStream
InputStreamPumper - Class in org.zeroturnaround.exec.stream
Copies all data from an System.input stream to an output stream of the executed process.
InputStreamPumper(InputStream, OutputStream) - Constructor for class org.zeroturnaround.exec.stream.InputStreamPumper
Create a new stream pumper.
INSTANCE - Static variable in class org.zeroturnaround.exec.listener.ShutdownHookProcessDestroyer
Singleton instance of the ShutdownHookProcessDestroyer.
INSTANCE - Static variable in class org.zeroturnaround.exec.stop.DestroyProcessStopper
Singleton instance of the DestroyProcessStopper.
INSTANCE - Static variable in class org.zeroturnaround.exec.stop.NopProcessStopper
Singleton instance of the NopProcessStopper.
InvalidExitValueException - Exception in org.zeroturnaround.exec
Process finished with a forbidden exit value.
InvalidExitValueException(String, ProcessResult) - Constructor for exception org.zeroturnaround.exec.InvalidExitValueException
 
InvalidOutputException - Exception in org.zeroturnaround.exec
Process finished with an unexpected output.
InvalidOutputException(String, ProcessResult) - Constructor for exception org.zeroturnaround.exec.InvalidOutputException
 
InvalidResultException - Exception in org.zeroturnaround.exec
Process finished with an unexpected result.
InvalidResultException(String, ProcessResult) - Constructor for exception org.zeroturnaround.exec.InvalidResultException
 
isAddedAsShutdownHook() - Method in class org.zeroturnaround.exec.listener.ShutdownHookProcessDestroyer
Returns whether or not the ProcessDestroyer is registered as as shutdown hook
isFinished() - Method in class org.zeroturnaround.exec.stream.StreamPumper
Tells whether the end of the stream has been reached.

L

Level - Enum in org.zeroturnaround.exec.stream.slf4j
Slf4j logging level.
listener(ProcessListener) - Method in class org.zeroturnaround.exec.ProcessExecutor
Unregister all existing process event handlers and register new one.
log - Variable in class org.zeroturnaround.exec.stream.slf4j.Slf4jOutputStream
 
LogOutputStream - Class in org.zeroturnaround.exec.stream
Base class to connect a logging system to the output and/or error stream of then external process.
LogOutputStream() - Constructor for class org.zeroturnaround.exec.stream.LogOutputStream
 

M

message(Logger, String, Object...) - Method in interface org.zeroturnaround.exec.MessageLogger
Log a message at certain level according to the specified format and arguments.
MessageLogger - Interface in org.zeroturnaround.exec
Logs messages at certain level.
MessageLoggers - Class in org.zeroturnaround.exec
Contains MessageLogger instances for various log levels.

N

NOP - Static variable in class org.zeroturnaround.exec.MessageLoggers
 
NopProcessStopper - Class in org.zeroturnaround.exec.stop
ProcessStopper implementation that does nothing - it keeps the process running.
NopProcessStopper() - Constructor for class org.zeroturnaround.exec.stop.NopProcessStopper
 

O

of(Logger) - Static method in class org.zeroturnaround.exec.stream.slf4j.Slf4jStream
 
of(Class<?>) - Static method in class org.zeroturnaround.exec.stream.slf4j.Slf4jStream
 
of(Class<?>, String) - Static method in class org.zeroturnaround.exec.stream.slf4j.Slf4jStream
Constructs a logger from a class name and an additional name, appended to the end.
of(String) - Static method in class org.zeroturnaround.exec.stream.slf4j.Slf4jStream
 
ofCaller() - Static method in class org.zeroturnaround.exec.stream.slf4j.Slf4jStream
 
org.zeroturnaround.exec - package org.zeroturnaround.exec
 
org.zeroturnaround.exec.close - package org.zeroturnaround.exec.close
 
org.zeroturnaround.exec.listener - package org.zeroturnaround.exec.listener
 
org.zeroturnaround.exec.stop - package org.zeroturnaround.exec.stop
 
org.zeroturnaround.exec.stream - package org.zeroturnaround.exec.stream
 
org.zeroturnaround.exec.stream.slf4j - package org.zeroturnaround.exec.stream.slf4j
 
output() - Method in class org.zeroturnaround.exec.ProcessResult
 
outputString() - Method in class org.zeroturnaround.exec.ProcessResult
 
outputString(String) - Method in class org.zeroturnaround.exec.ProcessResult
 
outputUTF8() - Method in class org.zeroturnaround.exec.ProcessResult
 

P

process() - Method in class org.zeroturnaround.exec.StartedProcess
Deprecated. use StartedProcess.getProcess() instead.
processBuffer() - Method in class org.zeroturnaround.exec.stream.LogOutputStream
Converts the buffer to a string and sends it to processLine.
ProcessCloser - Interface in org.zeroturnaround.exec.close
Abstraction for closing sub process' streams.
ProcessDestroyer - Interface in org.zeroturnaround.exec.listener
Destroys all registered Process after a certain event, typically when the VM exits
ProcessExecutor - Class in org.zeroturnaround.exec
Helper for executing sub processes.
ProcessExecutor() - Constructor for class org.zeroturnaround.exec.ProcessExecutor
Creates new ProcessExecutor instance.
ProcessExecutor(List<String>) - Constructor for class org.zeroturnaround.exec.ProcessExecutor
Creates new ProcessExecutor instance for the given program and its arguments.
ProcessExecutor(String...) - Constructor for class org.zeroturnaround.exec.ProcessExecutor
Creates new ProcessExecutor instance for the given program and its arguments.
ProcessExecutor(Iterable<String>) - Constructor for class org.zeroturnaround.exec.ProcessExecutor
Creates new ProcessExecutor instance for the given program and its arguments.
processLine(String) - Method in class org.zeroturnaround.exec.stream.LogOutputStream
Logs a line to the log system of the user.
processLine(String) - Method in class org.zeroturnaround.exec.stream.slf4j.Slf4jDebugOutputStream
 
processLine(String) - Method in class org.zeroturnaround.exec.stream.slf4j.Slf4jErrorOutputStream
 
processLine(String) - Method in class org.zeroturnaround.exec.stream.slf4j.Slf4jInfoOutputStream
 
processLine(String) - Method in class org.zeroturnaround.exec.stream.slf4j.Slf4jTraceOutputStream
 
processLine(String) - Method in class org.zeroturnaround.exec.stream.slf4j.Slf4jWarnOutputStream
 
ProcessListener - Class in org.zeroturnaround.exec.listener
Event handler for process events.
ProcessListener() - Constructor for class org.zeroturnaround.exec.listener.ProcessListener
 
ProcessOutput - Class in org.zeroturnaround.exec
Standard output of a finished process.
ProcessOutput(byte[]) - Constructor for class org.zeroturnaround.exec.ProcessOutput
 
ProcessResult - Class in org.zeroturnaround.exec
Exit value and output of a finished process.
ProcessResult(int, ProcessOutput) - Constructor for class org.zeroturnaround.exec.ProcessResult
 
ProcessStopper - Interface in org.zeroturnaround.exec.stop
Abstraction for stopping sub processes.
pumps() - Method in class org.zeroturnaround.exec.ProcessExecutor
 
PumpStreamHandler - Class in org.zeroturnaround.exec.stream
Copies standard output and error of subprocesses to standard output and error of the parent process.
PumpStreamHandler() - Constructor for class org.zeroturnaround.exec.stream.PumpStreamHandler
Construct a new PumpStreamHandler.
PumpStreamHandler(OutputStream) - Constructor for class org.zeroturnaround.exec.stream.PumpStreamHandler
Construct a new PumpStreamHandler.
PumpStreamHandler(OutputStream, OutputStream) - Constructor for class org.zeroturnaround.exec.stream.PumpStreamHandler
Construct a new PumpStreamHandler.
PumpStreamHandler(OutputStream, OutputStream, InputStream) - Constructor for class org.zeroturnaround.exec.stream.PumpStreamHandler
Construct a new PumpStreamHandler.

R

readOutput(boolean) - Method in class org.zeroturnaround.exec.ProcessExecutor
Sets this process executor's readOutput property.
redirectError(OutputStream) - Method in class org.zeroturnaround.exec.ProcessExecutor
Redirects the process' error stream to given output stream.
redirectErrorAlsoTo(OutputStream) - Method in class org.zeroturnaround.exec.ProcessExecutor
Redirects the process' error stream also to a given output stream.
redirectErrorAsDebug(Logger) - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectError(OutputStream) and Slf4jStream
redirectErrorAsDebug(String) - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectError(OutputStream) and Slf4jStream
redirectErrorAsDebug() - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectError(OutputStream) and Slf4jStream
redirectErrorAsInfo(Logger) - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectError(OutputStream) and Slf4jStream
redirectErrorAsInfo(String) - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectError(OutputStream) and Slf4jStream
redirectErrorAsInfo() - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectError(OutputStream) and Slf4jStream
redirectErrorStream(boolean) - Method in class org.zeroturnaround.exec.ProcessExecutor
Sets this process executor's redirectErrorStream property.
redirectInput(InputStream) - Method in class org.zeroturnaround.exec.ProcessExecutor
Sets the input stream to redirect to the process' input stream.
redirectOutput(OutputStream) - Method in class org.zeroturnaround.exec.ProcessExecutor
Redirects the process' output stream to given output stream.
redirectOutputAlsoTo(OutputStream) - Method in class org.zeroturnaround.exec.ProcessExecutor
Redirects the process' output stream also to a given output stream.
redirectOutputAsDebug(Logger) - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectOutput(OutputStream) and Slf4jStream
redirectOutputAsDebug(String) - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectOutput(OutputStream) and Slf4jStream
redirectOutputAsDebug() - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectOutput(OutputStream) and Slf4jStream
redirectOutputAsInfo(Logger) - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectOutput(OutputStream) and Slf4jStream
redirectOutputAsInfo(String) - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectOutput(OutputStream) and Slf4jStream
redirectOutputAsInfo() - Method in class org.zeroturnaround.exec.ProcessExecutor
Deprecated. use ProcessExecutor.redirectOutput(OutputStream) and Slf4jStream
remove(ProcessListener) - Method in class org.zeroturnaround.exec.listener.CompositeProcessListener
Remove existing listener.
remove(Process) - Method in interface org.zeroturnaround.exec.listener.ProcessDestroyer
Returns true if the specified Process was successfully removed from the list of processes to be destroy.
remove(Process) - Method in class org.zeroturnaround.exec.listener.ShutdownHookProcessDestroyer
Returns true if the specified Process was successfully removed from the list of processes to destroy upon VM exit.
removeAll(Class<? extends ProcessListener>) - Method in class org.zeroturnaround.exec.listener.CompositeProcessListener
Remove existing listeners of given type or its sub-types.
removeListener(ProcessListener) - Method in class org.zeroturnaround.exec.ProcessExecutor
Unregister existing process event handler.
removeListeners(Class<? extends ProcessListener>) - Method in class org.zeroturnaround.exec.ProcessExecutor
Unregister existing process event handlers of given type or its sub-types.
result() - Method in exception org.zeroturnaround.exec.InvalidResultException
Deprecated. use InvalidResultException.getResult()
run() - Method in class org.zeroturnaround.exec.listener.ShutdownHookProcessDestroyer
Invoked by the VM when it is exiting.
run() - Method in class org.zeroturnaround.exec.stream.InputStreamPumper
Copies data from the input stream to the output stream.
run() - Method in class org.zeroturnaround.exec.stream.StreamPumper
Copies data from the input stream to the output stream.

S

setMessageLogger(MessageLogger) - Method in class org.zeroturnaround.exec.ProcessExecutor
Changes how most common messages about starting and waiting for processes are actually logged.
setProcessErrorStream(InputStream) - Method in interface org.zeroturnaround.exec.stream.ExecuteStreamHandler
Install a handler for the error stream of the subprocess.
setProcessErrorStream(InputStream) - Method in class org.zeroturnaround.exec.stream.PumpStreamHandler
Set the InputStream from which to read the standard error of the process.
setProcessInputStream(OutputStream) - Method in interface org.zeroturnaround.exec.stream.ExecuteStreamHandler
Install a handler for the input stream of the subprocess.
setProcessInputStream(OutputStream) - Method in class org.zeroturnaround.exec.stream.PumpStreamHandler
Set the OutputStream by means of which input can be sent to the process.
setProcessOutputStream(InputStream) - Method in interface org.zeroturnaround.exec.stream.ExecuteStreamHandler
Install a handler for the output stream of the subprocess.
setProcessOutputStream(InputStream) - Method in class org.zeroturnaround.exec.stream.PumpStreamHandler
Set the InputStream from which to read the standard output of the process.
ShutdownHookProcessDestroyer - Class in org.zeroturnaround.exec.listener
Destroys all registered Processes when the VM exits.
ShutdownHookProcessDestroyer() - Constructor for class org.zeroturnaround.exec.listener.ShutdownHookProcessDestroyer
Constructs a ProcessDestroyer and obtains Runtime.addShutdownHook() and Runtime.removeShutdownHook() through reflection.
size() - Method in interface org.zeroturnaround.exec.listener.ProcessDestroyer
Returns the number of registered processes.
size() - Method in class org.zeroturnaround.exec.listener.ShutdownHookProcessDestroyer
Returns the number of registered processes.
SLEEPING_TIME - Static variable in class org.zeroturnaround.exec.stream.InputStreamPumper
 
Slf4jDebugOutputStream - Class in org.zeroturnaround.exec.stream.slf4j
Output stream that writes debug level messages to a given Logger.
Slf4jDebugOutputStream(Logger) - Constructor for class org.zeroturnaround.exec.stream.slf4j.Slf4jDebugOutputStream
 
Slf4jErrorOutputStream - Class in org.zeroturnaround.exec.stream.slf4j
Output stream that writes error level messages to a given Logger.
Slf4jErrorOutputStream(Logger) - Constructor for class org.zeroturnaround.exec.stream.slf4j.Slf4jErrorOutputStream
 
Slf4jInfoOutputStream - Class in org.zeroturnaround.exec.stream.slf4j
Output stream that writes info level messages to a given Logger.
Slf4jInfoOutputStream(Logger) - Constructor for class org.zeroturnaround.exec.stream.slf4j.Slf4jInfoOutputStream
 
Slf4jOutputStream - Class in org.zeroturnaround.exec.stream.slf4j
Output stream that writes to a given Logger.
Slf4jOutputStream(Logger) - Constructor for class org.zeroturnaround.exec.stream.slf4j.Slf4jOutputStream
 
Slf4jStream - Class in org.zeroturnaround.exec.stream.slf4j
Creates output streams that write to Loggers.
Slf4jTraceOutputStream - Class in org.zeroturnaround.exec.stream.slf4j
Output stream that writes trace level messages to a given Logger.
Slf4jTraceOutputStream(Logger) - Constructor for class org.zeroturnaround.exec.stream.slf4j.Slf4jTraceOutputStream
 
Slf4jWarnOutputStream - Class in org.zeroturnaround.exec.stream.slf4j
Output stream that writes warn level messages to a given Logger.
Slf4jWarnOutputStream(Logger) - Constructor for class org.zeroturnaround.exec.stream.slf4j.Slf4jWarnOutputStream
 
StandardProcessCloser - Class in org.zeroturnaround.exec.close
Stops ExecuteStreamHandler from pumping the streams and closes them.
StandardProcessCloser(ExecuteStreamHandler) - Constructor for class org.zeroturnaround.exec.close.StandardProcessCloser
 
start() - Method in class org.zeroturnaround.exec.ProcessExecutor
Start the sub process.
start() - Method in interface org.zeroturnaround.exec.stream.ExecuteStreamHandler
Start handling of the streams.
start() - Method in class org.zeroturnaround.exec.stream.PumpStreamHandler
Start the Threads.
StartedProcess - Class in org.zeroturnaround.exec
Represents a process that has started.
StartedProcess(Process, Future<ProcessResult>) - Constructor for class org.zeroturnaround.exec.StartedProcess
 
stop(Process) - Method in class org.zeroturnaround.exec.stop.DestroyProcessStopper
 
stop(Process) - Method in class org.zeroturnaround.exec.stop.NopProcessStopper
 
stop(Process) - Method in interface org.zeroturnaround.exec.stop.ProcessStopper
Stops a given sub process.
stop() - Method in interface org.zeroturnaround.exec.stream.ExecuteStreamHandler
Stop handling of the streams - will not be restarted.
stop() - Method in class org.zeroturnaround.exec.stream.PumpStreamHandler
Stop pumping the streams.
stopper(ProcessStopper) - Method in class org.zeroturnaround.exec.ProcessExecutor
Sets the helper for stopping the process in case of timeout or cancellation.
stopProcessing() - Method in class org.zeroturnaround.exec.stream.InputStreamPumper
 
StreamPumper - Class in org.zeroturnaround.exec.stream
Copies all data from an input stream to an output stream.
StreamPumper(InputStream, OutputStream, boolean) - Constructor for class org.zeroturnaround.exec.stream.StreamPumper
Create a new stream pumper.
StreamPumper(InputStream, OutputStream, boolean, int) - Constructor for class org.zeroturnaround.exec.stream.StreamPumper
Create a new stream pumper.
StreamPumper(InputStream, OutputStream) - Constructor for class org.zeroturnaround.exec.stream.StreamPumper
Create a new stream pumper.
streams - Variable in class org.zeroturnaround.exec.close.StandardProcessCloser
 
streams() - Method in class org.zeroturnaround.exec.ProcessExecutor
 
streams(ExecuteStreamHandler) - Method in class org.zeroturnaround.exec.ProcessExecutor
Sets a stream handler for the process being executed.

T

timeout(long, TimeUnit) - Method in class org.zeroturnaround.exec.ProcessExecutor
Sets a timeout for the process being executed.
TimeoutProcessCloser - Class in org.zeroturnaround.exec.close
Same as StandardProcessCloser but only waits fixed period for the closing.
TimeoutProcessCloser(ExecuteStreamHandler, long, TimeUnit) - Constructor for class org.zeroturnaround.exec.close.TimeoutProcessCloser
Creates new instance of TimeoutProcessCloser.
TRACE - Static variable in class org.zeroturnaround.exec.MessageLoggers
 

V

valueOf(String) - Static method in enum org.zeroturnaround.exec.stream.slf4j.Level
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.zeroturnaround.exec.stream.slf4j.Level
Returns an array containing the constants of this enum type, in the order they are declared.

W

waitFor() - Method in class org.zeroturnaround.exec.stream.StreamPumper
This method blocks until the stream pumper finishes.
write(int) - Method in class org.zeroturnaround.exec.stream.LogOutputStream
Write the data to the buffer and flush the buffer, if a line separator is detected.
write(byte[], int, int) - Method in class org.zeroturnaround.exec.stream.LogOutputStream
Write a block of characters to the output stream

A B C D E F G H I L M N O P R S T V W

Copyright © 2015 ZeroTurnaround. All rights reserved.