|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.mibs.MibNode
com.adventnet.snmp.mibs.JdbcMibNode
class JdbcMibNode
| Field Summary | |
|---|---|
(package private) java.util.Vector |
childVector
|
(package private) java.lang.String |
defval
|
(package private) java.lang.String |
description
|
(package private) java.lang.String |
isImportedNode
|
(package private) JdbcMibOperations |
jMibOps
|
(package private) java.lang.String |
keyName
|
(package private) java.lang.String |
macroType
|
(package private) java.lang.String |
moduleName
|
(package private) java.lang.String |
nodeName
|
(package private) java.lang.String |
oid
|
(package private) java.lang.String |
queryString
|
(package private) java.lang.String |
reference
|
(package private) java.sql.ResultSet |
rs
|
(package private) int |
subID
|
(package private) java.lang.String |
tableName
|
| Fields inherited from class com.adventnet.snmp.mibs.MibNode |
|---|
access, addedForResolving, agentCap, augmentNode, augmentStr, childList, commentObj, contactinfo, defOIDStr, impliedNode, importFromModule, indexNames, isAugments, isImplied, isImported, label, lastupdated, m_type, moduleCompliance, nextNode, node_access, node_status, notificationsNames, objectNames, objects, oid_array, oid_string, organization, parent, productrelease, remoteParent, revdescription, revisionDescriptions, revisions, rowName, status, subid, syntax, tableItems, tableSequence, units, userObj |
| Fields inherited from interface com.adventnet.snmp.mibs.mibparser.MIBConstants |
|---|
ACCESS_ACCESSIBLE_FOR_NOTIFY, ACCESS_NOT_ACCESSIBLE, ACCESS_NOT_IMPLEMENTED, ACCESS_READ_CREATE, ACCESS_READ_ONLY, ACCESS_READ_WRITE, ACCESS_WRITE_ONLY, accessStr, AGENT_CAPABILITIES, alphaStr, BITSTRING, COUNTER, COUNTER32, COUNTER64, GAUGE, GAUGE32, INTEGER, INTEGER32, IPADDRESS, macroStr, MODULE_COMPLIANCE, MODULE_IDENTITY, NETWORKADDRESS, NOTIFICATION_GROUP, NOTIFICATION_TYPE, NULL, numericStr, OBJECT_GROUP, OBJECT_IDENTIFIER, OBJECT_IDENTITY, OBJECT_TYPE, OCTETSTRING, OPAQUE, SEQUENCE, STATUS_CURRENT, STATUS_DEPRECATED, STATUS_MANDATORY, STATUS_OBSOLETE, STATUS_OPTIONAL, statusStr, TEXTUAL_CONVENTION, TIMETICKS, TRAP_TYPE, UNSIGNED32 |
| Constructor Summary | |
|---|---|
JdbcMibNode()
|
|
JdbcMibNode(java.lang.String modulename,
java.lang.String name,
java.lang.String OID,
java.lang.String macrotype,
JdbcMibOperations jdbcMibOps)
|
|
| Method Summary | |
|---|---|
int |
getAccess()
Gets the access value for this node. |
java.util.Vector |
getAgentCapabilities()
Gets the various clauses in AGENT-CAPABILITIES as a Vector of AgentCapabilitiesModule |
(package private) MibNode |
getAugmentNode(java.lang.String moduleName,
java.lang.String nodeName,
JdbcMibOperations jMibOps)
|
MibNode |
getAugments()
Gets the augmented table entry. |
MibNode |
getChild(int subId)
Gets the child node corresponding to the particular sub-id. |
java.util.Vector |
getChildList()
Gets the child nodes. |
MibNode |
getCommonAncestorWith(MibNode node)
Gives the common ancestor node for this node and the specified node. |
java.lang.String |
getContactinfo()
Gets the value of CONTACT-INFO clause in MODULE-IDENTITY macro |
(package private) java.lang.String |
getDefOIDStr()
|
java.lang.String |
getDefval()
The defval for this node can be obtained using this method. |
java.lang.String |
getDescription()
Gets the description for this node |
java.lang.String |
getImpliedNode()
Gives the implied node name present in the INDEX list of this MIB node. |
java.lang.String |
getImportedModuleName()
Gets the name of the module from where this node is imported. |
java.util.Vector |
getIndexNames()
Gives the index names defined for this node. |
boolean |
getIsAugmented()
Used to know whether the entry node contains the AUGMENTS clause. |
java.lang.String |
getLabel()
Gets the name of this MIB Node. |
java.lang.String |
getLastupdated()
Gets the value of the LAST-UPDATED clause in MODULE-IDENTITY macro |
java.lang.String |
getMacroType()
Gets the macro-type of this node. |
java.util.Vector |
getModuleCompliance()
Gets the various clauses in MODULE-COMPLIANCE macro. |
java.lang.String |
getModuleName()
Gets the name of the module this node is defined return the module name e.g. |
java.lang.String |
getNotificationsNames()
Gets the NOTIFICATIONS clause names in NOTIFICATION-GROUP macro |
java.lang.String |
getNumberedOIDString()
Gives the numbered OID string of the node. |
java.lang.String |
getObjectNames()
Gets the OBJECT clause names in OBJECT-GROUP and NOTIFICATION-TYPE macro |
java.util.Vector |
getObjects()
Gets the OBJECT clause names in OBJECT-GROUP and NOTIFICATION-TYPE macro. |
int[] |
getOID()
Gives the numbered OID of the node as an array of ints. |
java.util.Vector |
getOIDVector()
Gets the named OID of the node as a Vector of String. |
java.util.Vector |
getOIDVectorIds()
Gives the numbered OID of the node as a Vector of Integer objects. |
java.lang.String |
getOrganization()
Gets the value of ORGANIZATION clause in MODULE-IDENTITY macro |
MibNode |
getParent()
We can make use this method to get the parent of this node. |
java.lang.String |
getProductrelease()
Get the value of PRODUCT-RELEASE clause in AGENT-CAPABILITIES macro |
java.lang.String |
getReference()
Gets string reference for this node. |
java.lang.String |
getRevdescription()
Gets the value of DESCRIPTION field under REVISION clause in MODULE-IDENTITY macro |
java.lang.String |
getRevision()
Gets the value of REVISION clause in MODULE-IDENTITY macro |
java.util.Vector |
getRevisionDescriptions()
Gives the revision descriptions as a vector of String Elements. |
java.util.Vector |
getRevisions()
Gives the revisions as a Vector of String Elements. |
java.lang.String |
getRowName()
Gets the name of the row sequence. |
java.lang.String |
getStatus()
Gets the status value of this node. |
(package private) java.util.Vector |
getStdNode(java.util.Vector childVector)
|
int |
getSubid()
Gets the subid of this MIB Node. |
long |
getSubID()
Gives the sub-identifier of this node's object-identifier. |
LeafSyntax |
getSyntax()
Gives the syntax associated with this node. |
java.util.Vector |
getTableItems()
Will give the names of the items in the row sequence. |
java.lang.String |
getTableSequence()
Gets the name in the SEQUENCE OF "name" item |
java.lang.String |
getUnits()
Gets the value of UNITS clause in OBJECT-TYPE macro |
boolean |
isAncestorOf(JdbcMibNode node)
|
boolean |
isDescendentOf(JdbcMibNode node)
|
boolean |
isImplied()
Used to find whether the INDEX clause contains an IMPLIED keyword. |
boolean |
isImportedNode()
Used to find whether this is an imported node. |
boolean |
isInCurrentTable(java.lang.String nodeLabel)
Used to find whether the given node is a column of the current table. |
boolean |
isLeaf()
Used to know whether this is a leaf node. |
boolean |
isReadable()
Used to know whether this node is readable. |
boolean |
isScalar()
Using this method we can find whether this node is Scalar or not. |
boolean |
isTable()
Used to know whether this is a table node. |
boolean |
isTableColumn()
Used to know whether this node is a table column or not. |
boolean |
isTableEntry()
Used to find whether this node is a table entry. |
boolean |
isWriteable()
Used to know whether this node is writeable. |
java.lang.String |
printAccess()
Gives the access value as a string. |
java.lang.String |
printDescription()
Returns the Description string |
java.util.Vector |
printIndex()
The names of the index nodes can be obtained using this method. |
java.lang.String |
printReference()
Returns the Reference string |
java.lang.String |
printStatus()
Returns the status value as a string. |
void |
setDefval(java.lang.String defval)
Sets the defval as defined in the MIB. |
(package private) void |
setMibModuleName(java.lang.String ModuleName)
|
(package private) java.util.Vector |
sort(java.util.Vector childVector)
|
java.lang.String |
toString()
Gives the name of this node. |
java.lang.String |
toTagString()
Gets detailed information about the node, much like the MIB definition itself. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
java.lang.String moduleName
java.lang.String nodeName
java.lang.String macroType
java.lang.String oid
java.lang.String isImportedNode
java.lang.String reference
java.lang.String description
java.lang.String defval
java.lang.String queryString
java.lang.String keyName
java.lang.String tableName
java.sql.ResultSet rs
int subID
java.util.Vector childVector
JdbcMibOperations jMibOps
| Constructor Detail |
|---|
JdbcMibNode(java.lang.String modulename,
java.lang.String name,
java.lang.String OID,
java.lang.String macrotype,
JdbcMibOperations jdbcMibOps)
JdbcMibNode()
| Method Detail |
|---|
public boolean isImportedNode()
MibNode
isImportedNode in class MibNodepublic int getSubid()
MibNode
getSubid in class MibNodeMibNode.getSubID()public long getSubID()
MibNode
getSubID in class MibNodepublic java.util.Vector getChildList()
MibNode
getChildList in class MibNodepublic MibNode getChild(int subId)
MibNode
getChild in class MibNodesubId - sub-oid of the child node.
public java.lang.String toString()
MibNode
toString in class MibNodeMibNode.getLabel()public java.lang.String toTagString()
MibNodeThis method gives the node information such as the OIDString, syntax, access, status, description, reference. The index nodes are also printed, if this is a table entry.
If this a table node, then table items are also printed in addition to the above information.
toTagString in class MibNodepublic int[] getOID()
MibNode
getOID in class MibNodepublic java.lang.String getNumberedOIDString()
MibNode
getNumberedOIDString in class MibNodepublic java.util.Vector getOIDVector()
MibNode
getOIDVector in class MibNodepublic java.util.Vector getOIDVectorIds()
MibNode
getOIDVectorIds in class MibNodepublic java.util.Vector printIndex()
MibNodeNOTE : This method is supposed to be invoked on a table entry.
printIndex in class MibNodeMibNode.getIndexNames(),
MibNode.getIndexes(com.adventnet.snmp.mibs.MibOperations)public boolean isImplied()
MibNodeThe IMPLIED keyword can only be present for a node having a variable-length syntax i.e. OCTET STRING with variable length or OBJECT IDENTIFIER. Also the IMPLIED keyword can be associated only with the last object in the INDEX clause. NOTE : This method is supposed to be invoked on a table entry.
isImplied in class MibNodepublic boolean isTableColumn()
MibNode
isTableColumn in class MibNodepublic boolean isInCurrentTable(java.lang.String nodeLabel)
MibNode
isInCurrentTable in class MibNodenodeLabel - the name of the node which is to be checked whether it is in this table.
public boolean isReadable()
MibNode
isReadable in class MibNodeMibNode.isWriteable(),
MibNode.isLeaf()public boolean isWriteable()
MibNode
isWriteable in class MibNodeMibNode.isReadable(),
MibNode.isLeaf()public boolean isScalar()
MibNode
isScalar in class MibNodeMibNode.isLeaf()public boolean isTable()
MibNode
isTable in class MibNodeMibNode.isTableEntry()public boolean isTableEntry()
MibNode
isTableEntry in class MibNodeMibNode.isTable()public boolean isLeaf()
MibNode
isLeaf in class MibNodeMibNode.isScalar()public java.util.Vector getRevisions()
MibNode
getRevisions in class MibNodepublic java.util.Vector getRevisionDescriptions()
MibNode
getRevisionDescriptions in class MibNodepublic java.util.Vector getObjects()
MibNode
getObjects in class MibNodepublic java.lang.String getModuleName()
MibNode
getModuleName in class MibNodepublic java.lang.String getMacroType()
MibNode
getMacroType in class MibNodepublic java.lang.String getLabel()
MibNode
getLabel in class MibNodeMibNode.toString()public MibNode getParent()
MibNode
getParent in class MibNodeMibNode.getChild(int subId),
MibNode.getChildList()public LeafSyntax getSyntax()
MibNode
getSyntax in class MibNodepublic int getAccess()
MibNode
getAccess in class MibNodepublic java.lang.String getStatus()
MibNode
getStatus in class MibNodepublic java.lang.String getDescription()
MibNode
getDescription in class MibNodepublic java.lang.String getReference()
MibNode
getReference in class MibNodepublic java.util.Vector getIndexNames()
MibNodeAs per the standard, every table entry should have either an INDEX clause or an AUGMENTS clause.
This method return the names that are defined in the INDEX clause of table entry node.
The elements of the Vector returned by this method are String. If you need the indexes as Vector of MibNodes, the method getIndexes(MibOperations) can be used.
getIndexNames in class MibNodeMibNode.getIndexes(com.adventnet.snmp.mibs.MibOperations),
MibNode.printIndex()public java.lang.String getDefval()
MibNode
getDefval in class MibNodepublic void setDefval(java.lang.String defval)
MibNode
setDefval in class MibNodedefval - the value to be set.MibNode.getDefval()public java.lang.String getTableSequence()
MibNode
getTableSequence in class MibNodepublic java.util.Vector getTableItems()
MibNode
getTableItems in class MibNodepublic java.lang.String getRowName()
MibNode
getRowName in class MibNodepublic boolean getIsAugmented()
MibNode
getIsAugmented in class MibNodepublic java.lang.String getUnits()
MibNode
getUnits in class MibNodepublic java.lang.String getLastupdated()
MibNode
getLastupdated in class MibNodepublic java.lang.String getOrganization()
MibNode
getOrganization in class MibNodepublic java.lang.String getContactinfo()
MibNode
getContactinfo in class MibNodepublic java.lang.String getRevision()
MibNode
getRevision in class MibNodeMibNode.getRevisions()public java.lang.String getRevdescription()
MibNode
getRevdescription in class MibNodeMibNode.getRevisionDescriptions()public java.util.Vector getModuleCompliance()
MibNode
getModuleCompliance in class MibNodepublic java.util.Vector getAgentCapabilities()
MibNode
getAgentCapabilities in class MibNodepublic java.lang.String getObjectNames()
MibNode
getObjectNames in class MibNodeMibNode.getObjects()public java.lang.String getNotificationsNames()
MibNode
getNotificationsNames in class MibNodepublic java.lang.String getProductrelease()
MibNode
getProductrelease in class MibNodepublic MibNode getAugments()
MibNodeIf you want to know whether a table entry is augmented, then the method getIsAugmented() can be used.
NOTE : This method is supposed to be invoked on a table entry.
getAugments in class MibNodeMibNode.getIsAugmented()public boolean isAncestorOf(JdbcMibNode node)
public boolean isDescendentOf(JdbcMibNode node)
public MibNode getCommonAncestorWith(MibNode node)
MibNode
getCommonAncestorWith in class MibNodenode - the MibNode object
public java.lang.String printAccess()
MibNode
printAccess in class MibNodepublic java.lang.String printStatus()
MibNode
printStatus in class MibNodepublic java.lang.String printDescription()
MibNode
printDescription in class MibNodepublic java.lang.String printReference()
MibNode
printReference in class MibNode
MibNode getAugmentNode(java.lang.String moduleName,
java.lang.String nodeName,
JdbcMibOperations jMibOps)
void setMibModuleName(java.lang.String ModuleName)
java.util.Vector getStdNode(java.util.Vector childVector)
public java.lang.String getImpliedNode()
MibNode
getImpliedNode in class MibNodejava.util.Vector sort(java.util.Vector childVector)
java.lang.String getDefOIDStr()
getDefOIDStr in class MibNodepublic java.lang.String getImportedModuleName()
MibNode
getImportedModuleName in class MibNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||