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 and setConfig methods of the RASObject 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 a RASConfig.
      RASConfig(java.util.Hashtable config)
      Deprecated. 
      Creates a RASConfig.
    • 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 a Hashtable, so the Hashtable 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 a String 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.
      • Methods inherited from class java.util.Hashtable

        clear, clone, contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RASConfig

        public RASConfig()
        Deprecated. 
        Creates a RASConfig.
      • RASConfig

        public RASConfig(java.util.Hashtable config)
        Deprecated. 
        Creates a RASConfig.
        Parameters:
        config - A Hashtable of configuration data for a RASObject.
    • Method Detail

      • getConfig

        public java.util.Hashtable getConfig()
        Deprecated. RASConfig is now a Hashtable, so the Hashtable methods may be invoked directly on this object.
        Gets the configuration data held by this object.
        Returns:
        A Hashtable of configuration data for a RASObject.
      • 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 - A Hashtable of configuration data for a RASObject.
      • 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 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.
      • 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 - The RASObject.
      • 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 is null.
        Parameters:
        oldConfig - The RASConfig to be scanned for instantiated objects.
      • toString

        public java.lang.String toString()
        Deprecated. 
        Returns a String representation of this object.
        Overrides:
        toString in class java.util.Hashtable
        Returns:
        A representation of this object.
      • equals

        public boolean equals(java.lang.Object object)
        Deprecated. 
        Specified by:
        equals in interface java.util.Map
        Overrides:
        equals in class java.util.Hashtable
      • hashCode

        public int hashCode()
        Deprecated. 
        Specified by:
        hashCode in interface java.util.Map
        Overrides:
        hashCode in class java.util.Hashtable
IBM WebSphere Application ServerTM
Release 8.5