net.sf.snmpadaptor4j.api
Interface AttributeAccessor

All Known Implementing Classes:
CompositeDataAttributeAccessor, JvmAttributeAccessor, MBeanAttributeAccessor, SystemSnmpMib.ExternalNode, SystemSnmpMib.SysObjectIDExternalNode

public interface AttributeAccessor

Object representing an accessor to an attribute.

Author:
Jean-Philippe MINETTI

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.
 

Method Detail

getOid

SnmpOid getOid()
Returns the Object IDentifier (OID) to locate the attribute in the MIB.

Returns:
Object Identifier to locate the attribute in the MIB.

getSnmpDataType

SnmpDataType getSnmpDataType()
Returns the SNMP data type of attribute.

Returns:
SNMP data type of attribute.

getJmxDataType

Class<?> getJmxDataType()
Returns the data type of JMX attribute.

Returns:
Data type of JMX attribute.

getValue

Object getValue()
                throws Exception
Returns the value of attribute.

Returns:
Value of attribute.
Throws:
Exception - Exception if an error occurred.

setValue

void setValue(Object value)
              throws Exception
Sets the value of attribute.

Parameters:
value - New value of attribute.
Throws:
Exception - Exception if an error occurred.

isReadable

boolean isReadable()
Returns TRUE if the attribute can be read (for SNMP write and read community), FALSE otherwise.

Returns:
TRUE if the attribute can be read.

isWritable

boolean isWritable()
Returns TRUE if the attribute can be write (for SNMP write community), FALSE otherwise.

Returns:
TRUE if the attribute can be write.


Copyright © 2012-2013 snmpAdaptor4j. All Rights Reserved.