|
AdventNet CLI 2.0 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.cli.config.Task
This class represents a command or a script task to be executed. It essentially models the 'CMDTASK' and 'SCRIPTTASK' tags of the xml file.
| Field Summary | |
static int |
COMMAND
A command task. |
static int |
SCRIPT
A script task. |
| Constructor Summary | |
Task()
Creates a new Task instance. |
|
| Method Summary | |
java.lang.String |
getCommand()
Gets the command set in the task. |
boolean |
getDataRequired()
Gets the value of the DataRequired flag. |
java.lang.String |
getDescription()
Gets the description for the task. |
int |
getExecutionCount()
Gets the executionCount of the task. |
java.lang.String |
getLoginLevel()
Gets the login level of the task. |
boolean |
getMandatory()
Gets the mandatory flag. |
java.lang.String |
getScriptName()
Gets the name of the file containing the script. |
java.lang.String |
getScriptType()
Gets the name of the scripting language used in the script (like python, beanshell etc.) |
java.lang.String |
getTaskName()
Gets the name of the task. |
int |
getTaskType()
Gets the type of task. |
void |
setCommand(java.lang.String command)
Sets the command of the task. |
void |
setDataRequired(boolean dataReq)
Sets the dataRequired flag. |
void |
setDescription(java.lang.String describe)
Sets the description for the task. |
void |
setExecutionCount(int count)
Sets the executionCount of the task. |
void |
setLoginLevel(java.lang.String logLevel)
Sets the login level of the task. |
void |
setMandatory(boolean mand)
Sets the mandatory flag. |
void |
setScriptName(java.lang.String scriptName)
Sets the filename containing the script. |
void |
setScriptType(java.lang.String sType)
Sets the scripting language of the script (eg: python, beanshell etc.) |
void |
setTaskName(java.lang.String tName)
Sets the name of the task. |
void |
setTaskType(int taskType)
Sets the type of the task. |
java.lang.String |
toString()
Returns the taskName, which is used as the identifier for the task. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final int SCRIPT
public static final int COMMAND
| Constructor Detail |
public Task()
Task instance. The default
constructor which can be used for creating
a new task and adding it to the configuration, by setting a taskName.| Method Detail |
public int getTaskType()
COMMAND - 1 SCRIPT - 2
int value, representing the code of the type.public void setTaskType(int taskType)
taskType - an int value, representing the type.public java.lang.String getTaskName()
public void setTaskName(java.lang.String tName)
tName - the task name as a String valuepublic java.lang.String getCommand()
public void setCommand(java.lang.String command)
command - the command as a String valuepublic java.lang.String getScriptName()
public void setScriptName(java.lang.String scriptName)
scriptName - the filename containing the script.public java.lang.String getScriptType()
public void setScriptType(java.lang.String sType)
sType - the type or scripting language of the script.public java.lang.String getLoginLevel()
public void setLoginLevel(java.lang.String logLevel)
logLevel - the login level of the task.public boolean getMandatory()
ConfigAPI.runTask(String, String, TaskData)public void setMandatory(boolean mand)
mand - the value of the mandatory flag to be set.public boolean getDataRequired()
public void setDataRequired(boolean dataReq)
dataReq - the dataRequired flag value.public java.lang.String getDescription()
public void setDescription(java.lang.String describe)
describe - the description for the task.public int getExecutionCount()
public void setExecutionCount(int count)
count - the execution count as an int valuepublic java.lang.String toString()
|
AdventNet CLI 2.0 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||