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