|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.snmp4j.agent.mo.jmx.AbstractMBeanSupport
org.snmp4j.agent.mo.jmx.MBeanActionMOScalarSupport
public class MBeanActionMOScalarSupport
A MBean action is basically a method call on an MBean. An action in SNMP is normally modeled as an enumeration where each value specifies a possible action or a parameter set for an action. On the other hand, SNMP enumerations are also used to indicate the states of a managed object.
The MBeanActionMOScalarSupport class provides a mapping between
these two action models for an arbitrary number of scalar instances and
corresponding actions.
| Field Summary |
|---|
| Fields inherited from class org.snmp4j.agent.mo.jmx.AbstractMBeanSupport |
|---|
oid2MBeanMap, server |
| Constructor Summary | |
|---|---|
MBeanActionMOScalarSupport(javax.management.MBeanServerConnection server)
|
|
| Method Summary | |
|---|---|
void |
add(org.snmp4j.smi.OID oid,
MBeanActionMOInfo mBean)
Adds an action mapping to the supported mappings. |
void |
addAll(javax.management.ObjectName mBeanName,
java.lang.Object[][] mBeanScalarAttributeDescriptions)
Adds a list of action mappings related to a single MBean. |
int |
checkScalarValue(org.snmp4j.smi.OID scalarInstanceOID,
org.snmp4j.smi.Variable value)
Checks the value of the specified object instance and type. |
int |
getScalarValue(org.snmp4j.smi.OID scalarInstanceOID,
org.snmp4j.smi.Variable value)
Gets the actual value for the specified object instance and type. |
int |
setScalarValue(org.snmp4j.smi.OID scalarInstanceOID,
org.snmp4j.smi.Variable value)
Sets the value of the specified object instance and type. |
| Methods inherited from class org.snmp4j.agent.mo.jmx.AbstractMBeanSupport |
|---|
getMBeanMOInfo, removeMBean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MBeanActionMOScalarSupport(javax.management.MBeanServerConnection server)
| Method Detail |
|---|
public void add(org.snmp4j.smi.OID oid,
MBeanActionMOInfo mBean)
oid - the instance OID of a scalar SNMP variable.mBean - the action mapping information of the MBean actions/states.
public void addAll(javax.management.ObjectName mBeanName,
java.lang.Object[][] mBeanScalarAttributeDescriptions)
mBeanName - the ObjectName of the MBean providing the actions.mBeanScalarAttributeDescriptions - an two dimensional array of action descriptions. Each description
contains three elements:
public int checkScalarValue(org.snmp4j.smi.OID scalarInstanceOID,
org.snmp4j.smi.Variable value)
JMXScalarSupport
checkScalarValue in interface JMXScalarSupportscalarInstanceOID - the instance OID of the target object.value - the instance's new value.
public int getScalarValue(org.snmp4j.smi.OID scalarInstanceOID,
org.snmp4j.smi.Variable value)
JMXScalarSupport
getScalarValue in interface JMXScalarSupportscalarInstanceOID - the instance OID of the target object.value - the instance to hold the return value.
public int setScalarValue(org.snmp4j.smi.OID scalarInstanceOID,
org.snmp4j.smi.Variable value)
JMXScalarSupport
setScalarValue in interface JMXScalarSupportscalarInstanceOID - the instance OID of the target object.value - the instance's new value.
|
Copyright 2006-2007 Frank Fock (SNMP4J.org) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||