|
SunSPOT host API V5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.spot.client.ui.SpotClientCommandLineUI
public class SpotClientCommandLineUI
SpotClientCommandLineUI. Main entry point for SpotClient as used by the ant scripts.
| Constructor Summary | |
|---|---|
SpotClientCommandLineUI()
|
|
| Method Summary | |
|---|---|
void |
diagnostic(String msg)
Callback the SpotClient uses to provide diagnostic messages relating to the operation it's executing. |
void |
echoFromTarget(String msg)
Callback the SpotClient uses to echo the output of the target SPOT. |
void |
info(String msg)
Callback the SpotClient uses to provide information messages relating to the operation it's executing. |
static void |
main(String[] args)
Run SpotClient with command line user interface. |
void |
newProgress(int initialSteps,
int totalSteps,
String title)
Callback the SpotClient uses to announce a new operation for which it will provide progress information. |
protected static String[] |
parseArgs(String commandArg)
|
void |
progressEnd(String msg)
Callback the SpotClient uses to announce the end of the current operation for which it is providing progress information. |
void |
progressUpdate(int stepsComplete,
String msg)
Callback the SpotClient uses to update progress for lengthy operations. |
void |
quit()
Callback the SpotClient uses when it wants to exit. |
static void |
usage()
Describe command line options to System.out |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpotClientCommandLineUI()
| Method Detail |
|---|
public static void main(String[] args)
args - - see usage()public static void usage()
public void info(String msg)
IUI
info in interface IUIIUI.info(java.lang.String)public void echoFromTarget(String msg)
IUI
echoFromTarget in interface IUIIUI.echoFromTarget(java.lang.String)
public void newProgress(int initialSteps,
int totalSteps,
String title)
IUI
newProgress in interface IUIinitialSteps - The number of steps already completed (typically 0)totalSteps - The total number of steps in the operationtitle - Short description of the operationIUI.newProgress(int, int, java.lang.String)
public void progressUpdate(int stepsComplete,
String msg)
IUIIUI.newProgress(int, int, String) and before
IUI.progressEnd(String) then it should be ignored.
progressUpdate in interface IUIstepsComplete - Progress completed so farmsg - Optional description of the current subtaskIUI.progressUpdate(int, java.lang.String)public void progressEnd(String msg)
IUI
progressEnd in interface IUImsg - Optional msg describing final completionIUI.progressEnd(java.lang.String)public void diagnostic(String msg)
IUI
diagnostic in interface IUIIUI.diagnostic(java.lang.String)public void quit()
IUI
quit in interface IUIIUI.quit()protected static String[] parseArgs(String commandArg)
|
SunSPOT host API V5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||