|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MBeanHome
interface.)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.
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://www.oracle.com/technology/documentation/index.html.
Field Summary |
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean |
DEFAULT_EMPTY_BYTE_ARRAY |
Method Summary | |
boolean |
addMessageId(String messageid)
Adds a feature to the MessageId attribute of the SNMPLogFilterMBean object |
boolean |
addSubsystemName(String subsystem)
Adds a feature to the SubsystemName attribute of the SNMPLogFilterMBean object |
boolean |
addUserId(String userid)
Adds a feature to the UserId attribute of the SNMPLogFilterMBean object |
String[] |
getMessageIds()
A list of message IDs or ID ranges that cause WebLogic Server to generate a trap. |
String |
getMessageSubstring()
A string that is searched for in the message text. |
String |
getSeverityLevel()
The minimum severity of a message that causes WebLogic Server to generate a trap. |
String[] |
getSubsystemNames()
A list of subsystems whose messages are selected by this log filter. |
String[] |
getUserIds()
A list of user IDs that causes WebLogic Server to generate a trap. |
boolean |
removeMessageId(String messageid)
|
boolean |
removeSubsystemName(String subsystem)
|
boolean |
removeUserId(String userid)
|
void |
setMessageIds(String[] messageIdList)
Sets the value of the MessageIds attribute. |
void |
setMessageSubstring(String MessageSubString)
Sets the value of the MessageSubstring attribute. |
void |
setSeverityLevel(String severityLevel)
Sets the value of the SeverityLevel attribute. |
void |
setSubsystemNames(String[] subsystemList)
Sets the value of the SubsystemNames attribute. |
void |
setUserIds(String[] userIdList)
Sets the value of the UserIds attribute. |
Methods inherited from interface weblogic.management.configuration.SNMPTrapSourceMBean |
addEnabledServer, getEnabledServers, removeEnabledServer, setEnabledServers |
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 |
public boolean addMessageId(String messageid) throws InvalidAttributeValueException, ConfigurationException
Adds a feature to the MessageId attribute of the SNMPLogFilterMBean object
messageid
- The feature to be added to the MessageId attribute
InvalidAttributeValueException
ConfigurationException
public boolean addSubsystemName(String subsystem) throws InvalidAttributeValueException, ConfigurationException
Adds a feature to the SubsystemName attribute of the SNMPLogFilterMBean object
subsystem
- The feature to be added to the SubsystemName attribute
InvalidAttributeValueException
ConfigurationException
public boolean addUserId(String userid) throws InvalidAttributeValueException, ConfigurationException
Adds a feature to the UserId attribute of the SNMPLogFilterMBean object
userid
- The feature to be added to the UserId attribute
InvalidAttributeValueException
ConfigurationException
public String[] getMessageIds()
A list of message IDs or ID ranges that cause WebLogic Server to generate a trap.
If no IDs are specified, this filter selects all message IDs.
Example list: 20,50-100,300
public String getMessageSubstring()
A string that is searched for in the message text. Only messages that contain the string are selected. If a string is not specified, all messages are selected.
public String getSeverityLevel()
The minimum severity of a message that causes WebLogic Server to generate a trap.
Severities
public String[] getSubsystemNames()
A list of subsystems whose messages are selected by this log filter. If none are specified, messages from all subsystems are selected.
public String[] getUserIds()
A list of user IDs that causes WebLogic Server to generate a trap.
Every message includes the user ID from the security context in which the message was generated.
If the user ID field for a message matches one of the user IDs you specify in the filter, WebLogic Server generates a trap.
If this log filter doesn't specify user IDs, WebLogic Server can generate a trap for messages from all user IDs.
public boolean removeMessageId(String messageid) throws InvalidAttributeValueException, ConfigurationException
messageid
-
InvalidAttributeValueException
ConfigurationException
public boolean removeSubsystemName(String subsystem) throws InvalidAttributeValueException, ConfigurationException
subsystem
-
InvalidAttributeValueException
ConfigurationException
public boolean removeUserId(String userid) throws InvalidAttributeValueException, ConfigurationException
userid
-
InvalidAttributeValueException
ConfigurationException
public void setMessageIds(String[] messageIdList)
Sets the value of the MessageIds attribute.
messageIdList
- The new messageIds valuegetMessageIds()
public void setMessageSubstring(String MessageSubString) throws InvalidAttributeValueException, ConfigurationException
Sets the value of the MessageSubstring attribute.
MessageSubString
- The new messageSubstring value
InvalidAttributeValueException
ConfigurationException
getMessageSubstring()
public void setSeverityLevel(String severityLevel)
Sets the value of the SeverityLevel attribute.
severityLevel
- The new severityLevel valuegetSeverityLevel()
public void setSubsystemNames(String[] subsystemList)
Sets the value of the SubsystemNames attribute.
subsystemList
- The new subsystemNames valuegetSubsystemNames()
public void setUserIds(String[] userIdList)
Sets the value of the UserIds attribute.
userIdList
- The new userIds valuegetUserIds()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs90 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |