|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.utils.btree.TreeCell
|
+--com.adventnet.snmp.snmp2.agent.AgentNode
This AgentNode is used to store the VarBindRequestListener information while a oid is registering with PduRequestHandler. AgentTree is constructed with AgentNode. This class extends TreeCell.
AgentTree,
PduRequestHandler| Field Summary | |
(package private) VarBindRequestListenerHolder |
holder
|
| Fields inherited from class com.adventnet.utils.btree.TreeCell |
key,
parent,
proxy,
subId |
| Constructor Summary | |
AgentNode(AgentTree tr,
java.lang.Object key,
int subId)
Constructor for AgentNode. |
|
| Method Summary | |
void |
addCell(TreeCell cell)
Add a child to this cell |
int |
compareTo(java.lang.Object toComp)
Compares the key (toComp) with the key associated with this TreeCell. |
AgentNode |
getChildCell(int subid)
Gets the child with the specified subid if exists. |
(package private) AgentNode |
getFirstChild()
|
AgentNode |
getNearestCell(java.lang.Object key)
Gets the Nearest Cell. |
AgentNode |
getNearestLeafCell(java.lang.Object oid)
Gets the Nearest Leaf node Cell in the subTree. |
VarBindRequestListenerHolder |
getVarBindRequestListenerHolder()
Getter for the VarBindRequestListener holder associated with this node. |
boolean |
isInRange(java.lang.Object key)
This Method is to Check out whether the key is in appropriate range. |
int |
length()
Getter for length of the key. |
(package private) void |
setVarBindRequestListenerHolder(VarBindRequestListenerHolder holder)
Setter for VarBindRequestListener associated with this node. |
java.lang.String |
toString()
Gets the dotted representation of the node (OID representation of the node) e.g., .1.3.6.1.2.1.1.1 |
| Methods inherited from class com.adventnet.utils.btree.TreeCell |
compareTo,
getChildList,
getKey,
getLevel,
getNextCell,
getNextLeafCell,
getParent,
getSubId,
getTreeFramework,
isLeaf,
isProxy,
setParent,
setProxy,
setSubId |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
VarBindRequestListenerHolder holder
| Constructor Detail |
public AgentNode(AgentTree tr,
java.lang.Object key,
int subId)
tr - The framework to which this node needs to be added.key - int[] registered key.subId - The subIdentifier for the node.| Method Detail |
public VarBindRequestListenerHolder getVarBindRequestListenerHolder()
void setVarBindRequestListenerHolder(VarBindRequestListenerHolder holder)
VarBindRequestListenerHolder - public void addCell(TreeCell cell)
cell - the instance of the TreeCellpublic int length()
public int compareTo(java.lang.Object toComp)
toComp - the Object key to be compared (int []).com.adventnet.utils.btree.TreeCell.compareTo()public java.lang.String toString()
public boolean isInRange(java.lang.Object key)
key - The Key that has to be checked.public AgentNode getNearestCell(java.lang.Object key)
key - The object for which the Nearest Cell is to required.isInRange()public AgentNode getChildCell(int subid)
subid - subidentifier of the NodeAgentNode getFirstChild()
public AgentNode getNearestLeafCell(java.lang.Object oid)
throws AgentSnmpException
oid - Object Oid For which the nearest Leaf Node is needed.isInRange(),
getNearestCell()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||