com.ibm.ras.mgr
Class RASGroup
- java.lang.Object
com.ibm.ras.RASObject
com.ibm.ras.mgr.RASGroup
All implemented interfaces:
RASConstants, RASIObject, java.io.Serializable, java.lang.Cloneable
Direct known subclasses:
Deprecated. As of WAS 6.0, recommend using java.util.logging
- public class RASGroup
- extends RASObject
- implements java.lang.Cloneable, RASConstants
RASGroup
organizes the configuration data for a related
set of RAS objects (loggers, handlers and formatters). An application
will typically group all of its RAS objects in a RAS group,
or set of RAS groups, to distinguish them from other RAS objects
controlled by the RASManager
. Data grouped in this
manner can be used by a graphical program to display RAS information
application-by-application.
A RAS group contains collections of the following items:
-
RASIMessageLogger
configurations -
RASITraceLogger
configurations -
RASIHandler
configurations -
RASIFormatter
configurations
See Also:
Field Summary
Constructor Summary
Constructor and Description |
---|
RASGroup(java.lang.String name)
Deprecated. Creates a
RASGroup .
|
RASGroup(java.lang.String name,java.lang.String desc)
Deprecated. Creates a
RASGroup .
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
addFormatterConfig(RASConfig cfg)
Deprecated. Adds a formatter configuration to this group.
|
|
addHandlerConfig(RASConfig cfg)
Deprecated. Adds a handler configuration to this group.
|
|
addMessageLoggerConfig(RASConfig cfg)
Deprecated. Adds a message logger configuration to this group.
|
|
addTraceLoggerConfig(RASConfig cfg)
Deprecated. Adds a trace logger configuration to this group.
|
|
clone()
Deprecated. Creates a new
RASGroup .
|
getFormatterConfig(java.lang.String name)
Deprecated. Gets a formatter configuration from this group.
|
|
|
getFormatterConfigs()
Deprecated. Gets all of the formatter configurations associated with this group.
|
getHandlerConfig(java.lang.String name)
Deprecated. Gets a handler configuration from this group.
|
|
|
getHandlerConfigs()
Deprecated. Gets all of the handler configurations associated with this group.
|
getMessageLoggerConfig(java.lang.String name)
Deprecated. Gets a message logger configuration from this group.
|
|
|
getMessageLoggerConfigs()
Deprecated. Gets all of the message Logger configurations associated with this group.
|
getTraceLoggerConfig(java.lang.String name)
Deprecated. Gets a trace logger configuration from this group.
|
|
|
getTraceLoggerConfigs()
Deprecated. Gets all of the trace logger configurations associated with this group.
|
|
isModified()
Deprecated. Determines if the group has been modified.
|
|
removeFormatterConfig(java.lang.String name)
Deprecated. Removes a formatter configuration from this group.
|
|
removeHandlerConfig(java.lang.String name)
Deprecated. Removes a handler configuration from this group.
|
|
removeMessageLoggerConfig(java.lang.String name)
Deprecated. Removes a message logger configuration from this group.
|
|
removeTraceLoggerConfig(java.lang.String name)
Deprecated. Removes a trace logger configuration from this group.
|
|
setModified(boolean flag)
Deprecated. Sets a flag that indicates that the contents of this group has been
modified.
|
|
toString()
Deprecated. Returns a
String representation of this object.
|
|
updateActiveObjects(RASGroup oldGroup,RASManager mgr)
Deprecated. Scans an "old"
RASGroup for RAS objects which have been
instantiated and updates this group with this information.
|
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
RASGroup
- public RASGroup(java.lang.String name)
Deprecated.
Parameters:
name
- The name of this object. RASGroup
- public RASGroup(java.lang.String name,
- java.lang.String desc)
Deprecated.
Creates a
RASGroup
.
Parameters:
name
- The name of this object. desc
- The description of this object. Method Detail
clone
- public java.lang.Object clone()
Deprecated.
Creates a new
RASGroup
.
Returns:
A copy of the current object.
addMessageLoggerConfig
- public void addMessageLoggerConfig( RASConfig cfg)
Deprecated.
Adds a message logger configuration to this group. If the logger
configuration does not contain a name, the configuration is not added.
If a configuration with the same name is already a member of this
group, it is replaced.
Parameters:
cfg
- A RASConfig
containing the logger
configuration. removeMessageLoggerConfig
- public void removeMessageLoggerConfig( java.lang.String name)
Deprecated.
Removes a message logger configuration from this group.
If the named configuration does not exist, this method does nothing.
Parameters:
name
- The name of the logger configuration. getMessageLoggerConfig
- public RASConfig getMessageLoggerConfig( java.lang.String name)
Deprecated.
Gets a message logger configuration from this group.
Parameters:
name
- The name of the logger configuration. Returns:
The message logger configuration, or
null
if
the named configuration does not exist. getMessageLoggerConfigs
- public java.util.Hashtable getMessageLoggerConfigs( )
Deprecated.
Gets all of the message Logger configurations associated with this group.
Returns:
A
Hashtable
of RASConfig
objects. addTraceLoggerConfig
- public void addTraceLoggerConfig( RASConfig cfg)
Deprecated.
Adds a trace logger configuration to this group. If the logger
configuration does not contain a name, the configuration is not added.
If a configuration with the same name is already a member of this
group, it is replaced.
Parameters:
cfg
- A RASConfig
containing the logger
configuration. removeTraceLoggerConfig
- public void removeTraceLoggerConfig( java.lang.String name)
Deprecated.
Removes a trace logger configuration from this group.
If the named configuration does not exist, this method does nothing.
Parameters:
name
- The name of the logger configuration. getTraceLoggerConfig
- public RASConfig getTraceLoggerConfig( java.lang.String name)
Deprecated.
Gets a trace logger configuration from this group.
Parameters:
name
- The name of the logger configuration. Returns:
The logger configuration, or
null
if
the named configuration does not exist. getTraceLoggerConfigs
- public java.util.Hashtable getTraceLoggerConfigs( )
Deprecated.
Gets all of the trace logger configurations associated with this group.
Returns:
A
Hashtable
of RASConfig
objects. addHandlerConfig
- public void addHandlerConfig(RASConfig cfg)
Deprecated.
Adds a handler configuration to this group. If the handler
configuration does not contain a name, the configuration is not added.
If a configuration with the same name is already a member of this
group, it is replaced.
Parameters:
cfg
- A RASConfig
containing the handler
configuration. removeHandlerConfig
- public void removeHandlerConfig( java.lang.String name)
Deprecated.
Removes a handler configuration from this group.
If the named configuration does not exist, this method does nothing.
Parameters:
name
- The name of the handler configuration. getHandlerConfig
- public RASConfig getHandlerConfig( java.lang.String name)
Deprecated.
Gets a handler configuration from this group.
Parameters:
name
- The name of the handler configuration. Returns:
The handler configuration, or
null
if
the named configuration does not exist. getHandlerConfigs
- public java.util.Hashtable getHandlerConfigs( )
Deprecated.
Gets all of the handler configurations associated with this group.
Returns:
A
Hashtable
of RASConfig
objects. addFormatterConfig
- public void addFormatterConfig( RASConfig cfg)
Deprecated.
Adds a formatter configuration to this group. If the formatter
configuration does not contain a name, the configuration is not added.
If a configuration with the same name is already a member of this
group, it is replaced.
Parameters:
cfg
- A RASConfig
containing the formatter
configuration. removeFormatterConfig
- public void removeFormatterConfig( java.lang.String name)
Deprecated.
Removes a formatter configuration from this group.
If the named configuration does not exist, this method does nothing.
Parameters:
name
- The name of the formatter configuration. getFormatterConfig
- public RASConfig getFormatterConfig( java.lang.String name)
Deprecated.
Gets a formatter configuration from this group.
Parameters:
name
- The name of the formatter configuration. Returns:
The formatter configuration, or
null
if
the named configuration does not exist. getFormatterConfigs
- public java.util.Hashtable getFormatterConfigs( )
Deprecated.
Gets all of the formatter configurations associated with this group.
Returns:
A
Hashtable
of RASConfig
objects. updateActiveObjects
- protected void updateActiveObjects( RASGroup oldGroup,
- RASManager mgr)
Deprecated.
Scans an "old"
RASGroup
for RAS objects which have been
instantiated and updates this 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" group is null
.
mgr
- The RASManager
. setModified
- public void setModified(boolean flag)
Deprecated.
Sets a flag that indicates that the contents of this group has been
modified.
Parameters:
flag
- true
when the group has been modified and
false
otherwise. isModified
- public boolean isModified()
Deprecated.
Determines if the group has been modified.
Returns:
true
when the group has been modified and
false
otherwise. toString
- public java.lang.String toString( )
Deprecated.
Returns a
String
representation of this object.
Overrides:
toString
in class java.lang.Object
Returns:
A representation of this object.
RASGroup
. The description of this object is an empty string.