BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.management.configuration
Interface SNMPLogFilterMBean


public interface SNMPLogFilterMBean
extends SNMPTrapSourceMBean

This MBean represents a filter to qualify log messages which are logged to the server logfile. A message must qualify criteria specified as a filter in order to generate a trap. Multiple instances of this MBean can be defined, if needed. If there are multiple instances, a message must qualify atleast one filter to qualify for the server logfile.

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

Method Summary
 boolean addMessageId(java.lang.String messageid)
           
 boolean addSubsystemName(java.lang.String subsystem)
           
 boolean addUserId(java.lang.String userid)
           
 java.lang.String[] getMessageIds()
          The list of message Ids or ID ranges whose messages qualify for this filter.
 java.lang.String getMessageSubstring()
          A substring which qualifying messages must contain.
 java.lang.String getSeverityLevel()
          The minimum severity of a message which qualifies this filter.
 java.lang.String[] getSubsystemNames()
          The list of subsystems whose messages qualify for this filter.
 java.lang.String[] getUserIds()
          The list of users whose messages qualify for this filter.
 boolean removeMessageId(java.lang.String messageid)
           
 boolean removeSubsystemName(java.lang.String subsystem)
           
 boolean removeUserId(java.lang.String userid)
           
 void setMessageIds(java.lang.String[] messageIdList)
           
 void setMessageSubstring(java.lang.String MessageSubString)
           
 void setSeverityLevel(java.lang.String severityLevel)
           
 void setSubsystemNames(java.lang.String[] subsystemList)
           
 void setUserIds(java.lang.String[] userIdList)
           
 
Methods inherited from interface weblogic.management.configuration.SNMPTrapSourceMBean
addEnabledServer, getEnabledServers, removeEnabledServer, setEnabledServers
 
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
 

Method Detail

getSeverityLevel

public java.lang.String getSeverityLevel()
The minimum severity of a message which qualifies this filter.

All messages with given severity and higher, qualify. The ascending order of severities is INFO, WARNING, ERROR, NOTICE, CRITICAL, ALERT and EMERGENCY . For numeric values refer to weblogic.logging.Severities.

Default Value: weblogic.logging.Severities.ERROR_TEXT
See Also:
Severities

setSeverityLevel

public void setSeverityLevel(java.lang.String severityLevel)


getSubsystemNames

public java.lang.String[] getSubsystemNames()
The list of subsystems whose messages qualify for this filter. If none are specified, messages from all subsystems qualify.


setSubsystemNames

public void setSubsystemNames(java.lang.String[] subsystemList)


addSubsystemName

public boolean addSubsystemName(java.lang.String subsystem)
                         throws javax.management.InvalidAttributeValueException,
                                ConfigurationException


removeSubsystemName

public boolean removeSubsystemName(java.lang.String subsystem)
                            throws javax.management.InvalidAttributeValueException,
                                   ConfigurationException


getUserIds

public java.lang.String[] getUserIds()
The list of users whose messages qualify for this filter. If no ids are specified, messages from all user ids qualify.


setUserIds

public void setUserIds(java.lang.String[] userIdList)


addUserId

public boolean addUserId(java.lang.String userid)
                  throws javax.management.InvalidAttributeValueException,
                         ConfigurationException


removeUserId

public boolean removeUserId(java.lang.String userid)
                     throws javax.management.InvalidAttributeValueException,
                            ConfigurationException


getMessageIds

public java.lang.String[] getMessageIds()
The list of message Ids or ID ranges whose messages qualify for this filter. If no ids are specified, messages from all ids qualify. Sample values are 20,50-100,300


setMessageIds

public void setMessageIds(java.lang.String[] messageIdList)


addMessageId

public boolean addMessageId(java.lang.String messageid)
                     throws javax.management.InvalidAttributeValueException,
                            ConfigurationException


removeMessageId

public boolean removeMessageId(java.lang.String messageid)
                        throws javax.management.InvalidAttributeValueException,
                               ConfigurationException


getMessageSubstring

public java.lang.String getMessageSubstring()
A substring which qualifying messages must contain. If no substring is specified, all messages qualify.

Legal NULL: false

setMessageSubstring

public void setMessageSubstring(java.lang.String MessageSubString)
                         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.