public class MBeanActionMOScalarSupport extends AbstractMBeanSupport implements JMXScalarSupport
The MBeanActionMOScalarSupport class provides a mapping between
these two action models for an arbitrary number of scalar instances and
corresponding actions.
oid2MBeanMap, server| Constructor and Description |
|---|
MBeanActionMOScalarSupport(MBeanServerConnection server) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.snmp4j.smi.OID oid,
MBeanActionMOInfo mBean)
Adds an action mapping to the supported mappings.
|
void |
addAll(ObjectName mBeanName,
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.
|
getMBeanMOInfo, removeMBeanpublic MBeanActionMOScalarSupport(MBeanServerConnection server)
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(ObjectName mBeanName, 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)
JMXScalarSupportcheckScalarValue 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)
JMXScalarSupportgetScalarValue 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)
JMXScalarSupportsetScalarValue in interface JMXScalarSupportscalarInstanceOID - the instance OID of the target object.value - the instance's new value.Copyright © 2015 SNMP4J.org. All rights reserved.