|
||||||||||
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.SnmpMibEntry com.sun.management.snmp.usm.usmmib.UsmUserEntryMeta
public class UsmUserEntryMeta
The class is used for representing SNMP metadata for the "UsmUserEntry" group. The group is defined with the following oid: 1.3.6.1.6.3.15.1.2.2.1.
Field Summary | |
---|---|
protected UsmUserEntryMBean |
node
|
protected SnmpStandardObjectServer |
objectserver
|
Fields inherited from class com.sun.management.snmp.agent.SnmpMibNode |
---|
noSuchInstanceException, noSuchNameException, noSuchObjectException, varList |
Constructor Summary | |
---|---|
UsmUserEntryMeta(SnmpMib myMib,
SnmpStandardObjectServer objserv)
Constructor for the metadata associated to "UsmUserEntry". |
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". |
int |
getRowStatus(Object userData)
|
long |
getRowStatusId()
|
String |
getRowStatusName()
|
boolean |
isReadable(long arc)
Returns true if "arc" identifies a readable scalar object. |
boolean |
isRowReady(Object userData)
|
boolean |
isVariable(long arc)
Returns true if "arc" identifies a scalar object. |
protected int |
mapRowStatus(SnmpVarBind var,
Object userData)
|
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(UsmUserEntryMBean var)
Allow to bind the metadata description to a specific object. |
SnmpValue |
setRowStatus(int status,
Object userData)
|
Methods inherited from class com.sun.management.snmp.agent.SnmpMibEntry |
---|
getNextVarId, validateVarId |
Methods inherited from class com.sun.management.snmp.agent.SnmpMibNode |
---|
getNextIdentifier, getNextVarId, getRootOid, skipVariable, sort |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected UsmUserEntryMBean node
protected SnmpStandardObjectServer objectserver
Constructor Detail |
---|
public UsmUserEntryMeta(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(UsmUserEntryMBean var)
public void get(SnmpMibSubRequest req, int depth) throws SnmpStatusException
SnmpMibEntry
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 SnmpMibEntry
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
SnmpMibEntry
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 SnmpMibEntry
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
SnmpMibEntry
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 SnmpMibEntry
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 SnmpMibEntry
arc
- An OID arc.
true
if `arc' leads to a variable.public boolean isReadable(long arc)
isReadable
in class SnmpMibEntry
arc
- An OID arc.
true
if `arc' leads to a readable variable.public String getAttributeName(long id) throws SnmpStatusException
SnmpStatusException
public long getRowStatusId()
public String getRowStatusName()
protected int mapRowStatus(SnmpVarBind var, Object userData) throws SnmpStatusException
SnmpStatusException
public int getRowStatus(Object userData) throws SnmpStatusException
SnmpStatusException
public SnmpValue setRowStatus(int status, Object userData) throws SnmpStatusException
SnmpStatusException
public boolean isRowReady(Object userData) throws SnmpStatusException
SnmpStatusException
|
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 |