"WEBNMS_5 API Docs"

com.adventnet.management.config
Class TaskAudit

java.lang.Object
  extended by com.adventnet.management.config.TaskAudit
All Implemented Interfaces:
java.io.Serializable

public class TaskAudit
extends java.lang.Object
implements java.io.Serializable

This class holds audit details for the tasks executed in ConfigServer. It provides details about devicelists associated with the task, name of the datasource associated with the template, time of submission of task etc. See ConfigClientAPI and DeviceAuditAPI for retrieving audit details for the tasks executed.

Since:
Web NMS 2.3
See Also:
ConfigTask, ConfigClientAPI, DeviceAuditAPI, DeviceAudit, AttributeAudit, Serialized Form

Constructor Summary
TaskAudit(java.util.Properties prop)
          Constructs TaskAudit from Properties object.
 
Method Summary
 java.lang.String getDataSource()
          Returns the name of the datasource associated with the template based task.
 java.lang.String[] getDeviceList()
          Returns an array of devicelists associated with the task for execution.
 java.lang.String getExecutedTime()
          Returns the submitted time of the task for execution.
 int getExecutionID()
          Returns the execution ID of the task.
 java.lang.String getTaskName()
          Returns the name of the task executed.
 java.lang.String getUserName()
          Returns the user's name who submitted the task for execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskAudit

public TaskAudit(java.util.Properties prop)
Constructs TaskAudit from Properties object.

Parameters:
prop - contains audit details related for the task.
Method Detail

getTaskName

public java.lang.String getTaskName()
Returns the name of the task executed.

Returns:
a String representing the task name value.

getExecutionID

public int getExecutionID()
Returns the execution ID of the task. This execution ID is a unique value which is incremented sequentially for every task execution in ConfigServer. This ID will be used to relate the corresponding device level audit details.

Returns:
an int representing the execution ID value.

getUserName

public java.lang.String getUserName()
Returns the user's name who submitted the task for execution.

Returns:
a String value representing the user's name.

getDeviceList

public java.lang.String[] getDeviceList()
Returns an array of devicelists associated with the task for execution.

Returns:
an array of devicelists names if DeviceLists are associated ,otherwise null.
See Also:
DeviceList

getExecutedTime

public java.lang.String getExecutedTime()
Returns the submitted time of the task for execution.

Returns:
time in milliseconds.

getDataSource

public java.lang.String getDataSource()
Returns the name of the datasource associated with the template based task.

Returns:
name of the DataSource, if the executed task is a template otherwise null.
See Also:
DataSource

"WEBNMS_5 API Docs"

Copyright © 2011 ZOHO Corp., All Rights Reserved.