AdventNet Web NMS 4 API Specification

com.adventnet.management.config.xml
Class NEInput

java.lang.Object
  |
  +--com.adventnet.management.config.xml.BaseElement
        |
        +--com.adventnet.management.config.xml.NEInput
All Implemented Interfaces:
java.io.Serializable

public class NEInput
extends BaseElement

This class represents Network Inputs defined in a DataSource. These inputs provide configuration data from Network Elements which will be populated to ConfigTasks before configuring the associated devices.

<?xml version="1.0" encoding="ISO-8859-1"?>
<DataSource name="NEDataSource" associatedTasks="SystemConfig">
<InventoryInput id="sysName" MOName="localhost" MOField="sysName" default="NMS"/>
<NEInput id="UploadTask">
<ProtocolMap name="snmp">
<Device community="public" version="v1" retries="3" port="161" MOName="localhost" host="localhost" timeout="5000"/>
</ProtocolMap>
<Attribute label="sysLocation" identifier="1.6.0" type="4" value="AdventNet"/>
</NEInput>
</DataSource>
 

See Also:
Serialized Form

Fields inherited from class com.adventnet.management.config.xml.BaseElement
element, isServer
 
Constructor Summary
NEInput(org.w3c.dom.Element element)
          Creates a new NEInput from the XML Element.
 
Method Summary
 Attribute[] getAttributes()
          Returns the Configuration Attributes to be uploaded from the Specified NE.
 java.lang.String getID()
          Returns a uniqueID of this DataSource Input.
 ProtocolMap getProtocolMap()
          Returns the ProtocolMap Element of the NEInput which contains the Network Element for upload.
 ConfigTask getTask()
          Returns the NEInput as a Configuration Task that will be uploaded from the 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

NEInput

public NEInput(org.w3c.dom.Element element)
        throws InvalidTemplateException
Creates a new NEInput from the XML Element.
Parameters:
element - element containing NEInput as the root element.
Throws:
InvalidTemplateException - if the element is null or element's tag name is not equal to NEInput.
Method Detail

getTask

public ConfigTask getTask()
                   throws InvalidTemplateException
Returns the NEInput as a Configuration Task that will be uploaded from the Device.
Returns:
Configuration Task to be uploaded.
Throws:
InvalidTemplateException - if it fails to construct ConfigTask.

getProtocolMap

public ProtocolMap getProtocolMap()
                           throws InvalidTemplateException
Returns the ProtocolMap Element of the NEInput which contains the Network Element for upload.
Throws:
InvalidTemplateException - if it fails to construct ProtocolMap.

getAttributes

public Attribute[] getAttributes()
                          throws InvalidTemplateException
Returns the Configuration Attributes to be uploaded from the Specified NE.
Returns:
an Attribute Array.
Throws:
InvalidTemplateException - if it fails to construct Attribute Array.

getID

public java.lang.String getID()
Returns a uniqueID of this DataSource Input.
Returns:
a String representing this NEInput.

AdventNet Web NMS 4 API Specification