BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.management.configuration
Interface SNMPAgentMBean


public interface SNMPAgentMBean
extends ConfigurationMBean

The MBean representing the SNMP Agent Configuration. The SNMP Agent MBean is a singleton for the SNMP Agent Configuration and does not belong to any configuration.

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

Field Summary
static int DEBUG_CRITICAL
           
static int DEBUG_FATAL
           
static int DEBUG_NONCRITICAL
           
static int DEBUG_NONE
           
 
Method Summary
 boolean addSNMPAttributeChange(SNMPAttributeChangeMBean attrchange)
           
 boolean addSNMPCounterMonitor(SNMPCounterMonitorMBean countermonitor)
           
 boolean addSNMPGaugeMonitor(SNMPGaugeMonitorMBean gaugemonitor)
           
 boolean addSNMPLogFilter(SNMPLogFilterMBean logfilter)
           
 boolean addSNMPProxy(SNMPProxyMBean snmpProxy)
           
 boolean addSNMPStringMonitor(SNMPStringMonitorMBean stringmonitor)
           
 boolean addTargetedTrapDestination(SNMPTrapDestinationMBean trapdestination)
           
 java.lang.String getCommunityPrefix()
          A prefix string which is used to form SNMP Community name.
 int getDebugLevel()
          Debug level 0-NoDebug 1-Fatal 2-Critical 3-Non-Critical
 int getMibDataRefreshInterval()
          An interval, in seconds.
 int getServerStatusCheckIntervalFactor()
          A factor n, used to calculate an interval in seconds from MibDataRefreshInterval.
 SNMPAttributeChangeMBean[] getSNMPAttributeChanges()
          SNMPAttributeChangeMBeans which describe the MBean type and Attribute name for which attribute change trap should be sent when an attribute change is observed.
 SNMPCounterMonitorMBean[] getSNMPCounterMonitors()
          SNMP CounterMonitorMbeans which describe the criteria for generating trap based on JMX CounterMonitor.
 SNMPGaugeMonitorMBean[] getSNMPGaugeMonitors()
          SNMP GaugeMonitorMbeans which describe the criteria for generating trap based on JMX GaugeMonitor.
 SNMPLogFilterMBean[] getSNMPLogFilters()
          SNMPLogFilterMBeans which describe filters for generating traps based on server log messages.
 int getSNMPPort()
          The port on which the agent will listen for SNMP requests.
 SNMPProxyMBean[] getSNMPProxies()
          SNMP Agents which will be proxied by this Master SNMP Agent.
 SNMPStringMonitorMBean[] getSNMPStringMonitors()
          SNMP StringMonitorMbeans which describe the criteria for generating trap based on JMX StringMonitor.
 SNMPTrapDestinationMBean[] getTargetedTrapDestinations()
           
 boolean isEnabled()
          Is SNMP service to be activated on the Admin server.
 boolean removeSNMPAttributeChange(SNMPAttributeChangeMBean attrchange)
           
 boolean removeSNMPCounterMonitor(SNMPCounterMonitorMBean countermonitor)
           
 boolean removeSNMPGaugeMonitor(SNMPGaugeMonitorMBean gaugemonitor)
           
 boolean removeSNMPLogFilter(SNMPLogFilterMBean logfilter)
           
 boolean removeSNMPProxy(SNMPProxyMBean snmpProxy)
           
 boolean removeSNMPStringMonitor(SNMPStringMonitorMBean stringmonitor)
           
 boolean removeTargetedTrapDestination(SNMPTrapDestinationMBean trapdestination)
           
 void setCommunityPrefix(java.lang.String prefix)
           
 void setDebugLevel(int debugLevel)
           
 void setEnabled(boolean flag)
           
 void setMibDataRefreshInterval(int interval)
           
 void setServerStatusCheckIntervalFactor(int factor)
           
 void setSNMPAttributeChanges(SNMPAttributeChangeMBean[] snmpAttributeChanges)
           
 void setSNMPCounterMonitors(SNMPCounterMonitorMBean[] snmpCounterMonitors)
           
 void setSNMPGaugeMonitors(SNMPGaugeMonitorMBean[] snmpGaugeMonitors)
           
 void setSNMPLogFilters(SNMPLogFilterMBean[] snmpLogFilters)
           
 void setSNMPPort(int port)
           
 void setSNMPProxies(SNMPProxyMBean[] snmpProxys)
           
 void setSNMPStringMonitors(SNMPStringMonitorMBean[] snmpStringMonitors)
           
 void setTargetedTrapDestinations(SNMPTrapDestinationMBean[] snmpTrapDestinations)
           
 void setUserDefinedMib(java.lang.String mibName)
           
 
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
getNotes, 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, preDeregister, preRegister
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 

Field Detail

DEBUG_NONE

public static final int DEBUG_NONE

DEBUG_FATAL

public static final int DEBUG_FATAL

DEBUG_CRITICAL

public static final int DEBUG_CRITICAL

DEBUG_NONCRITICAL

public static final int DEBUG_NONCRITICAL
Method Detail

isEnabled

public boolean isEnabled()
Is SNMP service to be activated on the Admin server.

SNMP service can be activated by setting an attribute Enabled to "true" under SNMPAgent in Config.xml.

Default Value: false
Returns:
True if the SNMP service is activated.

setEnabled

public void setEnabled(boolean flag)


getSNMPPort

public int getSNMPPort()
The port on which the agent will listen for SNMP requests.

Default Value: 161
Legal Minimum Value: 1
Legal Maximum Value: 65535

setSNMPPort

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


getMibDataRefreshInterval

public int getMibDataRefreshInterval()
An interval, in seconds. This is the minimum amount of time all MIB values are cached before the agent attempts to re-fetch them from the server when asked next time.

Default Value: 120
Legal Minimum Value: 30
Legal Maximum Value: 65535

setMibDataRefreshInterval

public void setMibDataRefreshInterval(int interval)
                               throws javax.management.InvalidAttributeValueException,
                                      ConfigurationException


getServerStatusCheckIntervalFactor

public int getServerStatusCheckIntervalFactor()
A factor n, used to calculate an interval in seconds from MibDataRefreshInterval.

interval = n * MibDataRefreshInterval (in seconds).

It defines an interval at which to check the server status.

Default Value: 1
Legal Minimum Value: 1
Legal Maximum Value: 65535

setServerStatusCheckIntervalFactor

public void setServerStatusCheckIntervalFactor(int factor)
                                        throws javax.management.InvalidAttributeValueException,
                                               ConfigurationException


getCommunityPrefix

public java.lang.String getCommunityPrefix()
A prefix string which is used to form SNMP Community name.

To form the community name, SNMP managers have to append "@" and the server name or domain name to the prefix.

SNMP Community Name = CommunityPrefix[@{ServerName | DomainName}]

Default Value: "public"
Legal Value: (value != null) && (value.trim().length() > 0)
Legal NULL: false;

setCommunityPrefix

public void setCommunityPrefix(java.lang.String prefix)
                        throws javax.management.InvalidAttributeValueException,
                               ConfigurationException


setUserDefinedMib

public void setUserDefinedMib(java.lang.String mibName)


getDebugLevel

public int getDebugLevel()
Debug level 0-NoDebug 1-Fatal 2-Critical 3-Non-Critical

Default Value: DEBUG_NONE
Legal Values: DEBUG_NONE, DEBUG_FATAL, DEBUG_CRITICAL, DEBUG_NONCRITICAL

setDebugLevel

public void setDebugLevel(int debugLevel)
                   throws javax.management.InvalidAttributeValueException,
                          ConfigurationException


getTargetedTrapDestinations

public SNMPTrapDestinationMBean[] getTargetedTrapDestinations()


setTargetedTrapDestinations

public void setTargetedTrapDestinations(SNMPTrapDestinationMBean[] snmpTrapDestinations)
                                 throws javax.management.InvalidAttributeValueException,
                                        ConfigurationException


addTargetedTrapDestination

public boolean addTargetedTrapDestination(SNMPTrapDestinationMBean trapdestination)
                                   throws javax.management.InvalidAttributeValueException,
                                          ConfigurationException


removeTargetedTrapDestination

public boolean removeTargetedTrapDestination(SNMPTrapDestinationMBean trapdestination)
                                      throws javax.management.InvalidAttributeValueException,
                                             ConfigurationException


getSNMPProxies

public SNMPProxyMBean[] getSNMPProxies()
SNMP Agents which will be proxied by this Master SNMP Agent. SNMPProxyMBeans describe settings for SNMP agents to be proxied by this Master agent.


setSNMPProxies

public void setSNMPProxies(SNMPProxyMBean[] snmpProxys)
                    throws javax.management.InvalidAttributeValueException,
                           ConfigurationException


addSNMPProxy

public boolean addSNMPProxy(SNMPProxyMBean snmpProxy)
                     throws javax.management.InvalidAttributeValueException,
                            ConfigurationException


removeSNMPProxy

public boolean removeSNMPProxy(SNMPProxyMBean snmpProxy)
                        throws javax.management.InvalidAttributeValueException,
                               ConfigurationException


getSNMPGaugeMonitors

public SNMPGaugeMonitorMBean[] getSNMPGaugeMonitors()
SNMP GaugeMonitorMbeans which describe the criteria for generating trap based on JMX GaugeMonitor.


setSNMPGaugeMonitors

public void setSNMPGaugeMonitors(SNMPGaugeMonitorMBean[] snmpGaugeMonitors)
                          throws javax.management.InvalidAttributeValueException,
                                 ConfigurationException


addSNMPGaugeMonitor

public boolean addSNMPGaugeMonitor(SNMPGaugeMonitorMBean gaugemonitor)
                            throws javax.management.InvalidAttributeValueException,
                                   ConfigurationException


removeSNMPGaugeMonitor

public boolean removeSNMPGaugeMonitor(SNMPGaugeMonitorMBean gaugemonitor)
                               throws javax.management.InvalidAttributeValueException,
                                      ConfigurationException


getSNMPStringMonitors

public SNMPStringMonitorMBean[] getSNMPStringMonitors()
SNMP StringMonitorMbeans which describe the criteria for generating trap based on JMX StringMonitor.


setSNMPStringMonitors

public void setSNMPStringMonitors(SNMPStringMonitorMBean[] snmpStringMonitors)
                           throws javax.management.InvalidAttributeValueException,
                                  ConfigurationException


addSNMPStringMonitor

public boolean addSNMPStringMonitor(SNMPStringMonitorMBean stringmonitor)
                             throws javax.management.InvalidAttributeValueException,
                                    ConfigurationException


removeSNMPStringMonitor

public boolean removeSNMPStringMonitor(SNMPStringMonitorMBean stringmonitor)
                                throws javax.management.InvalidAttributeValueException,
                                       ConfigurationException


getSNMPCounterMonitors

public SNMPCounterMonitorMBean[] getSNMPCounterMonitors()
SNMP CounterMonitorMbeans which describe the criteria for generating trap based on JMX CounterMonitor.


setSNMPCounterMonitors

public void setSNMPCounterMonitors(SNMPCounterMonitorMBean[] snmpCounterMonitors)
                            throws javax.management.InvalidAttributeValueException,
                                   ConfigurationException


addSNMPCounterMonitor

public boolean addSNMPCounterMonitor(SNMPCounterMonitorMBean countermonitor)
                              throws javax.management.InvalidAttributeValueException,
                                     ConfigurationException


removeSNMPCounterMonitor

public boolean removeSNMPCounterMonitor(SNMPCounterMonitorMBean countermonitor)
                                 throws javax.management.InvalidAttributeValueException,
                                        ConfigurationException


getSNMPLogFilters

public SNMPLogFilterMBean[] getSNMPLogFilters()
SNMPLogFilterMBeans which describe filters for generating traps based on server log messages.


setSNMPLogFilters

public void setSNMPLogFilters(SNMPLogFilterMBean[] snmpLogFilters)
                       throws javax.management.InvalidAttributeValueException,
                              ConfigurationException


addSNMPLogFilter

public boolean addSNMPLogFilter(SNMPLogFilterMBean logfilter)
                         throws javax.management.InvalidAttributeValueException,
                                ConfigurationException


removeSNMPLogFilter

public boolean removeSNMPLogFilter(SNMPLogFilterMBean logfilter)
                            throws javax.management.InvalidAttributeValueException,
                                   ConfigurationException


getSNMPAttributeChanges

public SNMPAttributeChangeMBean[] getSNMPAttributeChanges()
SNMPAttributeChangeMBeans which describe the MBean type and Attribute name for which attribute change trap should be sent when an attribute change is observed.


setSNMPAttributeChanges

public void setSNMPAttributeChanges(SNMPAttributeChangeMBean[] snmpAttributeChanges)
                             throws javax.management.InvalidAttributeValueException,
                                    ConfigurationException


addSNMPAttributeChange

public boolean addSNMPAttributeChange(SNMPAttributeChangeMBean attrchange)
                               throws javax.management.InvalidAttributeValueException,
                                      ConfigurationException


removeSNMPAttributeChange

public boolean removeSNMPAttributeChange(SNMPAttributeChangeMBean attrchange)
                                  throws javax.management.InvalidAttributeValueException,
                                         ConfigurationException


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

WebLogic classes and methods that do not appear in this reference are not public and are not supported.