|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ras.mgr.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.
RASIDataStore
Constructor Summary | |
RASPropertyDataStore(java.util.Properties props)
Creates a RASPropertyDataStore . |
|
RASPropertyDataStore(java.lang.String name)
Creates a RASPropertyDataStore . |
Method Summary | |
java.util.Properties |
getPropertyDataStore()
Gets the properties file used as the persistent data store. |
void |
restoreConfig(RASBaseGroup baseGroup)
Restores the RASManager configuration from persistent
storage. |
void |
saveConfig(RASBaseGroup baseGroup)
Saves the RASManager configuration to persistent
storage. |
void |
setPropertyDataStore(java.util.Properties props)
Sets the properties file used as the persistent data store. |
Methods inherited from class java.lang.Object |
equals,
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 java.io.IOException
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.IOException
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 filepublic void restoreConfig(RASBaseGroup baseGroup)
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.baseGroup
- The RASBaseGroup
which holds the
configuration loaded from persistent store.public void saveConfig(RASBaseGroup baseGroup)
RASManager
configuration to persistent
storage.
This particular implementation assumes that the persistent store is static -- it cannot be updated. This method does nothing.
baseGroup
- The RASBaseGroup
which holds the
configuration to be saved in persistent store.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |