|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.ras.mgr.RASPropertyDataStore
public class RASPropertyDataStore
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 | |
---|---|
RASPropertyDataStore(java.util.Properties props)
Deprecated. Creates a RASPropertyDataStore . |
|
RASPropertyDataStore(java.lang.String name)
Deprecated. Creates a RASPropertyDataStore . |
Method Summary | |
---|---|
java.util.Properties |
getPropertyDataStore()
Deprecated. Gets the properties file used as the persistent data store. |
RASBaseGroup |
restoreConfig()
Deprecated. Restores the RASManager configuration from persistent
storage. |
void |
saveConfig(RASBaseGroup baseGroup)
Deprecated. Saves the RASManager configuration to persistent
storage. |
void |
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 |
---|
public RASPropertyDataStore(java.util.Properties props)
RASPropertyDataStore
.
props
- The persistent store, a Properties
file.public RASPropertyDataStore(java.lang.String name) throws RASIOException
RASPropertyDataStore
.
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.
RASIOException
- A RASIOException
is thrown if the file cannot be opened.Method Detail |
---|
public java.util.Properties getPropertyDataStore()
public void setPropertyDataStore(java.util.Properties props)
props
- The properties file.public RASBaseGroup restoreConfig() throws RASIOException
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.
restoreConfig
in interface RASIDataStore
RASBaseGroup
which holds the configuration
loaded from persistent store.
RASIOException
- A RASIOException
is thrown if an error occurs
while loading the configuration from the data store.public void saveConfig(RASBaseGroup baseGroup) throws RASIOException
RASManager
configuration to persistent
storage.
This particular implementation assumes that the persistent store is static -- it cannot be updated. This method performs no function.
saveConfig
in interface RASIDataStore
baseGroup
- The RASBaseGroup
which holds the
configuration to be saved in persistent store.
RASIOException
- A RASIOException
is thrown if an error occurs
while saving the configuration to the data store.
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |