|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.management.config.xml.BaseElement
com.adventnet.management.config.xml.ConfigResult
public class ConfigResult
This class represents the complete information on the status of configuration
of the device.
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>
DeviceResult,
AttributeResult,
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.adventnet.management.config.xml.BaseElement |
|---|
element, isServer |
| Constructor Summary | |
|---|---|
ConfigResult(DeviceResult[] deviceResults)
This is an constructor which takes DeviceResult array as an argument |
|
ConfigResult(org.w3c.dom.Element element)
This is a constructor which takes XML Element as an argument. |
|
ConfigResult(java.lang.String xmlString)
This is a constructor which takes XML String as the argument. |
|
| Method Summary | |
|---|---|
DeviceResult[] |
getConfigResult()
Returns the Configuration Result of the submitted devices. |
java.lang.String |
getTaskName()
Returns the name of the ConfigTask executed over a set of devices. |
boolean |
isRollbackEnabled()
Returns whether rollback is enabled for this configured task. |
java.lang.String |
toString()
Returns the ConfigResult in XML format by transforming the ConfigResult Element. |
| Methods inherited from class com.adventnet.management.config.xml.BaseElement |
|---|
addSubTag, getAttribute, getElement, getProperties, getSubTagsByName, hasAttribute, removeSubTagsByName, setAttribute, setProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigResult(java.lang.String xmlString)
throws InvalidTemplateException
xmlString - XML that represents the Configuration Result.
InvalidTemplateException - if the xmlString passed is invalid or if root element is not
equal to ConfigResult.
public ConfigResult(org.w3c.dom.Element element)
throws InvalidTemplateException
element - element containing ConfigResult as the root element.
InvalidTemplateException - if the input Element is null or element's tag name is not equal to
ConfigResult.
public ConfigResult(DeviceResult[] deviceResults)
throws InvalidTemplateException
deviceResults - an array of DeviceResults whic hwill constitute the
ConfigResult.
InvalidTemplateException - if the input DeviceResult array is null.| Method Detail |
|---|
public DeviceResult[] getConfigResult()
DeviceResult[] valuepublic java.lang.String getTaskName()
public boolean isRollbackEnabled()
public java.lang.String toString()
toString in class BaseElement
|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||