com.ibm.ras.mgr
Class RASPropertyDataStore
- java.lang.Object
com.ibm.ras.mgr.RASPropertyDataStore
All implemented interfaces:
Deprecated. As of WAS 6.0, recommend using java.util.logging
- public class RASPropertyDataStore
- extends java.lang.Object
- implements RASConstants, RASIDataStore
RASPropertyDataStore
is an implementation of the
RASIDataStore
interface which uses a properties
file of a specific format to contain the RAS configuration. The file
com/ibm/ras/samples/RASSampleDataStore.properties
describes this format.
Field Summary
Constructor Summary
Constructor and Description |
---|
RASPropertyDataStore(java.util.Properties props)
Deprecated. Creates a
RASPropertyDataStore .
|
RASPropertyDataStore(java.lang.String name)
Deprecated. Creates a
RASPropertyDataStore .
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getPropertyDataStore()
Deprecated. Gets the properties file used as the persistent data store.
|
restoreConfig()
Deprecated. Restores the
RASManager configuration from persistent
storage.
|
|
|
saveConfig(RASBaseGroup baseGroup)
Deprecated. Saves the
RASManager configuration to persistent
storage.
|
|
setPropertyDataStore(java.util.Properties props)
Deprecated. Sets the properties file used as the persistent data store.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
RASPropertyDataStore
- public RASPropertyDataStore(java.util.Properties props)
Deprecated.
Parameters:
props
- The persistent store, a Properties
file. RASPropertyDataStore
- public RASPropertyDataStore(java.lang.String name)
- throws RASIOException
Deprecated.
Creates a
RASPropertyDataStore
.
Parameters:
name
- The name of the properties file containing the
configuration. The properties file is loaded through the
method Class.getResourceAsStream
. The name
must conform to the conventions of this method. Throws:
RASIOException
- A RASIOException
is thrown if the file cannot be opened. Method Detail
getPropertyDataStore
- public java.util.Properties getPropertyDataStore( )
Deprecated.
Gets the properties file used as the persistent data store.
Returns:
The properties file
setPropertyDataStore
- public void setPropertyDataStore( java.util.Properties props)
Deprecated.
Sets the properties file used as the persistent data store.
Parameters:
props
- The properties file. restoreConfig
- public RASBaseGroup restoreConfig( )
- throws RASIOException
Deprecated.
Restores the
RASManager
configuration from persistent
storage. This method is called automatically when the
RASManager
is created and can be called anytime the
stored configuration should be reloaded.
Specified by:
restoreConfig
in interface RASIDataStore
Returns:
A
RASBaseGroup
which holds the configuration
loaded from persistent store. Throws:
RASIOException
- A RASIOException
is thrown if an error occurs
while loading the configuration from the data store. saveConfig
- public void saveConfig(RASBaseGroup baseGroup)
- throws RASIOException
Deprecated.
Saves the
RASManager
configuration to persistent
storage.
This particular implementation assumes that the persistent store is static -- it cannot be updated. This method performs no function.
Specified by:
saveConfig
in interface RASIDataStore
Parameters:
baseGroup
- The RASBaseGroup
which holds the
configuration to be saved in persistent store. Throws:
RASIOException
- A RASIOException
is thrown if an error occurs
while saving the configuration to the data store.
RASPropertyDataStore
.