|
|
The file CiscoTaskManagedObjects.idl contains the following interfaces:
CiscoTaskManagedObjects::TaskAction CiscoTaskManagedObjects::TaskPersistentTask CiscoTaskManagedObjects::TaskRuntimeAction CiscoTaskManagedObjects::TaskRuntimeActionGlobalState CiscoTaskManagedObjects::TaskRuntimeTask CiscoTaskManagedObjects::TaskScheduledTask
The CiscoTaskManagedObjects module defines all the managed objects in the Task Server. You can program your client to browse objects in the Task Repository. You can also program your client to execute any of the following:
See Also
CiscoTaskServiceModel, CiscoTaskFactory, CiscoTaskExceptions
Since
Cisco VPN Solutions Center, Release 1.1
Cisco VPN Solutions Center, Release 1.1
Enumerated error codes
Usage
enum ActionErrorCode
{
Success,
Invalid_Object,
String_Too_Long,
Invalid_Index,
Invalid_List
};
See Also
TaskRuntimeAction, TaskRuntimeActionGlobalState Cisco VPN Solutions Center, Release 1.1
A DevTarget represents a network target(router, netflow collector) in directory repository
Usage
struct DevTarget
{
unsigned long targetID;
string name;
string domain;
string network;
string role;
};
Members
targetIDthe ID of the target in directory repository. namethe name of the target. domainthe domain of the target networkthe network of the target rolethe role of the target
Since
Cisco VPN Solutions Center, Release 1.1
Sequence of DevTarget objects
Usage
typedef sequence<DevTarget> DevTargetSeq
See Also
DevTarget, TaskMgr::getAllTargets
Since
Cisco VPN Solutions Center, Release 1.1
An enumeration for RuntimeTask and RuntimeAction run status
Usage
enum RunStatus
{
WaitingToRun,
Running,
Exited,
Aborted,
Unknown
};
See Also
TaskRuntimeTask, TaskRuntimeAction Cisco VPN Solutions Center, Release 1.1
A TaskActionDependency object represents a dependency relationship between actions within a persistent task.
Usage
struct TaskActionDependency
{
short dependedActionIndex;
short minActionStatusCode;
short localGlobalFlag;
string statusDesc;
};
Members
dependedActionIndexshort that represents the index of the action upon which the task depends.
minActionStatusCodeshort that represents the minimum return code needed for that action.
localGlobalFlagshort that indicates whether the the action is centralized or distributed.
statusDescstring that indicates the status of the action dependency.
See Also
TaskAction
Since
Cisco VPN Solutions Center, Release 1.1
Sequence of DevTarget objects
Usage
typedef sequence<TaskActionDependency> TaskActionDependencySeq
See Also
DevTarget, TaskMgr::getAllTargets
Since
Cisco VPN Solutions Center, Release 1.1
A TaskActionOutpur represents a summary of output from a runtime task. To get the content of the output, a client program need to get a FileInputStream reference.
Usage
struct TaskActionOutput
{
short index;
string desc;
};
Members
indexthe index of the object. desca short description about this output.
See Also
TaskRuntimeAction, TaskRuntimeActionGlobalState
Since
Cisco VPN Solutions Center, Release 1.1
Sequence of TaskActionOutput objects
Usage
typedef sequence<TaskActionOutput> TaskActionOutputSeq
See Also
TaskActionOutput, TaskRuntimeAction::getActionOutputList, TaskRuntimeActionGlobalState::getActionOutputList
Since
Cisco VPN Solutions Center, Release 1.1
Sequence of TaskAction objects.
Usage
typedef sequence<TaskAction> TaskActionSeq
See Also
TaskAction, TaskPersistentTask::getActionList
Since
Cisco VPN Solutions Center, Release 1.1
A TaskActionTarget represents a network target(router, netflow collector) on which an action will performs.
Usage
struct TaskActionTarget
{
unsigned long targetID;
short targetType;
};
Members
targetIDthe ID of the target in directory repository. targetTypethe type of the target.
See Also
TaskAction
Since
Cisco VPN Solutions Center, Release 1.1
Sequence of TaskActionTarget objects
Usage
typedef sequence<TaskActionTarget> TaskActionTargetSeq
See Also
TaskActionTarget, TaskAction::getActionTargetList
Since
Cisco VPN Solutions Center, Release 1.1
A TaskArgument represents an argument entry. It is a name value pair which will be used to schedule and run the task.
Usage
struct TaskArgument
{
short index;
string tag;
string value;
};
Members
indexthe ID of an argument. tagthe tag name of the argument. valuethe value of the argument
See Also
TaskAction
Since
Cisco VPN Solutions Center, Release 1.1
Sequence of DevTarget objects
Usage
typedef sequence<TaskArgument> TaskArgumentSeq
See Also
DevTarget, TaskMgr::getAllTargets
Since
Cisco VPN Solutions Center, Release 1.1
Sequence of TaskPersistentTask objects.
Usage
typedef sequence<TaskPersistentTask> TaskPersistentTaskSeq
See Also
TaskPersistentTask, TaskMgr::getAllPersistentTasks
Since
Cisco VPN Solutions Center, Release 1.1
Sequence of TaskRuntimeActionGlobalStateSeq objects
Usage
typedef sequence<TaskRuntimeActionGlobalState> TaskRuntimeActionGlobalStateSeq
See Also
TaskRuntimeActionGlobalStateSeq, TaskRuntimeTask::getRuntimeActionGlobalStateList
Since
Cisco VPN Solutions Center, Release 1.1
Sequence of TaskRuntimeAction objects
Usage
typedef sequence<TaskRuntimeAction> TaskRuntimeActionSeq
See Also
TaskRuntimeAction, TaskRuntimeTask::getRuntimeActionList
Since
Cisco VPN Solutions Center, Release 1.1
Sequence of TaskRuntimeTask objects
Usage
typedef sequence<TaskRuntimeTask> TaskRuntimeTaskSeq
See Also
TaskRuntimeTask, TaskMgr::getAllRuntimeTasks, TaskMgr::getRuntimeTasks, TaskMgr::getAllActiveRuntimeTasks
Since
Cisco VPN Solutions Center, Release 1.1
Sequence of TaskScheduledTask objects
Usage
typedef sequence<TaskScheduledTask> TaskScheduledTaskSeq
See Also
TaskScheduledTask, TaskMgr::getAllScheduledTasks, TaskMgr::getScheduledTasks
Since
Cisco VPN Solutions Center, Release 1.1
Timeeither end time or start timeof a task execution.
Cisco VPN Solutions Center, Release 1.1
Usage
typedef CiscoTime::Time TaskTime
An instance of the TaskAction intrface represents an action within a persistent task object. Some actions may depends on the successful return of some other actions within the task. This dependency relationship is represented by a TaskActionDependency object. To create a correct TaskAction object could become complex. Every attributes needs to be set correctly. Please follow the documentation carefully.
Since
Cisco VPN Solutions Center, Release 1.1
Appends a TaskActionDependency object to the end of a dependency list.
Usage
long addActionDependencyListItem(in TaskActionDependency dependency)
raises(InvalidData);
Parameters
dependencythe TaskActionDependency to be added in.
Returns
a long number which represents the size of the list.
Raises
CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
See Also
TaskActionDependency
Since
Cisco VPN Solutions Center, Release 1.1
Appends a TaskActionTarget object to the end of an action target list.
Usage
long addActionTargetListItem(in TaskActionTarget target)
raises(InvalidData);
Parameters
targetthe TaskActionTarget to be added in.
Returns
a long number which represents the size of the list.
Raises
CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
See Also
TaskActionDependency
Since
Cisco VPN Solutions Center, Release 1.1
Appends a TaskArgument object to the end of an argument list.
Usage
long addArgumentListItem(in TaskArgument argument)
raises(InvalidData);
Parameters
argumentthe TaskArgument to be added in.
Returns
a long number which represents the size of the list.
Raises
CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
See Also
TaskArgument
Since
Cisco VPN Solutions Center, Release 1.1
Gets a TaskActionDependencySeq object which represents the action dependency list contained in this TaskAction object.
Usage
TaskActionDependencySeq getActionDependencyList(); raises(InvalidData);
Returns
TaskActionDependencySeqa list of TaskActionDependency objects.
Raises
CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets a TaskActionTargetSeq object which represents the action target list contained in this TaskAction object.
Usage
TaskActionTargetSeq getActionTargetList(); raises(InvalidData);
Returns
TaskActionTargetSeqa list of TaskActionTarget objects.
Raises
CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets a TaskArgumentSeq object which represents the argument list contained in this TaskAction object.
Usage
TaskArgumentSeq getArgumentList(); raises(InvalidData);
Returns
TaskArgumentSeqa list of TaskArgument objects.
Raises
CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the category of a TaskAction object.
Usage
string getCategory(); raises(RepException, InvalidData);
Returns
a string that represents the category of the action. Please refer to API documentation for all the available action categories.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the central or distribution flag of a TaskAction object.
Usage
short getCentralDistFlag(); raises(RepException, InvalidData);
Returns
a short number that represents the central or distribution flag of the action.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the command string of a TaskAction object.
Usage
string getCmd(); raises(RepException, InvalidData);
Returns
a string that represents the command of the action.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the command type of a TaskAction object.
Usage
short getCmdType(); raises(RepException, InvalidData);
Returns
a short number that represents the command type of the action. Please refer to API documentation for all the pre-defined command types.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the description string of a TaskAction object.
Usage
string getDesc(); raises(RepException, InvalidData);
Returns
a string that represents the description of the action.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the index of a TaskAction object.
Usage
short getIndex(); raises(RepException, InvalidData);
Returns
a short number that represents the index of the action. The index is a unique number among all the actions contained in the same persistent task object.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the name of a TaskAction object.
Usage
string getName(); raises(RepException, InvalidData);
Returns
a string that represents the name of the action.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the target of a TaskAction object.
Usage
string getTargetTag(); raises(RepException, InvalidData);
Returns
a string that represents the target tag of the action.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the category of a TaskAction object.
Usage
void setCategory(in string category)
raises(RepException, InvalidData);
Parameters
categorya string that represents the category to be set.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the central to distribute flag of a TaskAction object.
Usage
void setCentralDistFlag(in short flag)
raises(RepException, InvalidData);
Parameters
flaga short number that represents the central or distribution flag.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the command of a TaskAction object.
Usage
void setCmd(in string cmd)
raises(RepException, InvalidData);
Parameters
cmda string that represents the command to be set.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the command type of a TaskAction object.
Usage
void setCmdType(in short cmdType)
raises(RepException, InvalidData);
Parameters
cmdTypea short number that represents the command type to be set.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the description of a TaskAction object.
Usage
void setDesc(in string desc)
raises(RepException, InvalidData);
Parameters
desca string that represents the description to be set.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the name of a TaskAction object.
Usage
void setName(in string name)
raises(RepException, InvalidData);
Parameters
namea string that represents the name to be set.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the target tag of a TaskAction object.
Usage
void setTargetTag(in string tag)
raises(RepException, InvalidData);
Parameters
taga string that represents the target tag to be set.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
An instance of the TaskPersistentTask interface represents a persistent task in the Task Repository. You can program your client to set and get information for a persistent task. You can also add persistent tasks to and remove them from from the Task Repository.
Since
Cisco VPN Solutions Center, Release 1.1
Adds this persistent task object into repository.
Usage
void addToRep(in TaskActionSeq actions)
raises(RepException, InvalidData);
Parameters
actionsTaskActionSeq object represents a list of actions which are contained in this persistent task
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the input parameter isinvalid or if the persistent task is invalid.
Description
This operation copies all actions and arguments, link the copy with a task object, and adds all of them to the Task Repository
See Also
TaskAction, TaskArgument
Since
Cisco VPN Solutions Center, Release 1.1
Gets the TaskAction objects which are contained in this persistent task.
Usage
TaskActionSeq getActionList(); raises(RepException, InvalidData);
Returns
TaskActionSeqList of TaskAction objects
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the input parameter isinvalid or if the persistent task is invalid.
See Also
TaskAction
Since
Cisco VPN Solutions Center, Release 1.1
Gets the class name of this task
Usage
string getClassName(); raises(RepException, InvalidData);
Returns
a string that represents the class name of this persistent task
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the creation time of this task
Usage
TaskTime getCreationTime(); raises(RepException, InvalidData);
Returns
a TaskTime that represents the creation time of this persistent task
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
See Also
CiscoTime::Time
Since
Cisco VPN Solutions Center, Release 1.1
Gets the last update time of this task
Usage
TaskTime getLastUpdateTime(); raises(RepException, InvalidData);
Returns
a TaskTime that represents the last update time of this persistent task
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
See Also
CiscoTime::Time
Since
Cisco VPN Solutions Center, Release 1.1
Gets the description of the task
Usage
string getTaskDesc(); raises(RepException, InvalidData);
Returns
a string that represents the description of the task
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the name of the task
Usage
string getTaskName(); raises(RepException, InvalidData);
Returns
a string that represents the name of the task
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Remove this persistent task object from repository. This operation will delete all the contained actions and arguments.
Usage
void removeFromRep(); raises(RepException, InvalidData);
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the input parameter isinvalid or if the persistent task is invalid.
Since
Cisco VPN Solutions Center, Release 1.1
Set the class name of this task
Usage
void setClassName(in string aClassName)
raises(RepException, InvalidData);
Parameters
aClassNamea string represents the class name we want's to set.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the input parameter isinvalid or if the persistent task is invalid.
Since
Cisco VPN Solutions Center, Release 1.1
Set the description of this task
Usage
void setTaskDesc(in string desc)
raises(RepException, InvalidData);
Parameters
descin string that describes the task.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the input parameter isinvalid or if the persistent task is invalid.
Since
Cisco VPN Solutions Center, Release 1.1
An instance of the TaskRuntimeAction interface represents a runtime action that is contained by a TaskPersistentTask object. Each runtime action tracks the status of the corresponding action.
Gets a CiscoFileInputStream refernce for one of the log files generated by this TaskRuntimeAction. Through this interface, user can get detail message about how the action performs.
Usage
CiscoStream::CiscoFileInputStream getActionOutputFileContent(in short index);
Parameters
indexin short that represents the index of the file to be retrieved.
Returns
CiscoStream::CiscoFileInputStream object.
See Also
CiscoStream::CiscoFileInputStream
Since
Cisco VPN Solutions Center, Release 1.1
Gets the action output list of a TaskRuntimeAction object.
Usage
TaskActionOutputSeq getActionOutputList(); raises(RepException, InvalidData);
Returns
a TaskActionOutputSeq value that represents the action output list of the runtime action.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
See Also
TaskActionOutput
Since
Cisco VPN Solutions Center, Release 1.1
Gets the end time of a TaskRuntimeAction object.
Usage
TaskTime getEndTime(); raises(RepException, InvalidData);
Returns
a TaskTime value that represents the end time of the runtime action.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the index of a TaskRuntimeAction object.
Usage
short getIndex(); raises(RepException, InvalidData);
Returns
a short value that represents the index of the runtime action.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the name of a TaskRuntimeAction object.
Usage
string getName(); raises(RepException, InvalidData);
Returns
a string value that represents the name of the runtime action.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the return code of the TaskRuntimeAction object.
Usage
short getRc(); raises(RepException, InvalidData);
Returns
shortValue that represents result status of the runtime task. Here are the possible return-code values:
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the return code description of a TaskRuntimeAction object.
Usage
string getRcDesc(); raises(RepException, InvalidData);
Returns
stringDescription string that corresponds with the return code supplied by the Rc() operation. Here are the descriptions for each Rc() return code:
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the description of a TaskRuntimeAction object.
Usage
string getRuntimeActionDesc(); raises(RepException, InvalidData);
Returns
a string value that represents the description of the runtime action.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the start time of a TaskRuntimeAction object.
Usage
TaskTime getStartTime(); raises(RepException, InvalidData);
Returns
a TaskTime value that represents the start time of the runtime action.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the run status of a TaskRuntimeAction object.
Usage
RunStatus getStatus(); raises(RepException, InvalidData);
Returns
a RunStatus value that represents the run status of the runtime action.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
A TaskRuntimeActionGlobalState instance represents the global state for a TaskRuntimeAction object, which may be executing on a central host (NSM) or on many distributed hosts (mediator).
Description
For future use.
Since
Cisco VPN Solutions Center, Release 1.1,
Gets a CiscoFileInputStream reference for one of the log files generated by this TaskRuntimeAction.
Usage
CiscoStream::CiscoFileInputStream getActionOutputFileContent(in short index)
raises(RepException, InvalidData);
Parameters
indexthe index of the file which the user want to retrieve.
Returns
CiscoStream::CiscoFileInputStreamText that gives a detailed description of the performance of this action.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Description
Through this interface, you can get detailed messages describing the performance of this action.
See Also
CiscoStream::CiscoFileInputStream
Since
Cisco VPN Solutions Center, Release 1.1
Gets the action output list of a TaskRuntimeActionGlobalState object.
Usage
TaskActionOutputSeq getActionOutputList(); raises(RepException, InvalidData);
Returns
a TaskActionOutputSeq value that represents the action output list of the runtime action global state.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
See Also
TaskActionOutput
Since
Cisco VPN Solutions Center, Release 1.1
Gets the index of a TaskRuntimeActionGlobalState object.
Usage
short getIndex(); raises(RepException, InvalidData);
Returns
a short value that represents the index of the runtime action global state.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the return code of a TaskRuntimeActionGlobalState object.
Usage
short getRc(); raises(RepException, InvalidData);
Returns
a short value that represents the return code of the runtime action global state.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
See Also
RcDesc
Since
Cisco VPN Solutions Center, Release 1.1
Gets the return code description of a TaskRuntimeActionGlobalState object.
Usage
string getRcDesc(); raises(RepException, InvalidData);
Returns
a short value that represents the return code description of the runtime action global state.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
See Also
Rc
Since
Cisco VPN Solutions Center, Release 1.1
An instance of the TaskRuntimeTask interface represents the runtime object that corresponds with each execution of a TaskScheduledTask object. The scheduler creates a TaskRuntimeTask object each time it executes the tasks that correspond with a TaskScheduledTask object. Each TaskRuntimeTask object monitors all the runtime-action status and return codes for the scheduled tasks. You can program your clients to check the status of each action.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the class name of the TaskRuntimeTask object.
Usage
string getClassName(); raises(RepException, InvalidData);
Returns
a string that represents the class name of the runtime task.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the end time of the TaskRuntimeTask object.
Usage
TaskTime getEndTime(); raises(RepException, InvalidData);
Returns
a TaskTime that represents the end time of the runtime task.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the ID of a TaskRuntimeTask object.
Usage
string getID(); raises(RepException, InvalidData);
Returns
a string that represents the ID of the scheduled task.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the name of a TaskRuntimeTask object.
Usage
string getName(); raises(RepException, InvalidData);
Returns
a string that represents the name of the runtime task.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the return code of the TaskRuntimeTask object.
Usage
short getRc(); raises(RepException, InvalidData);
Returns
shortValue that represents result status of the runtime task. Here are the possible return-code values:
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the return code description of the TaskRuntimeTask object.
Usage
string getRcDesc(); raises(RepException, InvalidData);
Returns
stringDescription string that corresponds with the return code supplied by the Rc() operation. Here are the descriptions for each Rc() return code:
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the list of TaskRuntimeActionGlobalState objects that are contained by this TaskRuntimeTask object.
Usage
TaskRuntimeActionGlobalStateSeq getRuntimeActionGlobalStateList(); raises(RepException, InvalidData);
Returns
TaskRuntimeActionGlobalStateSeqList of TaskRuntimeActionGlobalState objects that is contained by this TaskRuntimeTask object.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
See Also
TaskRuntimeActionGlobalState
Since
Cisco VPN Solutions Center, Release 1.1
Gets the runtime action list which contains in this runtime task.
Usage
TaskRuntimeActionSeq getRuntimeActionList(); raises(RepException, InvalidData);
Returns
a TaskRuntimeActionSeq that represent a list of TaskRuntimeAction objects which is contained in this runtime task.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
See Also
TaskRuntimeAction
Since
Cisco VPN Solutions Center, Release 1.1
Gets the return code description of the TaskRuntimeTask object.
Usage
string getRuntimeTaskDesc(); raises(RepException, InvalidData);
Returns
a string that represents the return code description of the runtime task.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the TaskScheduledTask object that this TaskRuntimeTask object is executing.
Usage
TaskScheduledTask getScheduledTask(); raises(RepException, InvalidData);
Returns
a TaskScheduledTask that represents the scheduled task the runtime task runs.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the schedule time of the TaskRuntimeTask object.
Usage
TaskTime getScheduledTime(); raises(RepException, InvalidData);
Returns
a TaskTime that represents the schedule time of the runtime task.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the start time of the TaskRuntimeTask object.
Usage
TaskTime getStartTime(); raises(RepException, InvalidData);
Returns
a TaskTime that represents the start time of the runtime task.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the run status of the TaskRuntimeTask object.
Usage
RunStatus getStatus(); raises(RepException, InvalidData);
Returns
a RunStatus that represents the run status of the runtime task.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Remove the runtime task from repository.
Usage
void removeFromRep(); raises(RepException, InvalidData);
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
An instance of the TaskScheduledTask interface represents a scheduled task. A scheduled task is defines how and when a scheduler is to execute a given task. A TaskPersistentTask object may have multiple TaskScheduledTask objects, which means the persistent task may have multiple schedules.
See Also
TaskPersistentTask
Since
Cisco VPN Solutions Center, Release 1.1
Add the TaskScheduledTask object into repository.
Usage
void addToRep(in TaskPersistentTask persistentTask)
raises(RepException, InvalidData);
Parameters
persistentTaskin TaskPersistentTask that represents the persistent task to be scheduled.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs.
Since
Cisco VPN Solutions Center, Release 1.1
get the assertion list for the TaskScheduledTask object.
Usage
TaskArgumentSeq getAssertionList(); raises(RepException, InvalidData);
Returns
TaskArgumentSeqrepresents the assertion list for the scheduled task.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the cron spec of a TaskScheduledTask object. It is a Unix-like cron string which specifies when and how often the task will run.
Usage
string getCronSpec(); raises(RepException, InvalidData);
Returns
a string that represents the cron spec of the scheduled task.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the description of the TaskScheduledTask object.
Usage
string getDesc(); raises(RepException, InvalidData);
Returns
a string that represents the description of the scheduled task.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the name of a TaskScheduledTask object.
Usage
string getName(); raises(RepException, InvalidData);
Returns
a string that represents the name of the scheduled task.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the TaskPersistentTask object that is scheduled by this TaskScheduledTask object.
Usage
TaskPersistentTask getPersistentTask(); raises(RepException, InvalidData);
Returns
TaskPersistentTaskRepresents the persistent task that this task is scheduling.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the creation time of the TaskScheduledTask object.
Usage
TaskTime getTimeScheduled(); raises(RepException, InvalidData);
Returns
a TaskTime that represents the creation time of the scheduled task.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
See Also
CiscoTime::Time
Since
Cisco VPN Solutions Center, Release 1.1
Gets the type of a TaskScheduledTask object.
Usage
string getType(); raises(RepException, InvalidData);
Returns
a string that represents the type of the scheduled task.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Gets the user of a TaskScheduledTask object. Usually, it is the id of the user who creates the scheduled task.
Usage
string getUser(); raises(RepException, InvalidData);
Returns
a string that represents the user of the scheduled task.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Remove the TaskScheduledTask object from repository.
Usage
void removeFromRep(); raises(RepException, InvalidData);
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the schedule task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the active Assertion for the TaskScheduledTask object.
Usage
void setActive(in boolean active)
raises(InvalidData);
Parameters
activea boolean that represents the active asserion of the task
Raises
CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the cron spec of the TaskScheduledTask object.
Usage
void setCronSpec(in string scheduleCronSpec)
raises(RepException, InvalidData);
Parameters
scheduleCronSpeca string that represents the cron spec to be set. The format of the string is defined as: (minutes hours dayOfMonth monthOfYear dayOfWeek) - each is a string
string: num | comma-list | STAR_VAL comma-list: term | term COMMA comma-list term: num | range range: num DASH num | num DASH num SLASH num num: (0-9)+
NOTES 1. the second num of range must be greater than or equal to first num 2. the third num of range must be greater than or equal to 1 and indicates an interval 3. all nums must be less than the size of the given vector 4. If there are any errors, nothing is set 5. this uses the funny thing with cron for specifying day. In parentheses is how cron treats the two specifications
day of month day of week interpretation * * every day 1,15 (AND) * only the first and fifteenth (AND) 0 only on sundays 1,15 (OR) 0 on first and fifteenth and sundays
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the description of the TaskScheduledTask object.
Usage
void setDesc(in string desc)
raises(RepException, InvalidData);
Parameters
desca string that represents the description of the task
Raises
CiscoTaskExceptions::RepException if repository error happens CiscoTaskExceptions::InvalidData if the persistent task objectis not valid.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the earliest start time of the TaskScheduledTask object.
Usage
void setEarliestStart(in TaskTime time)
raises(InvalidData);
Parameters
timea TaskTime that represents the earliest start time of the scheduled task
Raises
CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the expired Assertion for the TaskScheduledTask object.
Usage
void setExpired(in boolean expired)
raises(InvalidData);
Parameters
expireda boolean that represents the expired asserion of the task
Raises
CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the internal Assertion for the TaskScheduledTask object.
Usage
void setInternal(in boolean internal)
raises(InvalidData);
Parameters
internala boolean that represents the internal asserion of the task
Raises
CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the latest start time of the TaskScheduledTask object.
Usage
void setLatestStart(in TaskTime time)
raises(InvalidData);
Parameters
timea TaskTime that represents the latest start time of the task
Raises
CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the NumberOfTimes Assertion for the TaskScheduledTask object.
Usage
void setNumberOfTimes(in long n)
raises(InvalidData);
Parameters
na long that represents the NumberOfTimes asserion of the task
Raises
CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the start_now Assertion for the TaskScheduledTask object.
Usage
void setStartNow(in boolean now)
raises(InvalidData);
Parameters
nowa boolean that represents the start_now asserion of the task
Raises
CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the type of the TaskScheduledTask object.
Usage
void setType(in string scheduleType)
raises(RepException, InvalidData);
Parameters
scheduleTypea string that represents the schedule type to be set.
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
Sets the user of the TaskScheduledTask object.
Usage
void setUser(in string scheduleUser)
raises(RepException, InvalidData);
Parameters
scheduleUsera string that represents the user of the task
Raises
CiscoTaskExceptions::RepException if a Task Repository error occurs. CiscoTaskExceptions::InvalidData if the persistent task is invalid or contains invalid data.
Since
Cisco VPN Solutions Center, Release 1.1
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Tue Sep 26 16:50:30 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.