com.sun.management.snmp.agent
Class SnmpMibOid

java.lang.Object
  extended by com.sun.management.snmp.agent.SnmpMibNode
      extended by com.sun.management.snmp.agent.SnmpMibOid
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SnmpMibGroup

public class SnmpMibOid
extends SnmpMibNode
implements Serializable

Represents a node in an SNMP MIB which is neither a group nor a variable. This class defines a list of sub-nodes and the methods that allow to manipulate the sub-nodes.

This class is used internally and by the class generated by mibgen. You should not need to use this class directly.

Since:
Java DMK 5.1
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.management.snmp.agent.SnmpMibNode
noSuchInstanceException, noSuchNameException, noSuchObjectException, varList
 
Constructor Summary
SnmpMibOid()
          Default constructor.
 
Method Summary
 void check(SnmpMibSubRequest req, int depth)
          Generic handling of the check operation.
 void get(SnmpMibSubRequest req, int depth)
          Generic handling of the get operation.
 void getRootOid(Vector result)
          Computes the root OID of the MIB.
 void registerNode(String oidString, SnmpMibNode node)
          Registers a specific node in the tree.
 void set(SnmpMibSubRequest req, int depth)
          Generic handling of the set operation.
 
Methods inherited from class com.sun.management.snmp.agent.SnmpMibNode
getNextIdentifier, getNextVarId, getNextVarId, skipVariable, sort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpMibOid

public SnmpMibOid()
Default constructor.

Method Detail

get

public void get(SnmpMibSubRequest req,
                int depth)
         throws SnmpStatusException
Generic handling of the get operation.

This method should be overridden in subclasses.

Specified by:
get in class SnmpMibNode
Parameters:
req - The sub-request that must be handled by this node.
depth - The depth reached in the OID tree.
Throws:
SnmpStatusException - The default implementation (if not overridden) is to generate a SnmpStatusException.

set

public void set(SnmpMibSubRequest req,
                int depth)
         throws SnmpStatusException
Generic handling of the set operation.

This method should be overridden in subclasses.

Specified by:
set in class SnmpMibNode
Parameters:
req - The sub-request that must be handled by this node.
depth - The depth reached in the OID tree.
Throws:
SnmpStatusException - The default implementation (if not overridden) is to generate a SnmpStatusException.

check

public void check(SnmpMibSubRequest req,
                  int depth)
           throws SnmpStatusException
Generic handling of the check operation.

This method should be overridden in subclasses.

Specified by:
check in class SnmpMibNode
Parameters:
req - The sub-request that must be handled by this node.
depth - The depth reached in the OID tree.
Throws:
SnmpStatusException - The default implementation (if not overridden) is to generate a SnmpStatusException.

getRootOid

public void getRootOid(Vector result)
Computes the root OID of the MIB.

Overrides:
getRootOid in class SnmpMibNode

registerNode

public void registerNode(String oidString,
                         SnmpMibNode node)
                  throws IllegalAccessException
Registers a specific node in the tree.

Throws:
IllegalAccessException

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.