public class NetloggerExitcode extends Executable
| Modifier and Type | Field and Description |
|---|---|
private String |
mFilename
The kickstart file being parsed.
|
private String |
mJobID
The id of the job.
|
private int |
mLoggingLevel
The logging level to be used.
|
private String |
mWorkflowID
The workflow id.
|
mLogger, mLogMsg, mProps, mVersion| Constructor and Description |
|---|
NetloggerExitcode()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
executeCommand()
Executes the command on the basis of the options specified.
|
gnu.getopt.LongOpt[] |
generateValidOptions()
Tt generates the LongOpt which contain the valid options that the command
will accept.
|
void |
initialize(String[] opts)
Initialize the NetloggerExitCode object
|
void |
loadProperties()
Loads all the properties that would be needed by the Toolkit classes.
|
void |
log(String msg,
int level)
Logs messages to the logger.
|
static void |
main(String[] args)
The main program.
|
void |
parseCommandLineArguments(String[] args)
Parses the command line arguments using GetOpt and returns a
PlannerOptions contains all the options passed by the
user at the command line. |
void |
printLongVersion()
Prints the long description, displaying in detail what the various options
to the command stand for.
|
void |
printShortVersion()
Prints out a short description of what the command does.
|
protected void |
setupLogging()
Sets up the logging options for this class.
|
convertException, convertException, getCommandLineOptions, getEnvValue, getGVDSVersion, initialize, lookupConfProperty, sanityCheckOnProperties, setupLoggingprivate int mLoggingLevel
private String mFilename
private String mJobID
private String mWorkflowID
public void initialize(String[] opts)
initialize in class Executableopts - the command line argument passed to the NetloggerExitCodepublic static void main(String[] args)
args - the main arguments passed to the plotter.protected void setupLogging()
public int executeCommand()
args - the command line options.public void parseCommandLineArguments(String[] args)
PlannerOptions contains all the options passed by the
user at the command line.args - the arguments passed by the user at command line.public void log(String msg, int level)
log in class Executablemsg - is the message itself.level - is the level to generate the log message for.public gnu.getopt.LongOpt[] generateValidOptions()
generateValidOptions in class ExecutableLongOpt objects , corresponding to the valid
optionspublic void printShortVersion()
printShortVersion in class Executablepublic void printLongVersion()
printLongVersion in class Executablepublic void loadProperties()
loadProperties in class ExecutableCopyright © 2011 The University of Southern California. All Rights Reserved.