com.ibm.ras
Class RASObject
- java.lang.Object
com.ibm.ras.RASObject
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 RASObject
- extends java.lang.Object
- implements java.lang.Cloneable, RASConstants, RASIObject
RASObject
defines the methods which are common to the
RASLogger
, RASHandler
and
RASFormatter
} classes.
It should not be necessary to create an instance of this class directly.
The elements common to loggers and handlers include:
- The name of the object
- A description of the object
See Also:
Field Summary
Constructor Summary
Constructor and Description |
---|
RASObject()
Deprecated. Creates a
RASObject .
|
RASObject(java.lang.String name)
Deprecated. Creates a
RASObject .
|
RASObject(java.lang.String name,java.lang.String desc)
Deprecated. Creates a
RASObject .
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
clone()
Deprecated. Creates a new
RASObject .
|
|
getConfig()
Deprecated. Gets the configuration of this object.
|
|
getDescription()
Deprecated. Gets the description of this object.
|
|
getGroup()
Deprecated. Gets the name of the
RASManager group
with which this object is associated.
|
|
getName()
Deprecated. Gets the name by which this object is known.
|
|
init()
Deprecated. Initializes this object, setting default values.
|
|
setConfig(java.util.Hashtable ht)
Deprecated. Sets the configuration of this object.
|
|
setDescription(java.lang.String desc)
Deprecated. Sets the description of this object.
|
|
setName(java.lang.String name)
Deprecated. Sets the name by which this object is known.
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
RASObject
- public RASObject()
Deprecated.
RASObject
- public RASObject(java.lang.String name)
Deprecated.
Creates a
RASObject
. The description of this object is
an empty string.
Parameters:
name
- The name of this object. RASObject
- public RASObject(java.lang.String name,
- java.lang.String desc)
Deprecated.
Creates a
RASObject
.
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
RASObject
.
Overrides:
clone
in class java.lang.Object
Returns:
A copy of the current object.
init
- protected void init()
Deprecated.
Initializes this object, setting default values.
getConfig
- public java.util.Hashtable getConfig( )
Deprecated.
Gets the configuration of this object.
Specified by:
getConfig
in interface RASIObject
Returns:
A
Hashtable
containing the configuration.
This object inserts the following key/value pairs into the
configuration:
- name
- The name of the object.
- description
- The description of the object.
- className
- The name of the this class.
- group
- The RAS group of which this object is a member.
All values are Strings
.
Extensions to this object may add additional keys.
The className and group keys are kept only to maintain the
integrity of the configuration. They are used by the RAS
Manager.
setConfig
- public void setConfig(java.util.Hashtable ht)
Deprecated.
Sets the configuration of this object. This method is used by a
RASManager
to initialize a RAS object.
It should not be necessary for an application to use this method.
Specified by:
setConfig
in interface RASIObject
Parameters:
ht
- A Hashtable
containing the configuration.
This object searches for the following keys:
- name
- The name of the object.
- description
- The description of the object.
- className
- The name of the this class.
- group
- The RAS group of which this object is a member.
All values are Strings
.
If a key is not found, an internal default for that element
is set instead.
Extensions to this object may use additional keys.
The className and group keys are kept only to maintain the
integrity of the configuration. They are used by the RAS
Manager.
getName
- public java.lang.String getName( )
Deprecated.
Gets the name by which this object is known.
Specified by:
getName
in interface RASIObject
Returns:
The name of this object, or an empty string ("") if the name
has not been set.
setName
- public void setName(java.lang.String name)
Deprecated.
Sets the name by which this object is known. If the name is
null
, the current name is not changed.
Specified by:
setName
in interface RASIObject
Parameters:
name
- The name of this object. getDescription
- public java.lang.String getDescription( )
Deprecated.
Gets the description of this object.
Specified by:
getDescription
in interface RASIObject
Returns:
The description of this object, or an empty string ("") if
the description has not been set.
setDescription
- public void setDescription(java.lang.String desc)
Deprecated.
Sets the description of this object. If the description is
null
, the current description is not changed.
Specified by:
setDescription
in interface RASIObject
Parameters:
desc
- The description of this object. getGroup
- public java.lang.String getGroup( )
Deprecated.
Gets the name of the
RASManager
group
with which this object is associated. This method is only used by the
RAS Manager.
Specified by:
getGroup
in interface RASIObject
Returns:
The group name or an empty string if this object is not
associated with a group.
RASObject
. The name and description of this object are empty strings.