MySnmpCrawler API

snmp.mbean
Interface SnmpMBean

All Known Implementing Classes:
MBeanMeta

public interface SnmpMBean

This is the top level MBean interface that allows external components to access the MBean attribute.

Version:
$Revision: 0.1 $ $Date: 2004/03/09 06:03:53 $
Author:
Scott Cheng

Field Summary
static int ACCESS_BY_ATTR_NAME
           
static int ACCESS_BY_OID
           
 
Method Summary
 MBeanAttribute get(java.lang.String identifier, int accessType)
          Gets the MBeanAttribute object associating to the identifier in the MBean.
 MBeanAttribute set(java.lang.String identifier, int accessType, MBeanAttribute attr)
          Sets the MBeanAttribute object associating to the identifier in the MBean.
 

Field Detail

ACCESS_BY_OID

public static final int ACCESS_BY_OID
See Also:
Constant Field Values

ACCESS_BY_ATTR_NAME

public static final int ACCESS_BY_ATTR_NAME
See Also:
Constant Field Values
Method Detail

get

public MBeanAttribute get(java.lang.String identifier,
                          int accessType)
                   throws SnmpException
Gets the MBeanAttribute object associating to the identifier in the MBean.

Parameters:
identifier - The identifier string.
accessType - Either ACCESS_BY_OID or ACCESS_BY_ATTR_NAME.
Returns:
The MBeanAttribute object associating to the identifier.
Throws:
SnmpException - Thrown when any error occurs.

set

public MBeanAttribute set(java.lang.String identifier,
                          int accessType,
                          MBeanAttribute attr)
                   throws SnmpException
Sets the MBeanAttribute object associating to the identifier in the MBean.

Parameters:
identifier - The identifier string.
accessType - Either ACCESS_BY_OID or ACCESS_BY_ATTR_NAME.
attr - The MBeanAttribute object that contains the data to be set into the MBean object.
Returns:
The MBeanAttribute object associating to the identifier.
Throws:
SnmpException - Thrown when any error occurs.

MySnmpCrawler API