com.ibm.ras.mgr

Class RASBaseGroup

  1. java.lang.Object
  2. extended bycom.ibm.ras.RASObject
  3. extended bycom.ibm.ras.mgr.RASGroup
  4. extended bycom.ibm.ras.mgr.RASBaseGroup
All implemented interfaces:
RASConstants, RASIObject, java.io.Serializable, java.lang.Cloneable

Deprecated. As of WAS 6.0, recommend using java.util.logging
  1. public class RASBaseGroup
  2. extends RASGroup
  3. implements java.lang.Cloneable
RASBaseGroup is a RASGroup, which includes additional RASGroups as well as a set of default handlers (which can be attached to a logger if the logger's configuration does not include a handler).
See Also:
RASManager, Serialized Form

Field Summary

Fields inherited from interface com.ibm.ras.RASConstants
KEY_CLASS_NAME, KEY_CLIENT, KEY_COMPONENT, KEY_DATE_FORMAT, KEY_DEFAULT_HANDLERS, KEY_DEFAULT_MESSAGE_HANDLERS, KEY_DEFAULT_TRACE_HANDLERS, KEY_DESCRIPTION, KEY_ENCODING, KEY_EXCEPTION, KEY_EXCEPTION_TRACE, KEY_FILE_NAME, KEY_FORMATTER_NAMES, KEY_GROUP, KEY_HANDLER_NAMES, KEY_HEX_DATA, KEY_IS_CIRCULAR, KEY_IS_LOGGING, KEY_IS_SYNC, KEY_LOGGER, KEY_LOGGING_CLASS, KEY_LOGGING_METHOD, KEY_MAX_FILE_SIZE, KEY_MAX_FILES, KEY_MAX_QUEUE_SIZE, KEY_MESSAGE_EVENT_CLASSES, KEY_MESSAGE_FILE, KEY_MESSAGE_MASK, KEY_NAME, KEY_ORGANIZATION, KEY_PRODUCT, KEY_RETRY_INTERVAL, KEY_SEPARATOR, KEY_SERVER, KEY_SOCKET_PORT, KEY_SOCKET_SERVER, KEY_SUPPRESSED_KEYS, KEY_THREAD_ID, KEY_TIME_FORMAT, KEY_TRACE_EVENT_CLASSES, KEY_TRACE_MASK, RAS_VERSION

Constructor Summary

Constructor and Description
RASBaseGroup()
Deprecated. Creates a RASBaseGroup.

Method Summary

Modifier and Type Method and Description
  1. void
addGroup(RASGroup grp)
Deprecated. Adds a RAS group to this group.
  1. java.lang.Object
clone()
Deprecated. Creates a new RASBaseGroup.
  1. java.lang.String
getDefaultHandlers()
Deprecated. Gets the default handlers, which will be associated with any logger that does not have a "handlerNames" key in its configuration.
  1. java.lang.String
getDefaultMessageHandlers()
Deprecated. Gets the default message handlers, which will be associated with any logger that does not have a "handlerNames" key in its configuration.
  1. java.lang.String
getDefaultTraceHandlers()
Deprecated. Gets the default trace handlers, which will be associated with any logger that does not have a "handlerNames" key in its configuration.
  1. RASGroup
getGroup(java.lang.String name)
Deprecated. Gets a RAS group from this group.
  1. java.util.Hashtable
getGroups()
Deprecated. Gets all of the RAS groups associated with this group.
  1. void
removeGroup(RASGroup grp)
Deprecated. Removes a RAS group from this group.
  1. void
setDefaultHandlers(java.lang.String names)
Deprecated. Sets the default handlers, which will be associated with any logger that does not have a "handlerNames" key in its configuration.
  1. void
setDefaultMessageHandlers(java.lang.String names)
Deprecated. Sets the default message handlers, which will be associated with any logger that does not have a "handlerNames" key in its configuration.
  1. void
setDefaultTraceHandlers(java.lang.String names)
Deprecated. Sets the default trace handlers, which will be associated with any logger that does not have a "handlerNames" key in its configuration.
  1. java.lang.String
toString()
Deprecated. Returns a String representation of this object.
  1. void
updateActiveObjects(RASBaseGroup oldBaseGroup,RASManager mgr)
Deprecated. Scans an "old" RASBaseGroup for RAS objects which have been instantiated and updates this base group with this information.
Methods inherited from class com.ibm.ras.mgr.RASGroup
addFormatterConfig, addHandlerConfig, addMessageLoggerConfig, addTraceLoggerConfig, getFormatterConfig, getFormatterConfigs, getHandlerConfig, getHandlerConfigs, getMessageLoggerConfig, getMessageLoggerConfigs, getTraceLoggerConfig, getTraceLoggerConfigs, isModified, removeFormatterConfig, removeHandlerConfig, removeMessageLoggerConfig, removeTraceLoggerConfig, setModified, updateActiveObjects
Methods inherited from class com.ibm.ras.RASObject
getConfig, getDescription, getGroup, getName, init, setConfig, setDescription, setName
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

RASBaseGroup

  1. public RASBaseGroup()
Deprecated.
Creates a RASBaseGroup.

Method Detail

clone

  1. public java.lang.Object clone()
Deprecated.
Creates a new RASBaseGroup.
Overrides:
clone in class RASGroup
Returns:
A copy of the current object.

addGroup

  1. public void addGroup(RASGroup grp)
Deprecated.
Adds a RAS group to this group. If a RAS group with the same name is already a member of this base group, it is replaced.
Parameters:
grp - The RAS group to be added.

removeGroup

  1. public void removeGroup(RASGroup grp)
Deprecated.
Removes a RAS group from this group. If the named group does not exist, this method does nothing.
Parameters:
grp - The RAS group to be removed.

getGroup

  1. public RASGroup getGroup(java.lang.String name)
Deprecated.
Gets a RAS group from this group.
Parameters:
name - The name of the RAS group.
Returns:
The RAS group, or null if the named group does not exist.

getGroups

  1. public java.util.Hashtable getGroups( )
Deprecated.
Gets all of the RAS groups associated with this group.
Returns:
A Hashtable of RAS groups.

getDefaultHandlers

  1. public java.lang.String getDefaultHandlers( )
Deprecated.
Gets the default handlers, which will be associated with any logger that does not have a "handlerNames" key in its configuration. If the configuration does include "defaultMessageHandlerNames" or "defaultTraceHandlerNames," those handlers, as appropriate for the type of logger, should be attached to the logger instead.
Returns:
A blank delimited String of handler names.

setDefaultHandlers

  1. public void setDefaultHandlers( java.lang.String names)
Deprecated.
Sets the default handlers, which will be associated with any logger that does not have a "handlerNames" key in its configuration. If the configuration does include "defaultMessageHandlerNames" or "defaultTraceHandlerNames," those handlers, as appropriate for the type of logger, should be attached to the logger instead.
Parameters:
names - A blank delimited String of handler names.

getDefaultMessageHandlers

  1. public java.lang.String getDefaultMessageHandlers( )
Deprecated.
Gets the default message handlers, which will be associated with any logger that does not have a "handlerNames" key in its configuration.
Returns:
A blank delimited String of handler names.

setDefaultMessageHandlers

  1. public void setDefaultMessageHandlers( java.lang.String names)
Deprecated.
Sets the default message handlers, which will be associated with any logger that does not have a "handlerNames" key in its configuration.
Parameters:
names - A blank delimited String of handler names.

getDefaultTraceHandlers

  1. public java.lang.String getDefaultTraceHandlers( )
Deprecated.
Gets the default trace handlers, which will be associated with any logger that does not have a "handlerNames" key in its configuration.
Returns:
A blank delimited String of handler names.

setDefaultTraceHandlers

  1. public void setDefaultTraceHandlers( java.lang.String names)
Deprecated.
Sets the default trace handlers, which will be associated with any logger that does not have a "handlerNames" key in its configuration.
Parameters:
names - A blank delimited String of handler names.

updateActiveObjects

  1. public void updateActiveObjects( RASBaseGroup oldBaseGroup,
  2. RASManager mgr)
Deprecated.
Scans an "old" RASBaseGroup for RAS objects which have been instantiated and updates this base group with this information. This method should be called if a RAS configuration is refreshed from a data store, so that the active-object data is not lost. This method does nothing if the "old" base group is null.
Parameters:
oldBaseGroup - The RASBaseGroup to be scanned for instantiated objects.
mgr - The RASManager.

toString

  1. public java.lang.String toString( )
Deprecated.
Returns a String representation of this object.
Overrides:
toString in class RASGroup
Returns:
A representation of this object.