com.ibm.ras.mgr

Class RASConfig

  1. java.lang.Object
  2. extended byjava.util.Dictionary<K,V>
  3. extended byjava.util.Hashtable
  4. extended bycom.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
  1. public class RASConfig
  2. extends java.util.Hashtable
RASConfig contains the configuration data for a RAS object (a logger, handler or formatter).

A RASConfig contains the following items:

See Also:
RASManager, RASGroup, Serialized Form

Constructor Summary

Constructor and Description
RASConfig()
Deprecated. Creates a RASConfig.
RASConfig(java.util.Hashtable config)
Deprecated. Creates a RASConfig.

Method Summary

Modifier and Type Method and Description
  1. int
decrementInUseCount()
Deprecated. Decrements by one the number of applications which are currently using this RAS object.
  1. java.util.Hashtable
getConfig()
Deprecated. RASConfig is now a Hashtable, so the Hashtable methods may be invoked directly on this object.
  1. int
getInUseCount()
Deprecated. Gets the number of applications which are currently using this RAS object.
  1. RASObject
getObject()
Deprecated. Gets a reference to the RAS object created from this configuration.
  1. int
incrementInUseCount()
Deprecated. Increments by one the number of applications which are currently using this RAS object.
  1. boolean
isModified()
Deprecated. Determines if the group has been modified.
  1. void
setConfig(java.util.Hashtable config)
Deprecated. Sets the configuration data held by this object.
  1. void
setInUseCount(int count)
Deprecated. Sets the number of applications which are currently using this RAS object.
  1. void
setModified(boolean flag)
Deprecated. Sets a flag that indicates that the contents of this group has been modified.
  1. void
setObject(RASObject object)
Deprecated. Sets a reference to the RAS object created from this configuration.
  1. java.lang.String
toString()
Deprecated. Returns a String representation of this object.
  1. protected
  2. 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, equals, get, hashCode, 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

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

RASConfig

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

Method Detail

getConfig

  1. 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

  1. 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

  1. public int getInUseCount()
Deprecated.
Gets the number of applications which are currently using this RAS object.
Returns:
The in-use count.

setInUseCount

  1. 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

  1. 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

  1. 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

  1. 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

  1. public boolean isModified()
Deprecated.
Determines if the group has been modified.
Returns:
true when the group has been modified and false otherwise.

getObject

  1. public RASObject getObject()
Deprecated.
Gets a reference to the RAS object created from this configuration.
Returns:
The RASObject.

setObject

  1. public void setObject(RASObject object)
Deprecated.
Sets a reference to the RAS object created from this configuration.
Parameters:
object - The RASObject.

updateActiveObjects

  1. 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

  1. 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.