Oracle

weblogic.management.configuration
Interface SNMPTrapSourceMBean

All Superinterfaces:
ConfigurationMBean
All Known Subinterfaces:
SNMPAttributeChangeMBean, SNMPCounterMonitorMBean, SNMPGaugeMonitorMBean, SNMPJMXMonitorMBean, SNMPLogFilterMBean, SNMPStringMonitorMBean

public interface SNMPTrapSourceMBean
extends ConfigurationMBean

This MBean is the base of SNMP TRAP related configuration MBeans.

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.

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
 boolean addEnabledServer(ServerMBean server)
          Adds a feature to the EnabledServer attribute of the SNMPTrapSourceMBean object
 ServerMBean[] getEnabledServers()
          The list of target servers for trap generation.
 boolean removeEnabledServer(ServerMBean server)
           
 void setEnabledServers(ServerMBean[] serversEnabled)
          Sets the value of the EnabledServers attribute.
 
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
freezeCurrentValue, getName, getNotes, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet
 

Method Detail

getEnabledServers

ServerMBean[] getEnabledServers()

The list of target servers for trap generation. If no server is specified, no trap will be generated.

Returns:
The enabledServers value

setEnabledServers

void setEnabledServers(ServerMBean[] serversEnabled)
                       throws InvalidAttributeValueException,
                              ConfigurationException

Sets the value of the EnabledServers attribute.

Parameters:
serversEnabled - The new enabledServers value
Throws:
InvalidAttributeValueException
ConfigurationException
See Also:
SNMPTrapSourceMBean.getEnabledServers()

addEnabledServer

boolean addEnabledServer(ServerMBean server)
                         throws InvalidAttributeValueException,
                                ConfigurationException

Adds a feature to the EnabledServer attribute of the SNMPTrapSourceMBean object

Parameters:
server - The feature to be added to the EnabledServer attribute
Returns:
Throws:
InvalidAttributeValueException
ConfigurationException

removeEnabledServer

boolean removeEnabledServer(ServerMBean server)
                            throws InvalidAttributeValueException,
                                   ConfigurationException
Parameters:
server -
Returns:
Throws:
InvalidAttributeValueException
ConfigurationException

Documentation is available at
http://edocs.bea.com/wls/docs103
Copyright 2008 Oracle