com.ibm.ras.mgr
Class RASPropertyDataStore
- java.lang.Object
-
- com.ibm.ras.mgr.RASPropertyDataStore
-
- All Implemented Interfaces:
- RASIDataStore, RASConstants
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 theRASIDataStore
interface which uses a properties file of a specific format to contain the RAS configuration. The filecom/ibm/ras/samples/RASSampleDataStore.properties
describes this format.
-
-
Field Summary
-
Fields inherited from interface com.ibm.ras.RASConstants
KEY_CLASS_NAME, KEY_CLIENT, KEY_COMPONENT, KEY_DATE_FORMAT, KEY_DEFAULT_HANDLERS, KEY_DEFAULT_MESSAGE_HANDLERS, KEY_DEFAULT_TRACE_HANDLERS, KEY_DESCRIPTION, KEY_ENCODING, KEY_EXCEPTION, KEY_EXCEPTION_TRACE, KEY_FILE_NAME, KEY_FORMATTER_NAMES, KEY_GROUP, KEY_HANDLER_NAMES, KEY_HEX_DATA, KEY_IS_CIRCULAR, KEY_IS_LOGGING, KEY_IS_SYNC, KEY_LOGGER, KEY_LOGGING_CLASS, KEY_LOGGING_METHOD, KEY_MAX_FILE_SIZE, KEY_MAX_FILES, KEY_MAX_QUEUE_SIZE, KEY_MESSAGE_EVENT_CLASSES, KEY_MESSAGE_FILE, KEY_MESSAGE_MASK, KEY_NAME, KEY_ORGANIZATION, KEY_PRODUCT, KEY_RETRY_INTERVAL, KEY_SEPARATOR, KEY_SERVER, KEY_SOCKET_PORT, KEY_SOCKET_SERVER, KEY_SUPPRESSED_KEYS, KEY_THREAD_ID, KEY_TIME_FORMAT, KEY_TRACE_EVENT_CLASSES, KEY_TRACE_MASK, RAS_VERSION
-
-
Constructor Summary
Constructors Constructor and Description RASPropertyDataStore(java.util.Properties props)
Deprecated.Creates aRASPropertyDataStore
.RASPropertyDataStore(java.lang.String name)
Deprecated.Creates aRASPropertyDataStore
.
-
Method Summary
Methods Modifier and Type Method and Description java.util.Properties
getPropertyDataStore()
Deprecated.Gets the properties file used as the persistent data store.RASBaseGroup
restoreConfig()
Deprecated.Restores theRASManager
configuration from persistent storage.void
saveConfig(RASBaseGroup baseGroup)
Deprecated.Saves theRASManager
configuration to persistent storage.void
setPropertyDataStore(java.util.Properties props)
Deprecated.Sets the properties file used as the persistent data store.
-
-
-
Constructor Detail
-
RASPropertyDataStore
public RASPropertyDataStore(java.util.Properties props)
Deprecated.Creates aRASPropertyDataStore
.- Parameters:
props
- The persistent store, aProperties
file.
-
RASPropertyDataStore
public RASPropertyDataStore(java.lang.String name) throws RASIOException
Deprecated.Creates aRASPropertyDataStore
.- Parameters:
name
- The name of the properties file containing the configuration. The properties file is loaded through the methodClass.getResourceAsStream
. The name must conform to the conventions of this method.- Throws:
RASIOException
- ARASIOException
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 theRASManager
configuration from persistent storage. This method is called automatically when theRASManager
is created and can be called anytime the stored configuration should be reloaded.- Specified by:
restoreConfig
in interfaceRASIDataStore
- Returns:
- A
RASBaseGroup
which holds the configuration loaded from persistent store. - Throws:
RASIOException
- ARASIOException
is thrown if an error occurs while loading the configuration from the data store.
-
saveConfig
public void saveConfig(RASBaseGroup baseGroup) throws RASIOException
Deprecated.Saves theRASManager
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 interfaceRASIDataStore
- Parameters:
baseGroup
- TheRASBaseGroup
which holds the configuration to be saved in persistent store.- Throws:
RASIOException
- ARASIOException
is thrown if an error occurs while saving the configuration to the data store.
-
-