HOME

com.ireasoning.protocol.snmp
Class BasicOIDTreeNode

java.lang.Object
  extended bycom.ireasoning.util.CTreeNode
      extended bycom.ireasoning.util.OrderedTreeNode
          extended bycom.ireasoning.protocol.snmp.BasicOIDTreeNode
All Implemented Interfaces:
Comparable, Serializable
Direct Known Subclasses:
OIDTreeNode

public class BasicOIDTreeNode
extends com.ireasoning.util.OrderedTreeNode

Basic OIDTreeNode

See Also:
Serialized Form

Field Summary
static byte ACCESS_READ_CREATE
          access code: read, write and create
static byte ACCESS_READ_ONLY
          access code: read only
static byte ACCESS_READ_WRITE
          access code: read and write
static byte ACCESSIBLE_FOR_NOTIFY
          access code: accessible for notify
static byte NOT_ACCESSIBLE
          access code: not accessible
 
Constructor Summary
BasicOIDTreeNode(SnmpOID name)
          Constructor.
BasicOIDTreeNode(SnmpOID name, CTreeNode root)
          Constructor.
BasicOIDTreeNode(String name)
          Constructor.
BasicOIDTreeNode(String name, CTreeNode root)
          Constructor.
 
Method Summary
 int getAccess()
          Always return not-accessible
 String getMibNodeName()
          Always return null
 Comparable getName()
          Gets the name object
 String getObjectName()
          Always return null.
 SnmpTable getSnmpTable()
          Returns the SnmpTable object associated with this table
 SnmpTableEntry getTableEntryObject()
          Returns the SnmpTableEntry object associated with this node
 boolean isGroupNode()
          Always return false;
 boolean isPartialName()
           
 boolean isReady()
          Return true if this node is ready after being added
 boolean isReadyExpired(long span)
           
 boolean isRegistered()
           
 boolean isScalarNode()
          Always return false
 boolean isTableLeafNode()
          Always return true
 boolean isTableNode()
          Always return false
protected  CTreeNode newInstance(Comparable name, CTreeNode root)
          Creates a new intance of BasicOIDTreeNode
 void setPartialName(boolean b)
           
 void setReady(boolean isReady)
          Sets the row status to be ready or not
 void setReady(long time)
          Sets the row status to be ready or not
 void setRegistered(boolean isRegistered)
           
 void setTableEntryObject(SnmpTableEntry entry)
          Associates an SnmpTableEntry object with this object
 
Methods inherited from class com.ireasoning.util.OrderedTreeNode
addChild, addChild, appendChild, compareTo, getNext, search
 
Methods inherited from class com.ireasoning.util.CTreeNode
appendChild, appendChild, compareTo, compareTo, compareTo, copy, equals, getChildNode, getChildNodeCount, getChildNodeIndex, getChildNodes, getFirstChild, getLastChild, getLeftMost, getNextSibling, getParent, getPrevSibling, getRawName, getRightMost, getRoot, hashCode, insertBefore, isChildNode, isInSameTree, isLeaf, isRoot, removeChild, removeChild, removeChild, removeNode, replaceChild, setName, setParent, setRoot, toJTreeNode, toString, traverse
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NOT_ACCESSIBLE

public static final byte NOT_ACCESSIBLE
access code: not accessible

See Also:
Constant Field Values

ACCESSIBLE_FOR_NOTIFY

public static final byte ACCESSIBLE_FOR_NOTIFY
access code: accessible for notify

See Also:
Constant Field Values

ACCESS_READ_ONLY

public static final byte ACCESS_READ_ONLY
access code: read only

See Also:
Constant Field Values

ACCESS_READ_WRITE

public static final byte ACCESS_READ_WRITE
access code: read and write

See Also:
Constant Field Values

ACCESS_READ_CREATE

public static final byte ACCESS_READ_CREATE
access code: read, write and create

See Also:
Constant Field Values
Constructor Detail

BasicOIDTreeNode

public BasicOIDTreeNode(SnmpOID name)
Constructor. Creates a node with passed name

Parameters:
name - node name

BasicOIDTreeNode

public BasicOIDTreeNode(SnmpOID name,
                        CTreeNode root)
Constructor. Creates a node with passed name

Parameters:
name - node name
root - root node

BasicOIDTreeNode

public BasicOIDTreeNode(String name)
Constructor. Creates a node with passed name

Parameters:
name - node name

BasicOIDTreeNode

public BasicOIDTreeNode(String name,
                        CTreeNode root)
Constructor. Creates a node with passed name

Parameters:
name - node name
root - root node
Method Detail

isTableLeafNode

public boolean isTableLeafNode()
Always return true


isScalarNode

public boolean isScalarNode()
Always return false


getSnmpTable

public SnmpTable getSnmpTable()
Returns the SnmpTable object associated with this table


setTableEntryObject

public void setTableEntryObject(SnmpTableEntry entry)
Associates an SnmpTableEntry object with this object


getTableEntryObject

public SnmpTableEntry getTableEntryObject()
Returns the SnmpTableEntry object associated with this node


newInstance

protected CTreeNode newInstance(Comparable name,
                                CTreeNode root)
Creates a new intance of BasicOIDTreeNode


isReady

public boolean isReady()
Return true if this node is ready after being added


setReady

public void setReady(boolean isReady)
Sets the row status to be ready or not


setReady

public void setReady(long time)
Sets the row status to be ready or not


isReadyExpired

public boolean isReadyExpired(long span)

isRegistered

public boolean isRegistered()

setRegistered

public void setRegistered(boolean isRegistered)

setPartialName

public void setPartialName(boolean b)

isPartialName

public boolean isPartialName()

isGroupNode

public boolean isGroupNode()
Always return false;


isTableNode

public boolean isTableNode()
Always return false


getName

public Comparable getName()
Gets the name object

Overrides:
getName in class CTreeNode

getAccess

public int getAccess()
Always return not-accessible


getObjectName

public String getObjectName()
Always return null.


getMibNodeName

public String getMibNodeName()
Always return null


HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.