com.ibm.ras.mgr
Class RASConfig

java.lang.Object
  |
  +--com.ibm.ras.mgr.RASConfig

public class RASConfig
extends java.lang.Object

RASConfig contains the configuration data for a RAS object (a logger or handler).

A RASConfig contains the following items:

See Also:
RASManager, RASILogger, RASIHandler

Constructor Summary
RASConfig(java.util.Hashtable config)
          Creates a RASConfig.
 
Method Summary
 int decrementInUseCount()
          Decrements by one the number of applications which are currently using this RAS object.
 java.util.Hashtable getConfig()
          Gets the configuration data held by this object.
 int getInUseCount()
          Gets the number of applications which are currently using this RAS object.
 RASObject getObject()
          Gets a reference to the RAS object created from this configuration.
 int incrementInUseCount()
          Increments by one the number of applications which are currently using this RAS object.
 void setConfig(java.util.Hashtable config)
          Sets the configuration data held by this object.
 void setInUseCount(int count)
          Sets the number of applications which are currently using this RAS object.
 void setObject(RASObject object)
          Sets a reference to the RAS object created from this configuration.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RASConfig

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

getConfig

public java.util.Hashtable getConfig()
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)
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()
Gets the number of applications which are currently using this RAS object.
Returns:
The in-use count.

setInUseCount

public void setInUseCount(int count)
Sets the number of applications which are currently using this RAS object.
Parameters:
count - The in-use count.

incrementInUseCount

public int incrementInUseCount()
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()
Decrements by one the number of applications which are currently using this RAS object.
Returns:
The in-use count, after it has been decremented.

getObject

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

setObject

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