Class JDBM2Persistence
java.lang.Object
org.epics.archiverappliance.config.persistence.JDBM2Persistence
- All Implemented Interfaces:
ConfigPersistence
Uses JDBM2 as a persistence layer; probably not for production installations as JDBM2 does not support concurrent access and so on.
To set the path to the JDBM2 file, use the environment variable ARCHAPPL_PERSISTENCE_LAYER_JDBM2FILENAME.
This defaults to
./archapplconfig.jdbm2
To use this persistence layer, use
export ARCHAPPL_PERSISTENCE_LAYER="org.epics.archiverappliance.config.persistence.JDBM2Persistence" export ARCHAPPL_PERSISTENCE_LAYER_JDBM2FILENAME="/scratch/Archiver/persistence.jdbm2"
- Author:
- mshankar
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteTypeInfo(String pvName) getAliasNamesToRealName(String pvName) getAllTypeInfosForAppliance(String applianceIdentity) getArchivePVRequest(String pvName) getExternalDataServer(String serverId) getTypeInfo(String pvName) voidputAliasNamesToRealName(String pvName, String realName) voidputArchivePVRequest(String pvName, UserSpecifiedSamplingParams userParams) voidputExternalDataServer(String serverId, String serverInfo) voidputTypeInfo(String pvName, PVTypeInfo typeInfo) voidremoveAliasName(String pvName, String realName) voidremoveArchivePVRequest(String pvName) voidremoveExternalDataServer(String serverId, String serverInfo) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.epics.archiverappliance.config.ConfigPersistence
getAliasNamesForRealName, initialize
-
Field Details
-
ARCHAPPL_JDBM2_FILENAME
- See Also:
-
-
Constructor Details
-
JDBM2Persistence
- Throws:
ConfigException
-
-
Method Details
-
getTypeInfoKeys
- Specified by:
getTypeInfoKeysin interfaceConfigPersistence- Throws:
IOException
-
getAllTypeInfosForAppliance
- Specified by:
getAllTypeInfosForAppliancein interfaceConfigPersistence- Throws:
IOException
-
getTypeInfo
- Specified by:
getTypeInfoin interfaceConfigPersistence- Throws:
IOException
-
putTypeInfo
- Specified by:
putTypeInfoin interfaceConfigPersistence- Throws:
IOException
-
deleteTypeInfo
- Specified by:
deleteTypeInfoin interfaceConfigPersistence- Throws:
IOException
-
getArchivePVRequestsKeys
- Specified by:
getArchivePVRequestsKeysin interfaceConfigPersistence- Throws:
IOException
-
getArchivePVRequest
- Specified by:
getArchivePVRequestin interfaceConfigPersistence- Throws:
IOException
-
putArchivePVRequest
public void putArchivePVRequest(String pvName, UserSpecifiedSamplingParams userParams) throws IOException - Specified by:
putArchivePVRequestin interfaceConfigPersistence- Throws:
IOException
-
removeArchivePVRequest
- Specified by:
removeArchivePVRequestin interfaceConfigPersistence- Throws:
IOException
-
getExternalDataServersKeys
- Specified by:
getExternalDataServersKeysin interfaceConfigPersistence- Throws:
IOException
-
getExternalDataServer
- Specified by:
getExternalDataServerin interfaceConfigPersistence- Throws:
IOException
-
putExternalDataServer
- Specified by:
putExternalDataServerin interfaceConfigPersistence- Throws:
IOException
-
removeExternalDataServer
- Specified by:
removeExternalDataServerin interfaceConfigPersistence- Throws:
IOException
-
getAliasNamesToRealNamesKeys
- Specified by:
getAliasNamesToRealNamesKeysin interfaceConfigPersistence- Throws:
IOException
-
getAliasNamesToRealName
- Specified by:
getAliasNamesToRealNamein interfaceConfigPersistence- Throws:
IOException
-
putAliasNamesToRealName
- Specified by:
putAliasNamesToRealNamein interfaceConfigPersistence- Throws:
IOException
-
removeAliasName
- Specified by:
removeAliasNamein interfaceConfigPersistence- Throws:
IOException
-