|
||||||||||
| 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 java.lang.Thread |
errorThread
|
protected java.lang.Thread |
outputThread
|
protected java.lang.String |
planKey
|
| Constructor Summary | |
|---|---|
CommandExecuteStreamHandler(BuildLogger buildLogger,
java.lang.String planKey)
|
|
| Method Summary | |
|---|---|
void |
setProcessErrorStream(java.io.InputStream inputStream)
Process the commands error stream |
void |
setProcessInputStream(java.io.OutputStream outputStream)
Handle the command's input stream - currently ignored |
void |
setProcessOutputStream(java.io.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 java.lang.Thread outputThread
protected java.lang.Thread errorThread
protected final BuildLogger buildLogger
protected final java.lang.String planKey
| Constructor Detail |
|---|
public CommandExecuteStreamHandler(BuildLogger buildLogger,
java.lang.String planKey)
| Method Detail |
|---|
public void setProcessInputStream(java.io.OutputStream outputStream)
throws java.io.IOException
setProcessInputStream in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandleroutputStream - The output stream
java.io.IOException - Failure
public void setProcessErrorStream(java.io.InputStream inputStream)
throws java.io.IOException
setProcessErrorStream in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandlerinputStream - The error stream
java.io.IOException - Something went wrong
public void setProcessOutputStream(java.io.InputStream inputStream)
throws java.io.IOException
setProcessOutputStream in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandlerinputStream - The data output from the command
java.io.IOException - Something went wrong
public void start()
throws java.io.IOException
start in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandlerjava.io.IOException - 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 | |||||||||