Interface ConfigPersistence
- All Known Implementing Classes:
InMemoryPersistence,JDBM2Persistence,MySQLPersistence,RedisPersistence
public interface ConfigPersistence
Interface for persisting configuration
These are the pieces of configuration - all of these are key/value; keys are strings, values are typically JSON strings or plain strings.
- Map<String, PVTypeInfo> typeInfos
- Map<String, UserSpecifiedSamplingParams> archivePVRequests
- Map<String, String> externalDataServer
- Map<String, String> aliasNamesToRealNames
- Author:
- mshankar
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteTypeInfo(String pvName) getAliasNamesForRealName(String realName) getAliasNamesToRealName(String pvName) getAllTypeInfosForAppliance(String applianceIdentity) getArchivePVRequest(String pvName) getExternalDataServer(String serverId) getTypeInfo(String pvName) default voidinitialize(ConfigService configService) 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)
-
Method Details
-
initialize
-
getTypeInfoKeys
- Throws:
IOException
-
getTypeInfo
- Throws:
IOException
-
getAllTypeInfosForAppliance
- Throws:
IOException
-
putTypeInfo
- Throws:
IOException
-
deleteTypeInfo
- Throws:
IOException
-
getArchivePVRequestsKeys
- Throws:
IOException
-
getArchivePVRequest
- Throws:
IOException
-
putArchivePVRequest
- Throws:
IOException
-
removeArchivePVRequest
- Throws:
IOException
-
getExternalDataServersKeys
- Throws:
IOException
-
getExternalDataServer
- Throws:
IOException
-
putExternalDataServer
- Throws:
IOException
-
removeExternalDataServer
- Throws:
IOException
-
getAliasNamesToRealNamesKeys
- Throws:
IOException
-
getAliasNamesToRealName
- Throws:
IOException
-
getAliasNamesForRealName
- Throws:
IOException
-
putAliasNamesToRealName
- Throws:
IOException
-
removeAliasName
- Throws:
IOException
-