BEA Systems, Inc.

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 © 2002 BEA Systems, Inc. All Rights Reserved.

Field Summary
static long CACHING_STUB_SVUID
          Description of the Field
 
Fields inherited from class weblogic.management.configuration.ConfigurationMBean
CACHING_STUB_SVUID
 
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
Description of the Field
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)
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 - Description of the Exception
ConfigurationException - Description of the Exception

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 - Description of the Exception
ConfigurationException - Description of the Exception

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)
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 - Description of the Exception
ConfigurationException - Description of the Exception

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs81b