Overview | Package | Class | Use | Tree | Deprecated | Index | Help
|  | BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Type-Safe Access to BEA WebLogic Server 9.1 MBeans (Deprecated)
(Methods marked with @since 9.0.0.0 or later are not available through the deprecated `MBeanHome` interface.)

## weblogic.management.configuration
Interface SNMPJMXMonitorMBean

All Superinterfaces:
  ConfigurationMBean, weblogic.descriptor.DescriptorBean, DynamicMBean, MBeanRegistration, NotificationBroadcaster, weblogic.descriptor.SettableBean, SNMPTrapSourceMBean, weblogic.management.WebLogicMBean

All Known Subinterfaces:
  SNMPCounterMonitorMBean, SNMPGaugeMonitorMBean, SNMPStringMonitorMBean

public interface SNMPJMXMonitorMBean
extends SNMPTrapSourceMBean

This is a base class for Monitor based trap configuration MBeans : SNMPCounterMonitorMBean, SNMPStringMonitorMBean and SNMPGaugeMonitorMBean.

### Deprecation of MBeanHome and Type-Safe Interfaces

This is a type-safe interface for a WebLogic Server MBean, which you can import into your client classes and access through `weblogic.management.MBeanHome`. As of 9.0, the `MBeanHome` interface and all type-safe interfaces for WebLogic Server MBeans are deprecated. Instead, client classes that interact with WebLogic Server MBeans should use standard JMX design patterns in which clients use the `javax.management.MBeanServerConnection` interface to discover MBeans, attributes, and attribute types at runtime. For more information, see "Developing Manageable Applications with JMX" on http://edocs.bea.com.

  Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

Field Summary

Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
`DEFAULT_EMPTY_BYTE_ARRAY`

Method Summary
`String` | `getMonitoredAttributeName()` The name of an MBean attribute to monitor.
`String` | `getMonitoredMBeanName()` The name of the MBean instance that you want to monitor.
`String` | `getMonitoredMBeanType()` The MBean type that defines the attribute you want to monitor.
`int` | `getPollingInterval()` The frequency (in seconds) that WebLogic Server checks the attribute value.
`void` | `setMonitoredAttributeName(String attributeName)` Sets the value of the MonitoredAttributeName attribute.
`void` | `setMonitoredMBeanName(String mbeanname)` Sets the value of the MonitoredMBeanName attribute.
`void` | `setMonitoredMBeanType(String mbeantype)` Sets the value of the MonitoredMBeanType attribute.
`void` | `setPollingInterval(int interval)` Sets the value of the PollingInterval attribute.

Methods inherited from interface weblogic.management.configuration.SNMPTrapSourceMBean
`addEnabledServer, getEnabledServers, removeEnabledServer, setEnabledServers`

Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
`freezeCurrentValue, getName, getNotes, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet`

Methods inherited from interface weblogic.management.WebLogicMBean
`getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent`

Methods inherited from interface javax.management.DynamicMBean
`getAttribute, getAttributes, invoke, setAttribute, setAttributes`

Methods inherited from interface javax.management.MBeanRegistration
`postDeregister, postRegister, preDeregister, preRegister`

Methods inherited from interface javax.management.NotificationBroadcaster
`addNotificationListener, getNotificationInfo, removeNotificationListener`

Methods inherited from interface weblogic.descriptor.DescriptorBean
`addBeanUpdateListener, addPropertyChangeListener, createChildCopy, createChildCopyIncludingObsolete, getDescriptor, getParentBean, isEditable, removeBeanUpdateListener, removePropertyChangeListener`

Method Detail

### getMonitoredAttributeName

    public String getMonitoredAttributeName()

  The name of an MBean attribute to monitor. This attribute must be in the WebLogic Server MIB.

  Returns:
    The monitoredAttributeName value

### getMonitoredMBeanName

    public String getMonitoredMBeanName()

  The name of the MBean instance that you want to monitor. If you leave the name undefined, WebLogic Server monitors all instances of the MBean type that you specify in Monitored MBean Type.

  Do not enter the full JMX object name of the MBean instance. Instead, enter only the value of the object name's `Name=name` name-value pair. To create unique MBean object names, WebLogic Server encodes several name-value pairs into each object name. One of these pairs is `Name=name`. For example:
  `"MedRec:Name=MedRecServer,
  Type=ServerRuntime"`

  In the previous example, specify `MedRecServer` as the name of the MBean instance.

  Returns:
    The monitoredMBeanName value

### getMonitoredMBeanType

    public String getMonitoredMBeanType()

  The MBean type that defines the attribute you want to monitor. Do not include the `MBean` suffix. For example, `ServerRuntime`.

  Returns:
    The monitoredMBeanType value

### getPollingInterval

    public int getPollingInterval()

  The frequency (in seconds) that WebLogic Server checks the attribute value.

  Returns:
    The pollingInterval value
  Default value:
    1
  Minimum value:
    1
  Maximum value:
    65535

### setMonitoredAttributeName

    public void setMonitoredAttributeName(String attributeName)
                                   throws InvalidAttributeValueException,
                                          ConfigurationException

  Sets the value of the MonitoredAttributeName attribute.

  Parameters:
    `attributeName` - The new monitoredAttributeName value
  Throws:
    `InvalidAttributeValueException`
    `ConfigurationException`
  See Also:
    `getMonitoredAttributeName()`

### setMonitoredMBeanName

    public void setMonitoredMBeanName(String mbeanname)
                               throws InvalidAttributeValueException,
                                      ConfigurationException

  Sets the value of the MonitoredMBeanName attribute.

  Parameters:
    `mbeanname` - The new monitoredMBeanName value
  Throws:
    `InvalidAttributeValueException`
    `ConfigurationException`
  See Also:
    `getMonitoredMBeanName()`

### setMonitoredMBeanType

    public void setMonitoredMBeanType(String mbeantype)
                               throws InvalidAttributeValueException,
                                      ConfigurationException

  Sets the value of the MonitoredMBeanType attribute.

  Parameters:
    `mbeantype` - The new monitoredMBeanType value
  Throws:
    `InvalidAttributeValueException`
    `ConfigurationException`
  See Also:
    `getMonitoredMBeanType()`

### setPollingInterval

    public void setPollingInterval(int interval)
                            throws InvalidAttributeValueException,
                                   ConfigurationException

  Sets the value of the PollingInterval attribute.

  Parameters:
    `interval` - The new pollingInterval value
  Throws:
    `InvalidAttributeValueException`
    `ConfigurationException`
  See Also:
    `getPollingInterval()`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Documentation is available at http://e-docs.bea.com/wls/docs91 Copyright 2005 BEA Systems Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD