|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A wrapper over DeviceConfigAPI which has no dependencies over other classes. The methods in this API is used for DeviceConfigAPI method call fom ConfigSessionBean
| Method Summary | |
void |
createTask(java.lang.String userName,
java.lang.String taskXML)
Method to create a new task. |
void |
executeTask(java.lang.String userName,
java.lang.String taskXML)
Method to start Configuration for the given Task. XMLGenerator class can be used to
generate xml file.This task file contains the device information. |
java.lang.String |
getDeviceConfiguration(java.lang.String userName,
java.lang.String taskXML)
To get the current configuration of a device. |
java.util.Vector |
getDevices(java.lang.String userName,
java.lang.String taskName)
Returns all the devices that are in the given task. |
java.util.Vector |
getPendingDevices(java.lang.String userName,
java.lang.String taskName)
Returns Vector of pendingdevices associated to that task. |
java.util.Vector |
getPendingTasks(java.lang.String userName)
Returns a Vector of pending task names that needs to be executed over pending devices. |
java.lang.String |
getStatus(java.lang.String userName,
java.lang.String taskName)
This method returns status of the task. |
java.lang.String |
getStatus(java.lang.String userName,
java.lang.String taskName,
java.lang.String device)
This method returns the status of a specific device. |
java.lang.String |
getTask(java.lang.String userName,
java.lang.String taskName)
Returns the task if the given task exists. |
void |
removeTask(java.lang.String userName,
java.lang.String taskName)
Removes the existing task and its associated device entries from the pending list and deletes the xml for that task. |
void |
retainSession(java.lang.String userName)
To retain the Session established between ConfigServer and the devices . |
void |
terminateSession(java.lang.String userName)
To terminate the Session established between ConfigServer and the set of devices for a particular user. |
| Method Detail |
public void createTask(java.lang.String userName,
java.lang.String taskXML)
throws ConfigException,
TaskExistsException,
java.rmi.RemoteException
XMLGenerator class can be used to
generate xml file.This task file contains the attributes information.taskXML - task in XML.ConfigException - if task is not successfully created.TaskExistsException - if task already exists.java.rmi.RemoteException - :Exception during the execution of a remote method call
public void executeTask(java.lang.String userName,
java.lang.String taskXML)
throws TaskExistsException,
TaskNotFoundException,
ConfigException,
InvalidTaskException,
java.rmi.RemoteException
XMLGenerator class can be used to
generate xml file.This task file contains the device information.
taskXML - task in XML.TaskNotFoundException - if task does not exist.ConfigException - if it fails to retrieve the task.InvalidTaskException - if the task is a CombinedConfigTask.java.rmi.RemoteException - :Exception during the execution of a remote method call
public java.lang.String getTask(java.lang.String userName,
java.lang.String taskName)
throws TaskNotFoundException,
java.rmi.RemoteException,
ConfigException
TaskNotFoundException - if task does not exist.ConfigException - if it fails to retrieve the task.java.rmi.RemoteException - :Exception during the execution of a remote method call
public java.lang.String getStatus(java.lang.String userName,
java.lang.String taskName)
throws java.rmi.RemoteException
OVER
when all the devices of the specified task has the status either Finished or Failed
INPROGRESS
If the Status is InProgress for atleast a device
NOTSTARTED If the status is NotStarted for all the devices.
taskName - String name of the Task.java.rmi.RemoteException - :Exception during the execution of a remote method callConfigConstants.OVER,
ConfigConstants.INPROGRESS,
ConfigConstants.NOTSTARTED
public java.lang.String getStatus(java.lang.String userName,
java.lang.String taskName,
java.lang.String device)
throws java.rmi.RemoteException
taskName - String name of the Task.device - String name of the Device.
The status can be one of the status constants in ConfigConstants null if there is no such device set for the task
null if the task does not exists
java.rmi.RemoteException - :Exception during the execution of a remote method callConfigConstants.FINISHED,
ConfigConstants.FAILED,
ConfigConstants.INPROGRESS,
ConfigConstants.NOTSTARTED
public java.util.Vector getDevices(java.lang.String userName,
java.lang.String taskName)
throws java.rmi.RemoteException
taskName - : String name of the Task.java.rmi.RemoteException - :Exception during the execution of a remote method callDevice
public java.util.Vector getPendingDevices(java.lang.String userName,
java.lang.String taskName)
throws java.rmi.RemoteException
taskName - : String name of the Task.java.rmi.RemoteException - :Exception during the execution of a remote method callDevice
public java.util.Vector getPendingTasks(java.lang.String userName)
throws java.rmi.RemoteException
java.rmi.RemoteException - :Exception during the execution of a remote method call
public void removeTask(java.lang.String userName,
java.lang.String taskName)
throws ConfigException,
java.rmi.RemoteException
taskName - String name of the Task to be removed.ConfigException - if it fails to retrieve the task.java.rmi.RemoteException - :Exception during the execution of a remote method call
public java.lang.String getDeviceConfiguration(java.lang.String userName,
java.lang.String taskXML)
throws ConfigException,
TaskNotFoundException,
java.rmi.RemoteException
taskXML - : String task in XMLTaskNotFoundException - if the requested task is not found.ConfigException - if ConfigServer fails to get the task from the Storage.java.rmi.RemoteException - :Exception during the execution of a remote method call
public void retainSession(java.lang.String userName)
throws java.rmi.RemoteException
userName - the name of the user for which the session has to be retained
public void terminateSession(java.lang.String userName)
throws java.rmi.RemoteException
userName - the name of the user for which the session has to be terminated.
|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||