Overview | Package | Class | Use | Tree | Deprecated | Index | Help
|  | BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

WebLogic Server 8.1 API Reference

## weblogic.management.configuration
Interface SNMPTrapDestinationMBean

public interface SNMPTrapDestinationMBean
extends ConfigurationMBean

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

Author:
  Copyright © 2004 BEA Systems, Inc. All Rights Reserved.

Field Summary
`static long` | `CACHING_STUB_SVUID`

Fields inherited from class weblogic.management.configuration.ConfigurationMBean
`CACHING_STUB_SVUID, DEFAULT_EMPTY_BYTE_ARRAY`

Method Summary
`java.lang.String` | `getCommunity()` Defines the SNMP trap community name.
`java.lang.String` | `getHost()` Defines a string that contains either a hostname or IP address for the machine where the SNMP manager is located.
`int` | `getPort()` Defines the port that is used for sending SNMP trap notifications to the target SNMP manager.
`void` | `setCommunity(java.lang.String community)` Sets the community attribute of the SNMPTrapDestinationMBean object
`void` | `setHost(java.lang.String name)` Sets the host attribute of the SNMPTrapDestinationMBean object
`void` | `setPort(int port)` Sets the port attribute of the SNMPTrapDestinationMBean object

Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
`freezeCurrentValue, getNotes, restoreDefaultValue, setComments, setDefaultedMBean, setNotes, setPersistenceEnabled`

Methods inherited from interface weblogic.management.WebLogicMBean
`getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParent`

Methods inherited from interface javax.management.DynamicMBean
`getAttribute, getAttributes, invoke, setAttribute, setAttributes`

Methods inherited from interface javax.management.MBeanRegistration
`postDeregister, postRegister, preRegister`

Methods inherited from interface javax.management.NotificationBroadcaster
`addNotificationListener, getNotificationInfo, removeNotificationListener`

Field Detail

### CACHING_STUB_SVUID

    public static final long CACHING_STUB_SVUID

Method Detail

### getHost

    public java.lang.String getHost()

  Defines a string that contains either a hostname or IP address for the machine where the SNMP manager is located. This host machine is the target for SNMP trap notifications sent by the WebLogic SNMP agent.

  Default Value: localhost
  Legal Value: (value != null) && (value.trim().length() > 0)
  Secure Value: 127.0.0.1
  Returns:
    The host value

### setHost

    public void setHost(java.lang.String name)
                 throws javax.management.InvalidAttributeValueException,
                        ConfigurationException

  Sets the host attribute of the SNMPTrapDestinationMBean object

  Parameters:
    `name` - The new host value
  Throws:
    javax.management.InvalidAttributeValueException -
    ConfigurationException -

### getPort

    public int getPort()

  Defines the port that is used for sending SNMP trap notifications to the target SNMP manager.

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

### setPort

    public void setPort(int port)
                 throws javax.management.InvalidAttributeValueException,
                        ConfigurationException

  Sets the port attribute of the SNMPTrapDestinationMBean object

  Parameters:
    `port` - The new port value
  Throws:
    javax.management.InvalidAttributeValueException -
    ConfigurationException -

### getCommunity

    public java.lang.String getCommunity()

  Defines the SNMP trap community name. The community name functions as a password for sending trap notifications to the target SNMP manager.

  Default Value: "public"
  Legal Value: (value != null) && (value.trim().length() > 0)
  Secure Value: null
  Returns:
    The community value

### setCommunity

    public void setCommunity(java.lang.String community)
                      throws javax.management.InvalidAttributeValueException,
                             ConfigurationException

  Sets the community attribute of the SNMPTrapDestinationMBean object

  Parameters:
    `community` - The new community value
  Throws:
    javax.management.InvalidAttributeValueException -
    ConfigurationException -

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Documentation is available at http://e-docs.bea.com/wls/docs81
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD