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 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://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` | `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:

  - The community name that the SNMP manager defines. The community name that you enter in this trap destination must match the name that the SNMP manager defines. The WebLogic SNMP agent sends this name when connecting to the manager.

  - The name that you specify in the WebLogic SNMP agent's Community Prefix. All SNMP managers must send this name when connecting to the WebLogic SNMP agent.

  Returns:
    The community value
  Default value:
    "public"

### 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
  Default value:
    "localhost"

### getPort

    public int getPort()

  The port on which the SNMP manager is listening.

  Returns:
    The port value
  Default value:
    162
  Minimum value:
    1
  Maximum value:
    65535

### 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()`

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