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.HashtableRASConfigcontains the configuration data for a RAS object (a logger, handler or formatter).A
RASConfigcontains the following items:- The configuration data for the object,
as described in the
getConfigandsetConfigmethods of theRASObjectclasses. 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 intdecrementInUseCount()Deprecated.Decrements by one the number of applications which are currently using this RAS object.booleanequals(java.lang.Object object)Deprecated.java.util.HashtablegetConfig()Deprecated.RASConfigis now aHashtable, so theHashtablemethods may be invoked directly on this object.intgetInUseCount()Deprecated.Gets the number of applications which are currently using this RAS object.RASObjectgetObject()Deprecated.Gets a reference to the RAS object created from this configuration.inthashCode()Deprecated.intincrementInUseCount()Deprecated.Increments by one the number of applications which are currently using this RAS object.booleanisModified()Deprecated.Determines if the group has been modified.voidsetConfig(java.util.Hashtable config)Deprecated.Sets the configuration data held by this object.voidsetInUseCount(int count)Deprecated.Sets the number of applications which are currently using this RAS object.voidsetModified(boolean flag)Deprecated.Sets a flag that indicates that the contents of this group has been modified.voidsetObject(RASObject object)Deprecated.Sets a reference to the RAS object created from this configuration.java.lang.StringtoString()Deprecated.Returns aStringrepresentation of this object.protected voidupdateActiveObjects(RASConfig oldConfig)Deprecated.Scans an "old"RASConfigfor 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- AHashtableof configuration data for aRASObject.
-
-
Method Detail
-
getConfig
public java.util.Hashtable getConfig()
Deprecated.RASConfigis now aHashtable, so theHashtablemethods may be invoked directly on this object.Gets the configuration data held by this object.- Returns:
- A
Hashtableof 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- AHashtableof 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-truewhen the group has been modified andfalseotherwise.
-
isModified
public boolean isModified()
Deprecated.Determines if the group has been modified.- Returns:
truewhen the group has been modified andfalseotherwise.
-
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"RASConfigfor 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- TheRASConfigto be scanned for instantiated objects.
-
toString
public java.lang.String toString()
Deprecated.Returns aStringrepresentation of this object.- Overrides:
toStringin classjava.util.Hashtable- Returns:
- A representation of this object.
-
equals
public boolean equals(java.lang.Object object)
Deprecated.- Specified by:
equalsin interfacejava.util.Map- Overrides:
equalsin classjava.util.Hashtable
-
hashCode
public int hashCode()
Deprecated.- Specified by:
hashCodein interfacejava.util.Map- Overrides:
hashCodein classjava.util.Hashtable
-
-