|
"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.Attribute
com.adventnet.management.config.snmp.SnmpAttribute
public class SnmpAttribute
This class holds the SNMP Configuration data for configuring a set of SNMP enabled devices.
Attributes of type SCALAR are used for configuring scalar or columnnar attributes and Attributes of type TABLE are used for configuring rows in a table.
For attributes of type SCALAR , index values should be appended with each OID ( scalar OID's should be appended with the index (0) and columnnar OID's should be appended with the encoded value of the index columns present in that row.)
For Table Attributes, the index value should also be the encoded value of the index columns present in that Table.
Device, Attribute for details about ManagedObject Updation.
Device,
Attribute,
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.adventnet.management.config.xml.BaseElement |
|---|
element, isServer |
| Constructor Summary | |
|---|---|
SnmpAttribute()
Creates a SnmpAttribute by initializing an empty Element of name "Attribute". |
|
SnmpAttribute(Attribute attribute)
Constructs a SnmpAttribute from Attribute's Element. |
|
SnmpAttribute(org.w3c.dom.Element element)
Creates a SnmpAttribute from this element. |
|
SnmpAttribute(java.lang.String tableOID,
java.lang.String[] columnOidList,
byte[] columnTypeList,
java.lang.String[] columnValueList,
java.lang.String index)
Creates a table attribute with columnTypes as byte array.The index value is the encoded values of the index columns in that table. |
|
SnmpAttribute(java.lang.String tableOID,
java.lang.String[] columnOidList,
java.lang.String[] columnOidLabelList,
byte[] columnTypeList,
java.lang.String[] columnValueList,
java.lang.String index)
Creates a table attribute with columnTypes as byte array. |
|
SnmpAttribute(java.lang.String tableOID,
java.lang.String[] columnOidList,
java.lang.String[] columnTypeStringList,
java.lang.String[] columnValueList,
java.lang.String index)
Creates a table attribute with columnTypes as String Array.The index value is the encoded values of the index columns in that table. |
|
SnmpAttribute(java.lang.String tableOID,
java.lang.String[] columnOidList,
java.lang.String[] columnOidLabelList,
java.lang.String[] columnTypeStringList,
java.lang.String[] columnValueList,
java.lang.String index)
Creates a table attribute with columnTypes as String Array.The index value is the encoded values of the index columns in that table. |
|
SnmpAttribute(java.lang.String identifier,
java.lang.String label,
byte type,
java.lang.String value)
Creates a scalar attribute,which takes type of the OID as byte. |
|
SnmpAttribute(java.lang.String identifier,
java.lang.String label,
java.lang.String typeString,
java.lang.String value)
Creates a scalar attribute which takes type of the OID as String. |
|
| Method Summary | |
|---|---|
java.lang.String |
getIndex()
Returns the index of the row,if the attribute type is AttributeConstants.TABLE_ATTRIBUTE. |
java.lang.String |
getLabel()
Returns the label of the OID. |
java.lang.String |
getTableOID()
Returns the tableOID,if the attribute type is AttributeConstants.TABLE_ATTRIBUTE. |
byte |
getType()
Returns the type of the OID in byte. |
java.lang.String |
getTypeString()
Returns the type of the OID in String. |
java.lang.String |
getValue()
Returns the value of the OID. |
| Methods inherited from class com.adventnet.management.config.xml.Attribute |
|---|
getAttributeList, getAttributeType, getIdentifier, getUserAttributes, setAttributeList, setAttributeType, setUserAttributes |
| 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 SnmpAttribute()
public SnmpAttribute(org.w3c.dom.Element element)
throws InvalidTemplateException
element - element containing Attribute as the root element.
InvalidTemplateException - if the element is null.public SnmpAttribute(Attribute attribute)
public SnmpAttribute(java.lang.String identifier,
java.lang.String label,
byte type,
java.lang.String value)
identifier - OID to be configured.label - label of the particular OID.type - type of the OID in byte.value - value that has to be configured over a device.
public SnmpAttribute(java.lang.String identifier,
java.lang.String label,
java.lang.String typeString,
java.lang.String value)
identifier - OID to be configured.label - label of the particular OID.typeString - type for the OID in String.value - value that has to be configured over a device.
public SnmpAttribute(java.lang.String tableOID,
java.lang.String[] columnOidList,
byte[] columnTypeList,
java.lang.String[] columnValueList,
java.lang.String index)
tableOID - OID of the table attribute.columnoidList - OID's of the columns in that table.columnTypeList - types of the columnOID's in byte array.columnValueList - values that has to be configured.index - index of the row to be manipulated.
public SnmpAttribute(java.lang.String tableOID,
java.lang.String[] columnOidList,
java.lang.String[] columnTypeStringList,
java.lang.String[] columnValueList,
java.lang.String index)
tableOID - OID for the tableAttribute.columnoidList - OID's of the columns in that table.columnTypeStringList - types of the column OID's in String array.columnValueList - values that has to be configured.index - the index of the row to be manipulated.
public SnmpAttribute(java.lang.String tableOID,
java.lang.String[] columnOidList,
java.lang.String[] columnOidLabelList,
java.lang.String[] columnTypeStringList,
java.lang.String[] columnValueList,
java.lang.String index)
tableOID - OID for the tableAttribute.columnoidList - OID's of the columns in that table.columnOidLabelList - label names of the corresponding columnscolumnTypeStringList - types of the column OID's in String array.columnValueList - values that has to be configured.index - the index of the row to be manipulated.
public SnmpAttribute(java.lang.String tableOID,
java.lang.String[] columnOidList,
java.lang.String[] columnOidLabelList,
byte[] columnTypeList,
java.lang.String[] columnValueList,
java.lang.String index)
tableOID - OID of the table attribute.columnOidList - OID's of the columns in that table.columnOidLabelList - label names of the corresponding columns.columnTypeList - types of the columnOID's in byte array.columnValueList - values that has to be configured.index - index of the row to be manipulated.| Method Detail |
|---|
public java.lang.String getLabel()
public byte getType()
public java.lang.String getTypeString()
public java.lang.String getValue()
public java.lang.String getTableOID()
AttributeConstants.TABLE_ATTRIBUTE.
If it is not a Table Attribute , it returns null.
AttributeConstantspublic java.lang.String getIndex()
AttributeConstants
|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||