com.sun.jaw.snmp.agent
Class SnmpMibTableRemCreate

java.lang.Object
  |
  +--com.sun.jaw.snmp.agent.internal.SnmpMibNode
        |
        +--com.sun.jaw.snmp.agent.SnmpMibTable
              |
              +--com.sun.jaw.snmp.agent.SnmpMibTableRemCreate

public abstract class SnmpMibTableRemCreate
extends SnmpMibTable
implements java.io.Serializable

The SnmpMibTableRemCreate is an abtraction for a SNMP table.

The behavior of the class allows to support entry creation when setting a value using an index which is not already defined in the table.

If you need to allow entry creation through a set operation, you need to change the inheritance of the class representing the table and generated by mibgen.

See Also:
Serialized Form

Fields inherited from class com.sun.jaw.snmp.agent.SnmpMibTable
nodeId, theMib
 
Fields inherited from class com.sun.jaw.snmp.agent.internal.SnmpMibNode
noSuchNameException, varList
 
Constructor Summary
SnmpMibTableRemCreate(SnmpMib mib)
          Creates a new SnmpMibTableRemCreate.
 
Method Summary
 void check(SnmpValue x, long[] oid, int pos)
          Generic handling of the check operation.
abstract  java.lang.Object createNewEntry(SnmpIndex index)
          Request creation of an entry in a table using the index as key values.
 
Methods inherited from class com.sun.jaw.snmp.agent.SnmpMibTable
addEntry, addSnmpTableEntryListener, get, getBasicEntries, getEntry, getNext, getNextIndex, getSize, removeEntry, removeSnmpTableEntryListener, set, validateOid
 
Methods inherited from class com.sun.jaw.snmp.agent.internal.SnmpMibNode
getNextIdentifier, getRootOid, sort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpMibTableRemCreate

public SnmpMibTableRemCreate(SnmpMib mib)
Creates a new SnmpMibTableRemCreate.
Parameters:
mib - The SNMP mib.
Method Detail

createNewEntry

public abstract java.lang.Object createNewEntry(SnmpIndex index)
                                         throws SnmpStatusException
Request creation of an entry in a table using the index as key values.
Parameters:
index - The SNMP index.
Returns:
The newly created object.
Throws:
SnmpStatusException - The entry can not be created.

check

public void check(SnmpValue x,
                  long[] oid,
                  int pos)
           throws SnmpStatusException
Generic handling of the check operation.
Parameters:
x - The value.
oid - The oid array.
pos - The position in the array.
Throws:
SnmpStatusException - An error occurred while accessing a MIB node.
Overrides:
check in class SnmpMibTable