|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.management.config.AttributeEvent
This event indicates that an attribute has been configured over a device. Registered Listeners will be
notified with these events for each attribute defined in a ConfigTask . Listeners can be registered with
the ConfigServer through DeviceConfigurationAPI. AttributeEvent will be generated and notified
for each retry of attribute on the device.
ConfigTask,
DeviceConfigurationAPI.registerTaskListener(String, ConfigTaskListener), Serialized Form| Constructor Summary | |
AttributeEvent(java.lang.String taskName,
java.lang.String subTaskName,
java.lang.String deviceName,
java.lang.String identifier,
int errorStatus,
java.lang.String message)
Creates an AttributeEvent of type GROUP_ATTRIBUTE. |
|
AttributeEvent(java.lang.String taskName,
java.lang.String subTaskName,
java.lang.String deviceName,
java.lang.String identifier,
java.lang.String label,
java.lang.String value,
int errorStatus,
java.lang.String message,
boolean endOfRetry)
Creates an AttributeEvent of type SCALAR_ATTRIBUTE. |
|
| Method Summary | |
java.lang.String |
getAttribute()
Returns the identifier for which the configuration was done. |
int |
getAttributeType()
Returns the attribute type. |
java.lang.String |
getDeviceName()
Returns the name of the configured device. |
AttributeEvent[] |
getGroupEvents()
Returns an array of AttributeEvent ,if the attribute configured is of type Group Attribute. |
java.lang.String |
getLabel()
Returns the label of the attribute if defined. |
java.lang.String |
getMessage()
Returns the result of configuration of attribute over a device. |
int |
getStatus()
Returns the status of configuration for this attribute. |
java.lang.String |
getSubTaskName()
Returns the name of the subtask in a CombinedTask. |
java.lang.String |
getTaskName()
Returns the name of the executed task. |
java.lang.String |
getValue()
Return the value of the attribute. |
boolean |
isEndOfRetry()
Specifies whether retry is finished for this attribute or not. |
void |
setAttributeType(int type)
Sets the attribute type for this event. |
void |
setGroupEvents(AttributeEvent[] groupAttributeEvents)
Sets an array of AttributeEvent for the child attributes present in a Group Attribute. |
java.lang.String |
toString()
Returns the concatenated string of taskName, deviceName,identifier and status. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AttributeEvent(java.lang.String taskName,
java.lang.String subTaskName,
java.lang.String deviceName,
java.lang.String identifier,
int errorStatus,
java.lang.String message)
AttributeEvent for the child attributes can be get from getGroupEvents()taskName - name of the task to which this attribute belongs.subTaskName - name of the subtask in a CombinedTask.deviceName - name of the configured device.identifier - name of the configured attribute.errorStatus - status of configuration for this attribute.message - result of configuration for this attribute.Attribute
public AttributeEvent(java.lang.String taskName,
java.lang.String subTaskName,
java.lang.String deviceName,
java.lang.String identifier,
java.lang.String label,
java.lang.String value,
int errorStatus,
java.lang.String message,
boolean endOfRetry)
taskName - name of the task to which this attribute belongs.subTaskName - name of the subtask in a CombinedTask.deviceName - name of the configured device.identifier - name of the configured attribute.label - label of the configured attribute.value - value of the attribute configured.errorStatus - status of configuration for this attribute.message - result of configuration for this attribute.endOfRetry - specifies whether retries got finished for this attribute or not.Attribute| Method Detail |
public java.lang.String getTaskName()
public java.lang.String getSubTaskName()
public java.lang.String getDeviceName()
public int getStatus()
public java.lang.String getMessage()
AttributeEvent of
type SCALAR_ATTRIBUTE.AttributeConstantspublic java.lang.String getAttribute()
AttributeEvent of
type SCALAR_ATTRIBUTE.AttributeConstantspublic java.lang.String getLabel()
AttributeEvent of
type SCALAR_ATTRIBUTE.AttributeConstantspublic java.lang.String getValue()
AttributeEvent of
type SCALAR_ATTRIBUTE.AttributeConstantspublic boolean isEndOfRetry()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setGroupEvents(AttributeEvent[] groupAttributeEvents)
AttributeEvent for the child attributes present in a Group Attribute.
Applicable to AttributeEvent of type GROUP_ATTRIBUTE.groupAttributeEvents - events for the child attributes defined in a Group Attribute.getGroupEvents(),
AttributeConstantspublic AttributeEvent[] getGroupEvents()
AttributeEvent ,if the attribute configured is of type Group Attribute.
Applicable to AttributeEvent of type GROUP_ATTRIBUTE.getGroupEvents(),
Attribute.getAttributeType(),
AttributeConstantspublic void setAttributeType(int type)
type - an int valuegetAttributeType()public int getAttributeType()
getGroupEvents returns the corresponding
AttributeEvent for child attributes.int value which is one of the constants AttributeConstantssetAttributeType(int),
AttributeConstants
|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||