public class MBeanAttributeMOScalarSupport extends AbstractMBeanSupport implements JMXScalarSupport
MBeanAttributeMOScalarSupport objects map zero or more MBean
attributes to their corresponding MOScalar instance.oid2MBeanMap, server| Constructor and Description |
|---|
MBeanAttributeMOScalarSupport(MBeanServerConnection server) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.snmp4j.smi.OID oid,
MBeanAttributeMOInfo mBean)
Adds a scalar to MBean attribute mapping.
|
void |
addAll(ObjectName mBeanName,
Object[][] mBeanScalarAttributeDescriptions)
Adds a list of scalar to attribute mappings for the specified 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 MBeanAttributeMOScalarSupport(MBeanServerConnection server)
public void add(org.snmp4j.smi.OID oid,
MBeanAttributeMOInfo mBean)
oid - the instance OID (including the .0) of the SNMP scalar object.mBean - an attribute description of a MBean.public void addAll(ObjectName mBeanName, Object[][] mBeanScalarAttributeDescriptions)
mBeanName - the name of the MBean providing the attributes.mBeanScalarAttributeDescriptions - an two dimensional array of scalar descriptions. Each description
contains three elements:
OID of the scalar SNMP instance,String, andClass of the attributes value.public int checkScalarValue(org.snmp4j.smi.OID scalarInstanceOID,
org.snmp4j.smi.Variable value)
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)
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)
setScalarValue in interface JMXScalarSupportscalarInstanceOID - the instance OID of the target object.value - the instance's new value.Copyright © 2015 SNMP4J.org. All rights reserved.