|
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.xml.BaseElement
|
+--com.adventnet.management.config.xml.AttributeResult
This class holds the complete result of configuration over a device.It encapsulates details like taskName, deviceName,
identifier and status of configuration. The order of attribute result may vary from device to device in a set of devices
assigned for configuration.
Sample Configuration Result:
<?xml version="1.0" encoding="ISO-8859-1"?>
<ConfigResult taskName="SystemConfig" rollbackEnabled="false">
<DeviceResult deviceName="192.168.4.19" configuration="Attempted">
<AttributeResult identifier="1.6.0" label="sysLocation"
errorStatus="0" message="Success"/>
</DeviceResult>
<DeviceResult deviceName="192.168.4.24" configuration="Attempted">
<AttributeResult identifier="1.6.0" label="sysLocation"
errorStatus="0" message="Success"/>
</DeviceResult>
</ConfigResult>
| Fields inherited from class com.adventnet.management.config.xml.BaseElement |
element, isServer |
| Constructor Summary | |
AttributeResult(AttributeResult[] groupResults)
Creates a new AttributeResult instance for the Group Attribute. |
|
AttributeResult(org.w3c.dom.Element element)
Creates a new AttributeResult instance from this Element. |
|
AttributeResult(java.lang.String identifier,
int errorStatus,
java.lang.String message)
Creates a new AttributeResult instance. |
|
AttributeResult(java.lang.String identifier,
int errorStatus,
java.lang.String message,
int attributeType)
Creates a new AttributeResult instance. |
|
| Method Summary | |
int |
getAttributeType()
Returns the type of the attribute which can be either SCALAR_ATTRIBUTE or GROUP_ATTRIBUTE. |
AttributeResult[] |
getGroupResult()
Returns the result of child attributes present in a Group Attribute. |
java.lang.String |
getIdentifier()
Returns the attribute that has been configured. |
java.lang.String |
getLabel()
Returns the label that has been assigned in the corresponding attribute. |
java.lang.String |
getMessage()
Returns the response of the configuration over a particular agent. |
int |
getStatus()
Returns the status of configuration for this identifier over a particular device. |
| Methods inherited from class com.adventnet.management.config.xml.BaseElement |
addSubTag, getAttribute, getElement, getProperties, getSubTagsByName, hasAttribute, removeSubTagsByName, setAttribute, setProperties, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AttributeResult(org.w3c.dom.Element element)
throws InvalidTemplateException
AttributeResult instance from this Element.element - element containing AttributeResult or GroupResult as the root element.InvalidTemplateException - if the element is null.
public AttributeResult(java.lang.String identifier,
int errorStatus,
java.lang.String message)
AttributeResult instance.identifier - identifier of the configured attribute.errorStatus - status of configuration.message - Success if the device is successfully configured or the corresponding error message in case
of failure.
public AttributeResult(java.lang.String identifier,
int errorStatus,
java.lang.String message,
int attributeType)
AttributeResult instance.identifier - identifier of the configured attribute.errorStatus - status of configuration for this attributemessage - Success if the device is successfully configured or the corresponding error message in case
of failureattributeType - the attribute type which is the one of the constants in the AttributeConstants class.AttributeConstantspublic AttributeResult(AttributeResult[] groupResults)
AttributeResult instance for the Group Attribute.groupResults - result for the child attribute in a Group Attribute.| Method Detail |
public java.lang.String getIdentifier()
public int getStatus()
public java.lang.String getMessage()
public AttributeResult[] getGroupResult()
public int getAttributeType()
getGroupResult() . AttributeConstants class .AttributeConstantspublic java.lang.String getLabel()
|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||