A B C D E F G H I L M P R S T V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractProcessOutput - Class in com.github.fracpete.processoutput4j.output
-
Ancestor for classes that give access to the output generated by a process.
- AbstractProcessOutput() - Constructor for class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Starts the monitoring process.
- AbstractProcessReader - Class in com.github.fracpete.processoutput4j.reader
-
Ancestor for readers that read line from stdout/stderr of the provided
Processobject. - AbstractProcessReader(boolean) - Constructor for class com.github.fracpete.processoutput4j.reader.AbstractProcessReader
-
Initializes the reader.
- AbstractProcessRunnable - Class in com.github.fracpete.processoutput4j.core
-
Ancestor for runnables that use a
Processobject. - AbstractProcessRunnable() - Constructor for class com.github.fracpete.processoutput4j.core.AbstractProcessRunnable
-
Initializes the reader.
B
- BOTH - com.github.fracpete.processoutput4j.core.StreamingProcessOutputType
C
- CollectingProcessOutput - Class in com.github.fracpete.processoutput4j.output
-
Collects the process output (stdout and stderr) and makes them available once the process finishes.
- CollectingProcessOutput() - Constructor for class com.github.fracpete.processoutput4j.output.CollectingProcessOutput
- CollectingProcessReader - Class in com.github.fracpete.processoutput4j.reader
-
Reader for storing all content.
- CollectingProcessReader(boolean, StringBuilder) - Constructor for class com.github.fracpete.processoutput4j.reader.CollectingProcessReader
-
Initializes the reader.
- com.github.fracpete.processoutput4j.core - package com.github.fracpete.processoutput4j.core
- com.github.fracpete.processoutput4j.core.impl - package com.github.fracpete.processoutput4j.core.impl
- com.github.fracpete.processoutput4j.output - package com.github.fracpete.processoutput4j.output
- com.github.fracpete.processoutput4j.reader - package com.github.fracpete.processoutput4j.reader
- configureStdErr() - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Configures the reader for stderr.
- configureStdErr() - Method in class com.github.fracpete.processoutput4j.output.CollectingProcessOutput
-
Configures the reader for stderr.
- configureStdErr() - Method in class com.github.fracpete.processoutput4j.output.ConsoleOutputProcessOutput
-
Configures the thread for stderr.
- configureStdErr() - Method in class com.github.fracpete.processoutput4j.output.StreamingProcessOutput
-
Configures the thread for stderr.
- configureStdOut() - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Configures the reader for stdout.
- configureStdOut() - Method in class com.github.fracpete.processoutput4j.output.CollectingProcessOutput
-
Configures the reader for stdout.
- configureStdOut() - Method in class com.github.fracpete.processoutput4j.output.ConsoleOutputProcessOutput
-
Configures the thread for stdout.
- configureStdOut() - Method in class com.github.fracpete.processoutput4j.output.StreamingProcessOutput
-
Configures the thread for stdout.
- configureTimeOutMonitor() - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Configures the runnable for watching for time outs.
- ConsoleOutputProcessOutput - Class in com.github.fracpete.processoutput4j.output
-
A container class for the results obtained from executing a process.
- ConsoleOutputProcessOutput() - Constructor for class com.github.fracpete.processoutput4j.output.ConsoleOutputProcessOutput
- ConsoleOutputProcessReader - Class in com.github.fracpete.processoutput4j.reader
-
Just outputs the data to stdout/stderr.
- ConsoleOutputProcessReader(boolean) - Constructor for class com.github.fracpete.processoutput4j.reader.ConsoleOutputProcessReader
-
Initializes the reader.
- ConsoleOutputProcessReader(boolean, String) - Constructor for class com.github.fracpete.processoutput4j.reader.ConsoleOutputProcessReader
-
Initializes the reader.
D
- DEFAULT_PREFIX_STDERR - Static variable in class com.github.fracpete.processoutput4j.core.impl.PrefixedStreamingProcessOwner
-
default prefix for stderr.
- DEFAULT_PREFIX_STDOUT - Static variable in class com.github.fracpete.processoutput4j.core.impl.PrefixedStreamingProcessOwner
-
default prefix for stdout.
- destroy() - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Destroys the process if possible.
- doRun() - Method in class com.github.fracpete.processoutput4j.core.AbstractProcessRunnable
-
The actual processing loop.
- doRun() - Method in class com.github.fracpete.processoutput4j.reader.AbstractProcessReader
-
The actual processing loop.
E
- envArrayToMap(String[]) - Static method in class com.github.fracpete.processoutput4j.core.EnvironmentUtils
-
Turns the environment strings (key=value) into a map.
- EnvironmentUtils - Class in com.github.fracpete.processoutput4j.core
-
Helper class for environment operations.
- EnvironmentUtils() - Constructor for class com.github.fracpete.processoutput4j.core.EnvironmentUtils
- envMapToArray(Map<String, String>) - Static method in class com.github.fracpete.processoutput4j.core.EnvironmentUtils
-
Turns the environment map into array of key=value strings.
F
- flush() - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Flushes the readers.
- flush() - Method in class com.github.fracpete.processoutput4j.reader.AbstractProcessReader
-
Flushes the data.
G
- getCommand() - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Returns the command that was used for the process.
- getContent() - Method in class com.github.fracpete.processoutput4j.reader.CollectingProcessReader
-
Returns the string builder for storing the content.
- getEnvironment() - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Returns the environment.
- getExitCode() - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Returns the exit code.
- getOutputType() - Method in class com.github.fracpete.processoutput4j.core.impl.PrefixedStreamingProcessOwner
-
Returns what output from the process to forward.
- getOutputType() - Method in class com.github.fracpete.processoutput4j.core.impl.SimpleStreamingProcessOwner
-
Returns what output from the process to forward.
- getOutputType() - Method in interface com.github.fracpete.processoutput4j.core.StreamingProcessOwner
-
Returns what output from the process to forward.
- getPrefix() - Method in class com.github.fracpete.processoutput4j.reader.ConsoleOutputProcessReader
-
Returns the prefix in use.
- getProcess() - Method in class com.github.fracpete.processoutput4j.core.AbstractProcessRunnable
-
Returns the underlying
Processobject. - getProcess() - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Returns the process.
- getStdErr() - Method in class com.github.fracpete.processoutput4j.output.CollectingProcessOutput
-
Returns the output on stderr.
- getStdOut() - Method in class com.github.fracpete.processoutput4j.output.CollectingProcessOutput
-
Returns the output on stdout.
- getTimeOut() - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Returns the timeout for the process in seconds.
H
- hasSucceeded() - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Returns whether the process has succeeded.
- hasTimedOut() - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Returns whether the process timed out and got terminated.
I
- initialize() - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
For initializing the members.
- initialize() - Method in class com.github.fracpete.processoutput4j.output.CollectingProcessOutput
-
For initializing the members.
- isStdout() - Method in class com.github.fracpete.processoutput4j.reader.AbstractProcessReader
-
Returns whether the reader is for stdout or stderr.
- isStopped() - Method in class com.github.fracpete.processoutput4j.core.AbstractProcessRunnable
-
Returns whether execution got stopped.
L
- logError(String) - Method in class com.github.fracpete.processoutput4j.core.AbstractProcessRunnable
-
Just outputs the message on stderr.
- logError(String, Throwable) - Method in class com.github.fracpete.processoutput4j.core.AbstractProcessRunnable
-
Just outputs message and throwable on stderr.
M
- m_Command - Variable in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
the command.
- m_Content - Variable in class com.github.fracpete.processoutput4j.reader.CollectingProcessReader
-
the string builder to store the data in.
- m_Environment - Variable in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
the environment variables.
- m_ExitCode - Variable in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
the exit code.
- m_Forward - Variable in class com.github.fracpete.processoutput4j.reader.StreamingProcessReader
-
whether to forward the output to the owner.
- m_Owner - Variable in class com.github.fracpete.processoutput4j.output.StreamingProcessOutput
-
the owner.
- m_Owner - Variable in class com.github.fracpete.processoutput4j.reader.StreamingProcessReader
-
the owner.
- m_Prefix - Variable in class com.github.fracpete.processoutput4j.reader.ConsoleOutputProcessReader
-
the prefix to use.
- m_PrefixStdErr - Variable in class com.github.fracpete.processoutput4j.core.impl.PrefixedStreamingProcessOwner
-
the prefix for stderr.
- m_PrefixStdOut - Variable in class com.github.fracpete.processoutput4j.core.impl.PrefixedStreamingProcessOwner
-
the prefix for stdout.
- m_Process - Variable in class com.github.fracpete.processoutput4j.core.AbstractProcessRunnable
-
the process to read from.
- m_Process - Variable in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
the process.
- m_Queue - Variable in class com.github.fracpete.processoutput4j.core.AbstractProcessRunnable
-
the blocking queue for the process.
- m_Reader - Variable in class com.github.fracpete.processoutput4j.reader.AbstractProcessReader
-
the reader use internally.
- m_ReaderStdErr - Variable in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
for monitoring stderr.
- m_ReaderStdOut - Variable in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
for monitoring stdout.
- m_RunnableTimeout - Variable in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
for monitoring timeouts.
- m_StdErr - Variable in class com.github.fracpete.processoutput4j.output.CollectingProcessOutput
-
the stderr content.
- m_Stdout - Variable in class com.github.fracpete.processoutput4j.reader.AbstractProcessReader
-
whether to use stdout or stderr.
- m_StdOut - Variable in class com.github.fracpete.processoutput4j.output.CollectingProcessOutput
-
the stdout content.
- m_Stopped - Variable in class com.github.fracpete.processoutput4j.core.AbstractProcessRunnable
-
whether the reader got stopped.
- m_TimedOut - Variable in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
whether the process has timed out.
- m_TimeOut - Variable in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
the timeout for the process in seconds (ignored if < 1).
- main(String[]) - Static method in class com.github.fracpete.processoutput4j.output.CollectingProcessOutput
-
Allows the execution of a command through this process output scheme.
- main(String[]) - Static method in class com.github.fracpete.processoutput4j.output.ConsoleOutputProcessOutput
-
Allows the execution of a command through this process output scheme.
- main(String[]) - Static method in class com.github.fracpete.processoutput4j.output.StreamingProcessOutput
-
Allows the execution of a command through this process output scheme.
- monitor(ProcessBuilder) - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Performs the actual process monitoring.
- monitor(String[], String[], String, Process) - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Performs the actual process monitoring.
- monitor(String, ProcessBuilder) - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Performs the actual process monitoring.
- monitor(String, String[], Process) - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Performs the actual process monitoring.
- monitor(String, String[], String, Process) - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Performs the actual process monitoring.
P
- PREFIX_STDERR - Static variable in class com.github.fracpete.processoutput4j.reader.ConsoleOutputProcessReader
-
the default prefix for stderr.
- PREFIX_STDOUT - Static variable in class com.github.fracpete.processoutput4j.reader.ConsoleOutputProcessReader
-
the default prefix for stdout.
- PrefixedStreamingProcessOwner - Class in com.github.fracpete.processoutput4j.core.impl
-
Simple class for streaming a process's stdout/stderr to this stdout, but prefixing each line with the appropriate stdout/stderr prefix.
- PrefixedStreamingProcessOwner() - Constructor for class com.github.fracpete.processoutput4j.core.impl.PrefixedStreamingProcessOwner
-
Initializes the output using the default prefixes.
- PrefixedStreamingProcessOwner(String, String) - Constructor for class com.github.fracpete.processoutput4j.core.impl.PrefixedStreamingProcessOwner
-
Initializes the output using the specified prefixes.
- process(String) - Method in class com.github.fracpete.processoutput4j.reader.AbstractProcessReader
-
For processing the line read from stdout/stderr.
- process(String) - Method in class com.github.fracpete.processoutput4j.reader.CollectingProcessReader
-
For processing the line read from stdout/stderr.
- process(String) - Method in class com.github.fracpete.processoutput4j.reader.ConsoleOutputProcessReader
-
For processing the line read from stdout/stderr.
- process(String) - Method in class com.github.fracpete.processoutput4j.reader.StreamingProcessReader
-
For processing the line read from stdout/stderr.
- processOutput(String, boolean) - Method in class com.github.fracpete.processoutput4j.core.impl.PrefixedStreamingProcessOwner
-
Processes the incoming line.
- processOutput(String, boolean) - Method in class com.github.fracpete.processoutput4j.core.impl.SimpleStreamingProcessOwner
-
Processes the incoming line.
- processOutput(String, boolean) - Method in interface com.github.fracpete.processoutput4j.core.StreamingProcessOwner
-
Processes the incoming line.
R
- run() - Method in class com.github.fracpete.processoutput4j.core.AbstractProcessRunnable
-
Reads the data from the process.
S
- setProcess(Process) - Method in class com.github.fracpete.processoutput4j.core.AbstractProcessRunnable
-
Sets the process to monitor.
- setTimeOut(int) - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Sets the timeout for the process in seconds.
- SimpleStreamingProcessOwner - Class in com.github.fracpete.processoutput4j.core.impl
-
Simple class for streaming a process's stdout/stderr to this stdout/stderr.
- SimpleStreamingProcessOwner() - Constructor for class com.github.fracpete.processoutput4j.core.impl.SimpleStreamingProcessOwner
- STDERR - com.github.fracpete.processoutput4j.core.StreamingProcessOutputType
- STDOUT - com.github.fracpete.processoutput4j.core.StreamingProcessOutputType
- stopExecution() - Method in class com.github.fracpete.processoutput4j.core.AbstractProcessRunnable
-
Stops the execution.
- StreamingProcessOutput - Class in com.github.fracpete.processoutput4j.output
-
Streams the data into the owning
StreamingProcessOwnerobject. - StreamingProcessOutput(StreamingProcessOwner) - Constructor for class com.github.fracpete.processoutput4j.output.StreamingProcessOutput
-
Initializes the process output with the specified owning object.
- StreamingProcessOutputType - Enum in com.github.fracpete.processoutput4j.core
-
What to output.
- StreamingProcessOwner - Interface in com.github.fracpete.processoutput4j.core
-
Interface for classes that make use of
StreamingProcessOutput. - StreamingProcessReader - Class in com.github.fracpete.processoutput4j.reader
-
Forwards the output from the process to the owning
StreamingProcessOwnerobject, if appropriate. - StreamingProcessReader(StreamingProcessOwner, boolean) - Constructor for class com.github.fracpete.processoutput4j.reader.StreamingProcessReader
-
Initializes the reader.
T
- toString() - Method in class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
-
Returns a short description string.
V
- valueOf(String) - Static method in enum com.github.fracpete.processoutput4j.core.StreamingProcessOutputType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.github.fracpete.processoutput4j.core.StreamingProcessOutputType
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes All Packages