|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jaw.snmp.agent.internal.SnmpMibNode | +--com.sun.jaw.snmp.agent.SnmpMibTable
The SnmpMibTable
is an abtraction for a SNMP table.
Field Summary | |
protected int |
nodeId
The id of the contained entry object. |
protected SnmpMib |
theMib
The mib to which the metadata is linked. |
Fields inherited from class com.sun.jaw.snmp.agent.internal.SnmpMibNode |
noSuchNameException,
varList |
Constructor Summary | |
SnmpMibTable(SnmpMib theMib)
Creates a new SnmpMibTable . |
Method Summary | |
protected void |
addEntry(SnmpIndex index,
java.lang.Object entry)
Adds a new entry in this SnmpMibTable . |
void |
addSnmpTableEntryListener(SnmpTableEntryListener listener)
Adds an event listener on the table. |
void |
check(SnmpValue x,
long[] oid,
int pos)
Generic handling of the check operation. |
SnmpValue |
get(long[] oid,
int pos)
Generic handling of the get operation. |
protected java.lang.Object[] |
getBasicEntries()
Gets the entries array of this SnmpMibTable . |
protected java.lang.Object |
getEntry(SnmpIndex index)
Gets the entry corresponding to the specified index. |
SnmpVarBind |
getNext(long[] oid,
int pos)
Generic handling of the getNext operation. |
protected SnmpIndex |
getNextIndex(SnmpIndex index)
Gets the index following the specified SnmpIndex in the table. |
protected int |
getSize()
Gets the size of the table. |
protected void |
removeEntry(java.lang.Object entry)
Removes the specified entry from the table. |
void |
removeSnmpTableEntryListener(SnmpTableEntryListener listener)
Removes an event listener from the table. |
SnmpValue |
set(SnmpValue x,
long[] oid,
int pos)
Generic handling of the set operation. |
protected void |
validateOid(long[] oid,
int pos)
Validates the specified oid. |
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 |
Field Detail |
protected int nodeId
protected SnmpMib theMib
Constructor Detail |
public SnmpMibTable(SnmpMib theMib)
SnmpMibTable
.theMib
- The SNMP mib.Method Detail |
public void addSnmpTableEntryListener(SnmpTableEntryListener listener)
listener
- The listener to add.public void removeSnmpTableEntryListener(SnmpTableEntryListener listener)
listener
- The listener to be removed.public SnmpValue get(long[] oid, int pos) throws SnmpStatusException
get
operation.oid
- The oid array.pos
- The position in the array.public SnmpValue set(SnmpValue x, long[] oid, int pos) throws SnmpStatusException
set
operation.x
- The value.oid
- The oid array.pos
- The position in the array.public void check(SnmpValue x, long[] oid, int pos) throws SnmpStatusException
check
operation.x
- The value.oid
- The oid array.pos
- The position in the array.public SnmpVarBind getNext(long[] oid, int pos) throws SnmpStatusException
getNext
operation.oid
- The oid array.pos
- The position in the array.protected void addEntry(SnmpIndex index, java.lang.Object entry) throws SnmpStatusException
SnmpMibTable
.index
- The SnmpIndex
.entry
- The entry to add.protected java.lang.Object getEntry(SnmpIndex index) throws SnmpStatusException
index
- The SnmpIndex
.protected void removeEntry(java.lang.Object entry)
entry
- The entry to be removed.protected java.lang.Object[] getBasicEntries()
SnmpMibTable
.protected SnmpIndex getNextIndex(SnmpIndex index) throws SnmpStatusException
SnmpIndex
in the table.index
- The SnmpIndex
.protected int getSize()
protected void validateOid(long[] oid, int pos) throws SnmpStatusException
oid
- The oid array.pos
- The position in the array.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |