|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.fisheye.plugins.scm.utils.process.BaseProcessHandler com.atlassian.fisheye.plugins.scm.utils.process.PluggableProcessHandler
public class PluggableProcessHandler
An implementation of a ProcessHandler where the processors for the process' IO streams can be plugged in.
Constructor Summary | |
---|---|
PluggableProcessHandler()
|
Method Summary | |
---|---|
void |
complete(int exitCode,
ProcessException exception)
Called when the external process has completed |
java.lang.String |
getError()
|
OutputHandler |
getErrorHandler()
|
ProcessException |
getException()
Get any processing exception associated with this handler |
int |
getExitCode()
Get the process exit code |
InputHandler |
getInputHandler()
|
OutputHandler |
getOutputHandler()
|
boolean |
hasInput()
Indicate if this handler has input to provide to the process |
boolean |
isComplete()
Indicate if the process has completed |
void |
processError(java.io.InputStream processError)
Process the process stderr stream |
void |
processOutput(java.io.InputStream processOutput)
Process the process stdout stream |
void |
provideInput(java.io.OutputStream processInput)
Provide input to the external process. |
void |
reset()
Called if the process is to be re-executed. |
void |
setErrorHandler(OutputHandler errorHandler)
|
void |
setInputHandler(InputHandler inputHandler)
|
void |
setOutputHandler(OutputHandler outputHandler)
|
boolean |
succeeded()
Indicate if the process execution has been considered successful. |
Methods inherited from class com.atlassian.fisheye.plugins.scm.utils.process.BaseProcessHandler |
---|
getWatchdog, setWatchdog |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluggableProcessHandler()
Method Detail |
---|
public void processOutput(java.io.InputStream processOutput) throws ProcessException
ProcessHandler
processOutput
- the external process' output stream (available as an input to this class)
ProcessException
- if there is a problem processing the outputpublic void processError(java.io.InputStream processError) throws ProcessException
ProcessHandler
processError
- the external process' standard error stream (available as an input to this class)
ProcessException
- if there is a problem processing the outputpublic boolean hasInput()
ProcessHandler
public void provideInput(java.io.OutputStream processInput)
ProcessHandler
processInput
- the output stream representing standard input to the external processpublic void complete(int exitCode, ProcessException exception)
ProcessHandler
exitCode
- the exit code of the external processexception
- any process exceptions that were thrown within the VM when handling the
external processpublic int getExitCode()
ProcessHandler
public ProcessException getException()
ProcessHandler
public java.lang.String getError()
public void setOutputHandler(OutputHandler outputHandler)
public void setErrorHandler(OutputHandler errorHandler)
public void setInputHandler(InputHandler inputHandler)
public OutputHandler getOutputHandler()
public OutputHandler getErrorHandler()
public InputHandler getInputHandler()
public boolean succeeded()
ProcessHandler
public void reset()
ProcessHandler
public boolean isComplete()
ProcessHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |