|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.sensor.xmldata.XmlDataController
public class XmlDataController
The class which parses the command-line arguments specified by the user, validates the created options and their parameters, and executes the options.
Constructor Summary | |
---|---|
XmlDataController()
Constructs this controller with the classes that help manage the command-line arguments and message capabilities. |
Method Summary | |
---|---|
void |
addOptionObject(Options option,
java.lang.Object object)
Adds a mapping of the specified option to the specified object. |
void |
execute()
Executes all of the options specified by the user. |
void |
fireMessage(java.lang.String message)
Displays the specified message. |
void |
fireMessage(java.lang.String message,
java.lang.String verboseMessage)
Displays the specified message is verbose mode is disabled or the verbose message if verbose mode is enabled. |
void |
fireVerboseMessage(java.lang.String message)
Displays the specified message if verbose mode is enabled. |
java.lang.String |
getHost()
Returns the SensorBase host stored in the sensor properties file. |
java.lang.Object |
getOptionObject(Options option)
Returns the object mapped to the specified option. |
void |
processArguments(java.util.List<java.lang.String> arguments)
Processes the command-line arguments and creates the objects that can be executed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlDataController()
Method Detail |
---|
public void addOptionObject(Options option, java.lang.Object object)
option
- the option that is associated with an object.object
- the object mapped to an option.public java.lang.Object getOptionObject(Options option)
option
- the option that is the key of the requested object.
public void processArguments(java.util.List<java.lang.String> arguments)
arguments
- the specified list of command-line arguments.public void execute()
public void fireMessage(java.lang.String message)
message
- the specified message to display.public void fireVerboseMessage(java.lang.String message)
message
- the specified message to display.public void fireMessage(java.lang.String message, java.lang.String verboseMessage)
message
- the specified message.verboseMessage
- the specified verbose message.public java.lang.String getHost()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |