Oracle Fusion Middleware
Oracle WebLogic Server MBean Javadoc
11g Release 1 (10.3.3)

Part Number E13945-03

weblogic.management.configuration
Interface SNMPAttributeChangeMBean

All Superinterfaces:
ConfigurationMBean, SNMPTrapSourceMBean

public interface SNMPAttributeChangeMBean
extends SNMPTrapSourceMBean

This class describes the settings to receive MBean-attribute change notification.

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."

Changes take effect after you redeploy the module or restart the server.

Field Summary
 
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY
 
Method Summary
 String getAttributeMBeanName()
          The name of the MBean instance that you want to monitor.
 String getAttributeMBeanType()
          The MBean type that defines the attribute you want to monitor.
 String getAttributeName()
          The name of the attribute that you want to monitor.
 void setAttributeMBeanName(String mbeanname)
          Sets the value of the AttributeMBeanName attribute.
 void setAttributeMBeanType(String mbeantype)
          Sets the value of the AttributeMBeanType attribute.
 void setAttributeName(String attributeName)
          Sets the value of the AttributeName 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
 

Method Detail

getAttributeMBeanType

String getAttributeMBeanType()

The MBean type that defines the attribute you want to monitor. Do not include the MBean suffix. For example, specify Server to monitor a ServerMBean.

WebLogic Server does not support using Attribute Change notifications to monitor run-time attributes. Runtime MBeans always include the word Runtime in their names. For example, the ServerRuntime MBean provides access to runtime attributes while the Server MBean provides access to configuration attributes. To monitor changes in an MBean that includes Runtime in its name, use a String Monitor, Gauge Monitor, or Counter Monitor.

Returns:
The attributeMBeanType value
This method can NOT set a value of zero length.

setAttributeMBeanType

void setAttributeMBeanType(String mbeantype)
                           throws InvalidAttributeValueException,
                                  ConfigurationException

Sets the value of the AttributeMBeanType attribute.

Parameters:
mbeantype - The new attributeMBeanType value
Throws:
InvalidAttributeValueException
ConfigurationException
See Also:
SNMPAttributeChangeMBean.getAttributeMBeanType()

getAttributeMBeanName

String getAttributeMBeanName()

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 that you provided when you created the instance. To create unique MBean object names, WebLogic Server encodes several name-value pairs into each object name. One of these pairs is Name=name, and this is the value that you enter for MBean Name. For example:
"MedRec:Name=MedRecServer,
Type=ServerRuntime"

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

Returns:
The attributeMBeanName value

setAttributeMBeanName

void setAttributeMBeanName(String mbeanname)
                           throws InvalidAttributeValueException,
                                  ConfigurationException

Sets the value of the AttributeMBeanName attribute.

Parameters:
mbeanname - The new attributeMBeanName value
Throws:
InvalidAttributeValueException
ConfigurationException
See Also:
SNMPAttributeChangeMBean.getAttributeMBeanName()

getAttributeName

String getAttributeName()

The name of the attribute that you want to monitor. This attribute must be in the WebLogic Server MIB.

Returns:
The attributeName value
This method can NOT set a value of zero length.

setAttributeName

void setAttributeName(String attributeName)
                      throws InvalidAttributeValueException,
                             ConfigurationException

Sets the value of the AttributeName attribute.

Parameters:
attributeName - The new attributeName value
Throws:
InvalidAttributeValueException
ConfigurationException
See Also:
SNMPAttributeChangeMBean.getAttributeName()

Copyright 1996, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server MBean Javadoc
11g Release 1 (10.3.3)

Part Number E13945-03