|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScriptResults
Interface to the "future" object returned from submiting an execute request to A ScriptExecution implementing object. The result contains three attributes as follows: "code" the int result code of the final command - 0 if not supported in shell, "stdOut" a list of lines on stdout - empty if not supported in shell, "stdErr" a list of lines on stderr - empty if not supported in shell. These result attributes may be accessed directly using the getter methods once the results are ready, or may be accessed via a ComponentDescription object returned by the waitForResults() method.
| Method Summary | |
|---|---|
java.lang.reflect.InvocationTargetException |
getException()
|
java.lang.Integer |
getExitCode()
|
java.util.List |
getStderr()
|
java.util.List |
getStdout()
|
boolean |
resultsReady()
check to see if the results have now been collated |
java.lang.String |
tailStderr(int num)
Gets the tail end of the stderr output |
java.lang.String |
tailStdout(int num)
Gets the tail end of the stdout output |
void |
verbose()
Script result will be verbose using system.out and system.err streams |
void |
waitFor(long timeout)
wait for the results to be ready for the timeout |
ComponentDescription |
waitForResults(long timeout)
Deprecated. |
| Method Detail |
|---|
boolean resultsReady()
ComponentDescription waitForResults(long timeout)
throws SmartFrogException
timeout - the maximum time to wait for the results: 0 don't wait, -1 wait forever
SmartFrogException - if the results are not ready in time
void waitFor(long timeout)
throws SmartFrogException
timeout - the maximum time to wait in milliseconds for the results: 0 don't wait, -1 wait forever
SmartFrogException - if the results are not ready in timevoid verbose()
java.util.List getStderr()
throws SmartFrogException
SmartFrogException - if called before results are ready
java.util.List getStdout()
throws SmartFrogException
SmartFrogException - if called before results are ready
java.lang.Integer getExitCode()
throws SmartFrogException
SmartFrogException - if called before results are ready
java.lang.reflect.InvocationTargetException getException()
throws SmartFrogException
SmartFrogException
java.lang.String tailStderr(int num)
throws SmartFrogException
num - int number of lines to include up to end of stderr stream
SmartFrogException - if called before results are ready
java.lang.String tailStdout(int num)
throws SmartFrogException
num - int number of lines to include up to end of stdout stream
SmartFrogException - if called before results are ready
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||