|
SunSPOT host API V3.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.
Nested Class Summary | |
---|---|
class |
SpotClientCommandLineUI.BadArgException
|
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. |
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 IUI
IUI.info(java.lang.String)
public void echoFromTarget(String msg)
IUI
echoFromTarget
in interface IUI
IUI.echoFromTarget(java.lang.String)
public void newProgress(int initialSteps, int totalSteps, String title)
IUI
newProgress
in interface IUI
initialSteps
- 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)
IUI
IUI.newProgress(int, int, String)
and before
IUI.progressEnd(String)
then it should be ignored.
progressUpdate
in interface IUI
stepsComplete
- Progress completed so farmsg
- Optional description of the current subtaskIUI.progressUpdate(int, java.lang.String)
public void progressEnd(String msg)
IUI
progressEnd
in interface IUI
msg
- Optional msg describing final completionIUI.progressEnd(java.lang.String)
public void diagnostic(String msg)
IUI
diagnostic
in interface IUI
IUI.diagnostic(java.lang.String)
public void quit()
IUI
quit
in interface IUI
IUI.quit()
|
SunSPOT host API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |