|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jaw.snmp.agent.SnmpMibAgent
The SnmpMibAgent
is an abstract class for representing a SNMP agent.
The class is used by the
SNMP adaptor
as the entry point in the SNMP agent to query.
Field Summary | |
protected Framework |
cmf
The reference to the JDMK framework. |
protected java.lang.String |
mibName
The name of the MIB. |
Constructor Summary | |
SnmpMibAgent()
Default constructor. |
Method Summary | |
abstract void |
check(java.util.Vector list)
Checks if a set operation can be performed. |
abstract void |
get(java.util.Vector list,
int version)
Processes a get operation. |
java.lang.Boolean |
getBindingState()
Indicates whether or not the MIB module is binded to a Snmp adaptor. |
abstract void |
getBulk(java.util.Vector list,
int nonRepeat,
int maxRepeat,
int version)
Processes a getBulk operation. |
void |
getBulkWithGetNext(java.util.Vector list,
int nonRepeat,
int maxRepeat,
int version)
Processes a getBulk operation using call to getNext . |
Framework |
getFramework()
Gets the reference to the JDMK framework in which the SNMP MIB is registered. |
java.lang.String |
getMibName()
Gets the mib name. |
abstract void |
getNext(java.util.Vector list,
int version)
Processes a getNext operation. |
abstract long[] |
getRootOid()
Gets the root object identifier of the MIB. |
SnmpMibHandlerSrvIf |
getSnmpAdaptor()
Gets the reference to the SNMP adaptor through which the MIB is accessible. |
java.lang.String |
getSnmpAdaptorName()
Gets the logicial name of the adaptor to which the mib is binded. |
abstract void |
init()
Initializes the MIB (with no registration of the M-beans into the JDMK framework). |
abstract void |
initCmf(Framework cmf,
ObjectName name)
Initializes the MIB but each single M-bean representing the MIB is inserted into the JDMK framework. |
abstract void |
set(java.util.Vector list,
int version)
Processes a set operation. |
void |
setSnmpAdaptor(SnmpMibHandlerSrvIf stack)
Sets the reference to the SNMP adaptor through which the MIB will be SNMP accessible. |
void |
setSnmpAdaptorName(java.lang.String name)
Sets the reference to the SNMP adaptor through which the MIB will be SNMP accessible. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.lang.String mibName
protected Framework cmf
Constructor Detail |
public SnmpMibAgent()
Method Detail |
public abstract void init() throws java.lang.IllegalAccessException
public abstract void initCmf(Framework cmf, ObjectName name) throws java.lang.IllegalAccessException, ServiceNotFoundException, InstanceAlreadyExistException
cmf
- The core management framework to register the service with.name
- The object name.public Framework getFramework()
public SnmpMibHandlerSrvIf getSnmpAdaptor()
public void setSnmpAdaptor(SnmpMibHandlerSrvIf stack)
stack
- The SNMP adaptor.public void setSnmpAdaptorName(java.lang.String name) throws InstanceNotFoundException, java.lang.IllegalAccessException, ServiceNotFoundException
name
- The name of the SNMP adaptor.public java.lang.String getSnmpAdaptorName()
public java.lang.Boolean getBindingState()
public abstract void get(java.util.Vector list, int version) throws SnmpStatusException
get
operation.list
- The variable list to be retrieved. A vector of
SnmpVarBind
objects.version
- The version of the protocol for the requested operation.public abstract void getBulk(java.util.Vector list, int nonRepeat, int maxRepeat, int version) throws SnmpStatusException
getBulk
operation.list
- The variable list to be retrieved. A vector of
SnmpVarBind
objects.nonRepeat
- The number of variables, starting with the dirst variable in the
variable-bindings, for which a single lexicographic successor is requested.maxRepeat
- The number of lexicographic successors requested for each of
the last R variables. R is the number of variables following the first nonRepeat
variables for which multiple lexicographic successors are requested.version
- The version of the protocol for the requested operation.public abstract void getNext(java.util.Vector list, int version) throws SnmpStatusException
getNext
operation.list
- The variable list to be retrieved. A vector of
SnmpVarBind
objects.version
- The version of the protocol for the requested operation.public abstract void set(java.util.Vector list, int version) throws SnmpStatusException
set
operation.list
- The variable list to be set. A vector of
SnmpVarBind
objects.version
- The version of the protocol for the requested operation.public abstract void check(java.util.Vector list) throws SnmpStatusException
set
operation can be performed.
If the operation can not be performed, the method should emit a
SnmpStatusException
.list
- The variable list to be set. A vector of
SnmpVarBind
objects.public abstract long[] getRootOid()
The root object identifier is the object identifier uniquely identifying the MIB.
public java.lang.String getMibName()
public void getBulkWithGetNext(java.util.Vector list, int nonRepeat, int maxRepeat, int version) throws SnmpStatusException
getBulk
operation using call to getNext
.
The method implements the getBulk
operation by calling appropriately the getNext
method.list
- The variable list to be retrieved. A vector of
SnmpVarBind
objects.nonRepeat
- The number of variables, starting with the dirst variable in the
variable-bindings, for which a single lexicographic successor is requested.maxRepeat
- The number of lexicographic successors requested for each of
the last R variables. R is the number of variables following the first nonRepeat
variables for which multiple lexicographic successors are requested.version
- The version of the protocol for the requested operation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |