|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.management.snmp.agent.SnmpMibNode com.sun.management.snmp.agent.SnmpMibOid com.sun.management.snmp.agent.SnmpMibGroup com.sun.management.snmp.usm.usmmib.UsmStatsMeta
public class UsmStatsMeta
The class is used for representing SNMP metadata for the "UsmStats" group. The group is defined with the following oid: 1.3.6.1.6.3.15.1.1.
Field Summary | |
---|---|
protected UsmStatsMBean |
node
|
protected SnmpStandardObjectServer |
objectserver
|
Fields inherited from class com.sun.management.snmp.agent.SnmpMibGroup |
---|
subgroups |
Fields inherited from class com.sun.management.snmp.agent.SnmpMibNode |
---|
noSuchInstanceException, noSuchNameException, noSuchObjectException, varList |
Constructor Summary | |
---|---|
UsmStatsMeta(SnmpMib myMib,
SnmpStandardObjectServer objserv)
Constructor for the metadata associated to "UsmStats". |
Method Summary | |
---|---|
void |
check(SnmpMibSubRequest req,
int depth)
Generic handling of the check operation. |
void |
check(SnmpValue x,
long var,
Object data)
Check the value of a scalar variable |
SnmpValue |
get(long var,
Object data)
Get the value of a scalar variable |
void |
get(SnmpMibSubRequest req,
int depth)
Generic handling of the get operation. |
String |
getAttributeName(long id)
Return the name of the attribute corresponding to the SNMP variable identified by "id". |
SnmpMibTable |
getTable(long arc)
Returns the table object identified by "arc". |
boolean |
isReadable(long arc)
Returns true if "arc" identifies a readable scalar object. |
boolean |
isTable(long arc)
Returns true if "arc" identifies a table object. |
boolean |
isVariable(long arc)
Returns true if "arc" identifies a scalar object. |
void |
registerTableNodes(SnmpMib mib,
MBeanServer server)
Register the group's SnmpMibTable objects with the meta-data. |
void |
set(SnmpMibSubRequest req,
int depth)
Generic handling of the set operation. |
SnmpValue |
set(SnmpValue x,
long var,
Object data)
Set the value of a scalar variable |
protected void |
setInstance(UsmStatsMBean var)
Allow to bind the metadata description to a specific object. |
Methods inherited from class com.sun.management.snmp.agent.SnmpMibGroup |
---|
getRootOid, isNestedArc, registerObject, validateVarId |
Methods inherited from class com.sun.management.snmp.agent.SnmpMibOid |
---|
registerNode |
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 |
Field Detail |
---|
protected UsmStatsMBean node
protected SnmpStandardObjectServer objectserver
Constructor Detail |
---|
public UsmStatsMeta(SnmpMib myMib, SnmpStandardObjectServer objserv)
Method Detail |
---|
public SnmpValue get(long var, Object data) throws SnmpStatusException
get
in interface SnmpStandardMetaServer
var
- OID arc of the queried scalar object.data
- A contextual object containing user-data.
This object is allocated through the
SnmpUserDataFactory
for each incoming SNMP request.
SnmpValue
of the scalar object identified
by arc
.
SnmpStatusException
- If the arc is not valid, or if
access is denied.public SnmpValue set(SnmpValue x, long var, Object data) throws SnmpStatusException
set
in interface SnmpStandardMetaServer
x
- New value for the scalar object identified by
arc
var
- OID arc of the scalar object whose value is set.data
- A contextual object containing user-data.
This object is allocated through the
SnmpUserDataFactory
for each incoming SNMP request.
SnmpValue
of the scalar object
identified by arc
.
SnmpStatusException
- If the arc is not valid, or if
access is denied.public void check(SnmpValue x, long var, Object data) throws SnmpStatusException
check
in interface SnmpStandardMetaServer
x
- New value for the scalar object identified by
arc
var
- OID arc of the scalar object whose value is set.data
- A contextual object containing user-data.
This object is allocated through the
SnmpUserDataFactory
for each incoming SNMP request.
SnmpStatusException
- If the arc is not valid, or if
access is denied, or if the new desired value is not valid.protected void setInstance(UsmStatsMBean var)
public void get(SnmpMibSubRequest req, int depth) throws SnmpStatusException
SnmpMibGroup
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:
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.
get
in class SnmpMibGroup
req
- The sub-request that must be handled by this node.depth
- The depth reached in the OID tree.
SnmpStatusException
- An error occurred while accessing
the MIB node.public void set(SnmpMibSubRequest req, int depth) throws SnmpStatusException
SnmpMibGroup
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:
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.
set
in class SnmpMibGroup
req
- The sub-request that must be handled by this node.depth
- The depth reached in the OID tree.
SnmpStatusException
- An error occurred while accessing
the MIB node.public void check(SnmpMibSubRequest req, int depth) throws SnmpStatusException
SnmpMibGroup
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:
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.
check
in class SnmpMibGroup
req
- The sub-request that must be handled by this node.depth
- The depth reached in the OID tree.
SnmpStatusException
- An error occurred while accessing
the MIB node.public boolean isVariable(long arc)
isVariable
in class SnmpMibGroup
arc
- An OID arc.
true
if `arc' leads to a variable.public boolean isReadable(long arc)
isReadable
in class SnmpMibGroup
arc
- An OID arc.
true
if `arc' leads to a readable variable.public String getAttributeName(long id) throws SnmpStatusException
SnmpStatusException
public boolean isTable(long arc)
isTable
in class SnmpMibGroup
arc
- An OID arc.
true
if `arc' leads to a table.public SnmpMibTable getTable(long arc)
getTable
in class SnmpMibGroup
arc
- An OID arc.
SnmpMibTable
identified by `arc', or
null
if `arc' does not identify any table.public void registerTableNodes(SnmpMib mib, MBeanServer server)
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |