- call() - Method in class org.zeroturnaround.exec.MDCCallableAdapter
-
- CallerLoggerUtil - Class in org.zeroturnaround.exec.stream
-
Constructs name for the caller logger.
- CallerLoggerUtil() - Constructor for class org.zeroturnaround.exec.stream.CallerLoggerUtil
-
- checkExitValue(ProcessResult) - Method in class org.zeroturnaround.exec.ProcessExecutor
-
Check the exit value of given process result.
- 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.
- close() - Method in class org.zeroturnaround.exec.stream.TeeOutputStream
-
Closes both output streams
- 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.
- createPump(InputStream, OutputStream, boolean, boolean) - Method in class org.zeroturnaround.exec.stream.PumpStreamHandler
-
Creates a stream pumper to copy the given input stream to the given
output stream.
- createSystemInPump(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.
- 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
-
- redirectErrorAsDebug(String) - Method in class org.zeroturnaround.exec.ProcessExecutor
-
- redirectErrorAsDebug() - Method in class org.zeroturnaround.exec.ProcessExecutor
-
- redirectErrorAsInfo(Logger) - Method in class org.zeroturnaround.exec.ProcessExecutor
-
- redirectErrorAsInfo(String) - Method in class org.zeroturnaround.exec.ProcessExecutor
-
- redirectErrorAsInfo() - Method in class org.zeroturnaround.exec.ProcessExecutor
-
- 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
-
- redirectOutputAsDebug(String) - Method in class org.zeroturnaround.exec.ProcessExecutor
-
- redirectOutputAsDebug() - Method in class org.zeroturnaround.exec.ProcessExecutor
-
- redirectOutputAsInfo(Logger) - Method in class org.zeroturnaround.exec.ProcessExecutor
-
- redirectOutputAsInfo(String) - Method in class org.zeroturnaround.exec.ProcessExecutor
-
- redirectOutputAsInfo() - Method in class org.zeroturnaround.exec.ProcessExecutor
-
- 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
-
- run() - Method in class org.zeroturnaround.exec.listener.ShutdownHookProcessDestroyer
-
Invoked by the VM when it is exiting.
- run() - Method in class org.zeroturnaround.exec.MDCRunnableAdapter
-
- 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.
- 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
-
- 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
-
- startInternal() - Method in class org.zeroturnaround.exec.ProcessExecutor
-
Start the process and its stream handlers.
- 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, boolean) - Constructor for class org.zeroturnaround.exec.stream.StreamPumper
-
Create a new stream pumper.
- StreamPumper(InputStream, OutputStream, boolean, int, boolean) - Constructor for class org.zeroturnaround.exec.stream.StreamPumper
-
Create a new stream pumper.
- 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.