|
GemFire 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Result
Represents result of processing GemFire Command Line Interface (CLI) command
strings. Result encapsulate the output from a Command execution.
This result can be iterated through as Strings using methods
hasNextLine(), nextLine(), resetToFirstLine().
A Result might have a file as part of the command output & can be saved using
saveIncomingFiles(String). To check whether the result has a file in
it, use hasIncomingFiles()
| Nested Class Summary | |
|---|---|
static class |
Result.Status
Indicates Result status. |
| Method Summary | |
|---|---|
Result.Status |
getStatus()
Returns Result status of a processed command. |
boolean |
hasIncomingFiles()
Returns whether this result has a file as a part of command output. |
boolean |
hasNextLine()
Returns whether the result has more information in line(s). |
String |
nextLine()
Returns the next line from the String representation of the Result. |
void |
resetToFirstLine()
Resets the pointer to the first line in the Result |
void |
saveIncomingFiles(String directory)
Save the file from this result. |
| Method Detail |
|---|
Result.Status getStatus()
void resetToFirstLine()
boolean hasNextLine()
String nextLine()
IndexOutOfBoundsException - if this method is called more number of times than the data items
it containsboolean hasIncomingFiles()
void saveIncomingFiles(String directory)
throws IOException
hasIncomingFiles() should be used
before calling this method to know whether the result contains file. If
there is no file in the result, call to this method will result in a
RuntimeException to be thrown.
directory - directory to which this file should be saved
IOException - if an error occurs while saving the file
RuntimeException - if there is no file in the Result to save
|
GemFire 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||