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:
- RASGroup, RASMaskChangeGenerator
Deprecated.As of WAS 6.0, recommend using java.util.logging
public class RASObject extends java.lang.Object implements java.lang.Cloneable, RASConstants, RASIObject
RASObjectdefines the methods which are common to theRASLogger,RASHandlerandRASFormatter} 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:
- 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
Constructors Constructor and Description RASObject()Deprecated.Creates aRASObject.RASObject(java.lang.String name)Deprecated.Creates aRASObject.RASObject(java.lang.String name, java.lang.String desc)Deprecated.Creates aRASObject.
-
Method Summary
Methods Modifier and Type Method and Description java.lang.Objectclone()Deprecated.Creates a newRASObject.java.util.HashtablegetConfig()Deprecated.Gets the configuration of this object.java.lang.StringgetDescription()Deprecated.Gets the description of this object.java.lang.StringgetGroup()Deprecated.Gets the name of theRASManagergroup with which this object is associated.java.lang.StringgetName()Deprecated.Gets the name by which this object is known.protected voidinit()Deprecated.Initializes this object, setting default values.voidsetConfig(java.util.Hashtable ht)Deprecated.Sets the configuration of this object.voidsetDescription(java.lang.String desc)Deprecated.Sets the description of this object.voidsetName(java.lang.String name)Deprecated.Sets the name by which this object is known.
-
-
-
Constructor Detail
-
RASObject
public RASObject()
Deprecated.Creates aRASObject. The name and description of this object are empty strings.
-
RASObject
public RASObject(java.lang.String name)
Deprecated.Creates aRASObject. 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 aRASObject.- Parameters:
name- The name of this object.desc- The description of this object.
-
-
Method Detail
-
clone
public java.lang.Object clone()
Deprecated.Creates a newRASObject.- Overrides:
clonein classjava.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:
getConfigin interfaceRASIObject- Returns:
- A
Hashtablecontaining 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 aRASManagerto initialize a RAS object. It should not be necessary for an application to use this method.- Specified by:
setConfigin interfaceRASIObject- Parameters:
ht- AHashtablecontaining 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:
getNamein interfaceRASIObject- 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 isnull, the current name is not changed.- Specified by:
setNamein interfaceRASIObject- Parameters:
name- The name of this object.
-
getDescription
public java.lang.String getDescription()
Deprecated.Gets the description of this object.- Specified by:
getDescriptionin interfaceRASIObject- 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 isnull, the current description is not changed.- Specified by:
setDescriptionin interfaceRASIObject- Parameters:
desc- The description of this object.
-
getGroup
public java.lang.String getGroup()
Deprecated.Gets the name of theRASManagergroup with which this object is associated. This method is only used by the RAS Manager.- Specified by:
getGroupin interfaceRASIObject- Returns:
- The group name or an empty string if this object is not associated with a group.
-
-