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 SNMPCounterMonitorMBean

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

public interface SNMPCounterMonitorMBean
extends SNMPJMXMonitorMBean

This class describes the criteria for a Counter-based Monitor. A trap will be generated when this criteria is satisfied.

### 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
`int` | `getModulus()` An integer value to be subtracted from the threshold value when the threshold value is crossed.
`int` | `getOffset()` An integer value to be added to the threshold value when the threshold is crossed.
`int` | `getThreshold()` Specifies a value that triggers the Counter Monitor to generate a trap.
`void` | `setModulus(int modulus)` Sets the value of the Modulus attribute.
`void` | `setOffset(int offset)` Sets the value of the Offset attribute.
`void` | `setThreshold(int threshold)` Sets the value of the Threshold attribute.

Methods inherited from interface weblogic.management.configuration.SNMPJMXMonitorMBean
`getMonitoredAttributeName, getMonitoredMBeanName, getMonitoredMBeanType, getPollingInterval, setMonitoredAttributeName, setMonitoredMBeanName, setMonitoredMBeanType, setPollingInterval`

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

### getModulus

    public int getModulus()

  An integer value to be subtracted from the threshold value when the threshold value is crossed.

  If Modulus is 0, a trap is generated each time the agent polls the monitored attribute and its value still exceeds or equals the threshold value.

  If Modulus is larger than 0, the value of the modulus is subtracted from the threshold each time the threshold is crossed.

  Returns:
    The modulus value
  Minimum value:
    0

### getOffset

    public int getOffset()

  An integer value to be added to the threshold value when the threshold is crossed.

  If Offset is `0`, a trap is generated each time the agent polls the monitored attribute and its value still exceeds or equals the value in the Threshold.

  If Offset is larger than `0`, the value of the offset is added to the threshold each time the threshold is crossed.

  For example, if you set Threshold to 1000 and Offset to 2000, when the observed attribute exceeds 1000, the Counter Monitor sends a notification and increases the threshold to 3000. When the observed attribute exceeds 3000, the Counter Monitor sends a notification and increases the threshold again to 5000.

  Returns:
    The offset value
  Minimum value:
    0

### getThreshold

    public int getThreshold()

  Specifies a value that triggers the Counter Monitor to generate a trap.

  The Counter Monitor generates a trap each time it polls the value and determines that the value has transitioned from below the threshold to at or above the threshold. While the value remains at or above the threshold, the Counter Monitor does not generate additional traps.

  If the threshold is 0, the counter monitor to generates a trap each time it polls the value, unless the value is negative.

  Returns:
    The threshold value
  Minimum value:
    0

### setModulus

    public void setModulus(int modulus)

  Sets the value of the Modulus attribute.

  Parameters:
    `modulus` - The new modulus value
  See Also:
    `getModulus()`

### setOffset

    public void setOffset(int offset)

  Sets the value of the Offset attribute.

  Parameters:
    `offset` - The new offset value
  See Also:
    `getOffset()`

### setThreshold

    public void setThreshold(int threshold)

  Sets the value of the Threshold attribute.

  Parameters:
    `threshold` - The new threshold value
  See Also:
    `getThreshold()`

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