SnmpMibEntrypublic abstract class SnmpMibEntry extends com.sun.jmx.snmp.agent.SnmpMibNode implements SerializableRepresents a node in an SNMP MIB which corresponds to a table entry
meta node.
This class is used by the class generated by mibgen .
You should not need to use this class directly.
This API is a Sun Microsystems internal API and is subject
to change without notice. |
Methods Summary |
---|
public abstract void | check(SnmpMibSubRequest req, int depth)Generic handling of the check operation.
The actual implementation of this method will be generated
by mibgen. Usually, this implementation only delegates the
job to some other provided runtime class, which knows how to
access the MBean. The current toolkit thus provides two
implementations:
- The standard implementation will directly access the
MBean through a java reference,
- The generic implementation will access the MBean through
the MBean server.
Both implementations rely upon specific - and distinct, set of
mibgen generated methods.
You can override this method if you need to implement some
specific policies for minimizing the accesses made to some remote
underlying resources, or if you need to implement some consistency
checks between the different values provided in the varbind list.
| public abstract void | get(SnmpMibSubRequest req, int depth)Generic handling of the get operation.
The actual implementation of this method will be generated
by mibgen. Usually, this implementation only delegates the
job to some other provided runtime class, which knows how to
access the MBean. The current toolkit thus provides two
implementations:
- The standard implementation will directly access the
MBean through a java reference,
- The generic implementation will access the MBean through
the MBean server.
Both implementations rely upon specific - and distinct, set of
mibgen generated methods.
You can override this method if you need to implement some
specific policies for minimizing the accesses made to some remote
underlying resources.
| public long | getNextVarId(long id, java.lang.Object userData)Get the next OID arc corresponding to a readable scalar variable.
long nextvar = super.getNextVarId(id,userData);
while (!isReadable(nextvar))
nextvar = super.getNextVarId(nextvar,userData);
return nextvar;
| public abstract boolean | isReadable(long arc)Tells whether the given arc identifies a readable scalar object in
this entry.
| public abstract boolean | isVariable(long arc)Tells whether the given arc identifies a variable (scalar object) in
this entry.
| public abstract void | set(SnmpMibSubRequest req, int depth)Generic handling of the set operation.
The actual implementation of this method will be generated
by mibgen. Usually, this implementation only delegates the
job to some other provided runtime class, which knows how to
access the MBean. The current toolkit thus provides two
implementations:
- The standard implementation will directly access the
MBean through a java reference,
- The generic implementation will access the MBean through
the MBean server.
Both implementations rely upon specific - and distinct, set of
mibgen generated methods.
You can override this method if you need to implement some
specific policies for minimizing the accesses made to some remote
underlying resources.
| public void | validateVarId(long arc, java.lang.Object userData)Checks whether the given OID arc identifies a variable (columnar
object).
if (isVariable(arc) == false) throw noSuchNameException;
|
|