|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.command.CommandExecuteStreamHandler
public class CommandExecuteStreamHandler
This class returns the contents of the output stream and error streams that resulted from executing a command line.
| Field Summary | |
|---|---|
protected BuildLogger |
buildLogger
|
protected Thread |
errorThread
|
protected Thread |
outputThread
|
protected String |
planKey
|
| Constructor Summary | |
|---|---|
CommandExecuteStreamHandler(BuildLogger buildLogger,
String planKey)
|
|
| Method Summary | |
|---|---|
void |
setProcessErrorStream(InputStream inputStream)
Process the commands error stream |
void |
setProcessInputStream(OutputStream outputStream)
Handle the command's input stream - currently ignored |
void |
setProcessOutputStream(InputStream inputStream)
Process the command output stream |
void |
start()
Required by the intereface, but not implemented |
void |
stop()
Stop the threads |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Thread outputThread
protected Thread errorThread
protected final BuildLogger buildLogger
protected final String planKey
| Constructor Detail |
|---|
public CommandExecuteStreamHandler(BuildLogger buildLogger,
String planKey)
| Method Detail |
|---|
public void setProcessInputStream(OutputStream outputStream)
throws IOException
setProcessInputStream in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandleroutputStream - The output stream
IOException - Failure
public void setProcessErrorStream(InputStream inputStream)
throws IOException
setProcessErrorStream in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandlerinputStream - The error stream
IOException - Something went wrong
public void setProcessOutputStream(InputStream inputStream)
throws IOException
setProcessOutputStream in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandlerinputStream - The data output from the command
IOException - Something went wrong
public void start()
throws IOException
start in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandlerIOException - Will never happen!public void stop()
stop in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||