|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.snmpadaptor4j.core.accessor.CompositeDataAttributeAccessor
public final class CompositeDataAttributeAccessor
Object representing an accessor to an attribute for CompositeData
.
Constructor Summary | |
---|---|
CompositeDataAttributeAccessor(SnmpOid oid,
MBeanServer server,
ObjectName mBeanName,
String attributeName,
String attributeKey,
SnmpDataType snmpDataType,
Class<?> jmxDataType)
Constructor. |
Method Summary | |
---|---|
Class<?> |
getJmxDataType()
Returns the data type of JMX attribute. |
SnmpOid |
getOid()
Returns the Object IDentifier (OID) to locate the attribute in the MIB. |
SnmpDataType |
getSnmpDataType()
Returns the SNMP data type of attribute. |
Object |
getValue()
Returns the value of attribute. |
boolean |
isReadable()
Returns TRUE if the attribute can be read (for SNMP write and read community), FALSE otherwise. |
boolean |
isWritable()
Returns TRUE if the attribute can be write (for SNMP write community), FALSE otherwise. |
void |
setValue(Object value)
Sets the value of attribute. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CompositeDataAttributeAccessor(SnmpOid oid, MBeanServer server, ObjectName mBeanName, String attributeName, String attributeKey, SnmpDataType snmpDataType, Class<?> jmxDataType)
oid
- Object IDentifier (OID) to locate the attribute in the MIB.server
- JMX agent where the MBean was registered.mBeanName
- MBean name.attributeName
- Attribute name of CompositeData
.attributeKey
- Attribute key of value.snmpDataType
- SNMP data type of attribute.jmxDataType
- Data type of JMX attribute.Method Detail |
---|
public SnmpOid getOid()
AttributeAccessor
getOid
in interface AttributeAccessor
public SnmpDataType getSnmpDataType()
AttributeAccessor
getSnmpDataType
in interface AttributeAccessor
public Class<?> getJmxDataType()
AttributeAccessor
getJmxDataType
in interface AttributeAccessor
public Object getValue() throws Exception
AttributeAccessor
getValue
in interface AttributeAccessor
Exception
- Exception if an error occurred.public void setValue(Object value)
AttributeAccessor
setValue
in interface AttributeAccessor
value
- New value of attribute.public boolean isReadable()
AttributeAccessor
TRUE
if the attribute can be read (for SNMP write and read community), FALSE
otherwise.
isReadable
in interface AttributeAccessor
TRUE
if the attribute can be read.public boolean isWritable()
AttributeAccessor
TRUE
if the attribute can be write (for SNMP write community), FALSE
otherwise.
isWritable
in interface AttributeAccessor
TRUE
if the attribute can be write.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |