|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SnmpMibSubRequest
This interface models an SNMP sub request to be performed on a specific
SNMP MIB node. The node involved can be either an SNMP group, an SNMP table,
or an SNMP table entry (conceptual row). The conceptual row may or may not
already exist. If the row did not exist at the time when the request
was received, the isNewEntry()
method will return
true
.
Objects implementing this interface will be allocated by the SNMP engine. You will never need to implement this interface. You will only use it.
Method Summary | |
---|---|
Enumeration |
getElements()
Return the list of varbind to be handled by the SNMP MIB node. |
SnmpOid |
getEntryOid()
Return the part of the OID identifying the table entry involved. |
SnmpVarBind |
getRowStatusVarBind()
Return the varbind that holds the RowStatus variable. |
Vector |
getSubList()
Return the list of varbind to be handled by the SNMP MIB node. |
boolean |
isNewEntry()
Indicate whether the entry involved is a new entry. |
void |
registerCheckException(SnmpVarBind varbind,
SnmpStatusException exception)
This method should be called when a status exception needs to be raised when checking a given varbind for an SNMP SET request. |
void |
registerGetException(SnmpVarBind varbind,
SnmpStatusException exception)
This method should be called when a status exception needs to be raised for a given varbind of an SNMP GET request. |
void |
registerSetException(SnmpVarBind varbind,
SnmpStatusException exception)
This method should be called when a status exception needs to be raised for a given varbind of an SNMP SET request. |
Methods inherited from interface com.sun.management.snmp.agent.SnmpMibRequest |
---|
addVarBind, getAccessContextName, getContextName, getEngine, getPdu, getPrincipal, getRequestPduVersion, getSecurityLevel, getSecurityModel, getSize, getUserData, getVarIndex, getVersion |
Method Detail |
---|
Enumeration getElements()
Note:
getElements
in interface SnmpMibRequest
SnmpVarBind
Vector getSubList()
Note:
getSubList
in interface SnmpMibRequest
SnmpVarBind
SnmpOid getEntryOid()
SnmpOid
or null
if the request is not directed to an entry.boolean isNewEntry()
true
if the entry was not
found when the request was processed. As a consequence,
true
means that either the entry does not exist yet,
or it has been created while processing this request.
The result of this method is only significant when an entry
is involved.
true
If the entry did not exist,
or false
if the entry involved was found.SnmpVarBind getRowStatusVarBind()
isRowStatus()
method generated by mibgen
on SnmpMibTable
derivatives.
SnmpMibTable
).
null
means that no such varbind could be
identified.void registerGetException(SnmpVarBind varbind, SnmpStatusException exception) throws SnmpStatusException
varbind
- The varbind for which the exception is
registered. Note that this varbind must have
been obtained from the enumeration returned by
getElements()
, or from the vector
returned by getSubList()
exception
- The exception to be registered for the given varbind.
SnmpStatusException
void registerSetException(SnmpVarBind varbind, SnmpStatusException exception) throws SnmpStatusException
varbind
- The varbind for which the exception is
registered. Note that this varbind must have
been obtained from the enumeration returned by
getElements()
, or from the vector
returned by getSubList()
exception
- The exception to be registered for the given varbind.
SnmpStatusException
void registerCheckException(SnmpVarBind varbind, SnmpStatusException exception) throws SnmpStatusException
varbind
- The varbind for which the exception is
registered. Note that this varbind must have
been obtained from the enumeration returned by
getElements()
, or from the vector
returned by getSubList()
exception
- The exception to be registered for the given varbind.
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 |