BEA Systems, Inc.

Type-Safe Access to BEA WebLogic Server 9.2 MBeans (Deprecated)

(Methods marked with @since 9.0.0.0 are not available through the deprecated MBeanHome interface.)


weblogic.management.configuration
Interface SNMPTrapDestinationMBean

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

public interface SNMPTrapDestinationMBean
extends ConfigurationMBean

This MBean describes all the destinations to which SNMP traps can be sent.

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://www.oracle.com/technology/documentation/index.html.


Field Summary
 
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY
 
Method Summary
 String getCommunity()
          The password (community name) that WebLogic Server sends to the SNMP manager.
 String getHost()
          The DNS name or IP address of the computer on which the SNMP manager is running.
 int getPort()
          The port on which the SNMP manager is listening.
 void setCommunity(String community)
          Sets the value of the Community attribute.
 void setHost(String name)
          Sets the value of the Host attribute.
 void setPort(int port)
          Sets the value of the Port attribute.
 
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

getCommunity

public String getCommunity()

The password (community name) that WebLogic Server sends to the SNMP manager.

Note that there are two community names that are needed when WebLogic Server interacts with an SNMP manager:

Returns:
The community value

getHost

public String getHost()

The DNS name or IP address of the computer on which the SNMP manager is running.

The WebLogic SNMP agent sends trap notifications to the host and port that you specify on this tab.

Returns:
The host value

getPort

public int getPort()

The port on which the SNMP manager is listening.

Returns:
The port value

setCommunity

public void setCommunity(String community)
                  throws InvalidAttributeValueException,
                         ConfigurationException

Sets the value of the Community attribute.

Parameters:
community - The new community value
Throws:
InvalidAttributeValueException
ConfigurationException
See Also:
getCommunity()

setHost

public void setHost(String name)
             throws InvalidAttributeValueException,
                    ConfigurationException

Sets the value of the Host attribute.

Parameters:
name - The new host value
Throws:
InvalidAttributeValueException
ConfigurationException
See Also:
getHost()

setPort

public void setPort(int port)
             throws InvalidAttributeValueException,
                    ConfigurationException

Sets the value of the Port attribute.

Parameters:
port - The new port value
Throws:
InvalidAttributeValueException
ConfigurationException
See Also:
getPort()

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs92
Copyright 2006 BEA Systems Inc.