com.ibm.ras.mgr
Class RASConfig
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable
-
- com.ibm.ras.mgr.RASConfig
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map
Deprecated.As of WAS 6.0, recommend using java.util.logging
public class RASConfig extends java.util.Hashtable
RASConfig
contains the configuration data for a RAS object (a logger, handler or formatter).A
RASConfig
contains the following items:- The configuration data for the object,
as described in the
getConfig
andsetConfig
methods of theRASObject
classes. This data is passed to the RAS object when it is created. - An "in-use" count which tells how many applications are using the RAS object.
- A reference to the
RASObject
, once the object has been created.
- See Also:
RASManager
,RASGroup
, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description RASConfig()
Deprecated.Creates aRASConfig
.RASConfig(java.util.Hashtable config)
Deprecated.Creates aRASConfig
.
-
Method Summary
Methods Modifier and Type Method and Description int
decrementInUseCount()
Deprecated.Decrements by one the number of applications which are currently using this RAS object.boolean
equals(java.lang.Object object)
Deprecated.java.util.Hashtable
getConfig()
Deprecated.RASConfig
is now aHashtable
, so theHashtable
methods may be invoked directly on this object.int
getInUseCount()
Deprecated.Gets the number of applications which are currently using this RAS object.RASObject
getObject()
Deprecated.Gets a reference to the RAS object created from this configuration.int
hashCode()
Deprecated.int
incrementInUseCount()
Deprecated.Increments by one the number of applications which are currently using this RAS object.boolean
isModified()
Deprecated.Determines if the group has been modified.void
setConfig(java.util.Hashtable config)
Deprecated.Sets the configuration data held by this object.void
setInUseCount(int count)
Deprecated.Sets the number of applications which are currently using this RAS object.void
setModified(boolean flag)
Deprecated.Sets a flag that indicates that the contents of this group has been modified.void
setObject(RASObject object)
Deprecated.Sets a reference to the RAS object created from this configuration.java.lang.String
toString()
Deprecated.Returns aString
representation of this object.protected void
updateActiveObjects(RASConfig oldConfig)
Deprecated.Scans an "old"RASConfig
for RAS objects which have been instantiated and updates this object with this information.
-
-
-
Constructor Detail
-
RASConfig
public RASConfig()
Deprecated.Creates aRASConfig
.
-
RASConfig
public RASConfig(java.util.Hashtable config)
Deprecated.Creates aRASConfig
.- Parameters:
config
- AHashtable
of configuration data for aRASObject
.
-
-
Method Detail
-
getConfig
public java.util.Hashtable getConfig()
Deprecated.RASConfig
is now aHashtable
, so theHashtable
methods may be invoked directly on this object.Gets the configuration data held by this object.- Returns:
- A
Hashtable
of configuration data for aRASObject
.
-
setConfig
public void setConfig(java.util.Hashtable config)
Deprecated.Sets the configuration data held by this object. If a RAS object has been instantiated from this configuration, the new configuration is also passed to the object.- Parameters:
config
- AHashtable
of configuration data for aRASObject
.
-
getInUseCount
public int getInUseCount()
Deprecated.Gets the number of applications which are currently using this RAS object.- Returns:
- The in-use count.
-
setInUseCount
public void setInUseCount(int count)
Deprecated.Sets the number of applications which are currently using this RAS object.- Parameters:
count
- The in-use count.
-
incrementInUseCount
public int incrementInUseCount()
Deprecated.Increments by one the number of applications which are currently using this RAS object.- Returns:
- The in-use count, after it has been incremented.
-
decrementInUseCount
public int decrementInUseCount()
Deprecated.Decrements by one the number of applications which are currently using this RAS object.- Returns:
- The in-use count, after it has been decremented.
-
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 andfalse
otherwise.
-
isModified
public boolean isModified()
Deprecated.Determines if the group has been modified.- Returns:
true
when the group has been modified andfalse
otherwise.
-
getObject
public RASObject getObject()
Deprecated.Gets a reference to the RAS object created from this configuration.- Returns:
- The
RASObject
.
-
setObject
public void setObject(RASObject object)
Deprecated.Sets a reference to the RAS object created from this configuration.- Parameters:
object
- TheRASObject
.
-
updateActiveObjects
protected void updateActiveObjects(RASConfig oldConfig)
Deprecated.Scans an "old"RASConfig
for RAS objects which have been instantiated and updates this object 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" configuration object isnull
.- Parameters:
oldConfig
- TheRASConfig
to be scanned for instantiated objects.
-
toString
public java.lang.String toString()
Deprecated.Returns aString
representation of this object.- Overrides:
toString
in classjava.util.Hashtable
- Returns:
- A representation of this object.
-
equals
public boolean equals(java.lang.Object object)
Deprecated.- Specified by:
equals
in interfacejava.util.Map
- Overrides:
equals
in classjava.util.Hashtable
-
hashCode
public int hashCode()
Deprecated.- Specified by:
hashCode
in interfacejava.util.Map
- Overrides:
hashCode
in classjava.util.Hashtable
-
-