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 Type Method Description void
deleteTypeInfo(String pvName)
String
getAliasNamesToRealName(String pvName)
List<String>
getAliasNamesToRealNamesKeys()
List<PVTypeInfo>
getAllTypeInfosForAppliance(String applianceIdentity)
UserSpecifiedSamplingParams
getArchivePVRequest(String pvName)
List<String>
getArchivePVRequestsKeys()
String
getExternalDataServer(String serverId)
List<String>
getExternalDataServersKeys()
PVTypeInfo
getTypeInfo(String pvName)
List<String>
getTypeInfoKeys()
default void
initialize(ConfigService configService)
void
putAliasNamesToRealName(String pvName, String realName)
void
putArchivePVRequest(String pvName, UserSpecifiedSamplingParams userParams)
void
putExternalDataServer(String serverId, String serverInfo)
void
putTypeInfo(String pvName, PVTypeInfo typeInfo)
void
removeAliasName(String pvName, String realName)
void
removeArchivePVRequest(String pvName)
void
removeExternalDataServer(String serverId, String serverInfo)
-
-
-
Method Detail
-
initialize
default void initialize(ConfigService configService)
-
getTypeInfoKeys
List<String> getTypeInfoKeys() throws IOException
- Throws:
IOException
-
getTypeInfo
PVTypeInfo getTypeInfo(String pvName) throws IOException
- Throws:
IOException
-
getAllTypeInfosForAppliance
List<PVTypeInfo> getAllTypeInfosForAppliance(String applianceIdentity) throws IOException
- Throws:
IOException
-
putTypeInfo
void putTypeInfo(String pvName, PVTypeInfo typeInfo) throws IOException
- Throws:
IOException
-
deleteTypeInfo
void deleteTypeInfo(String pvName) throws IOException
- Throws:
IOException
-
getArchivePVRequestsKeys
List<String> getArchivePVRequestsKeys() throws IOException
- Throws:
IOException
-
getArchivePVRequest
UserSpecifiedSamplingParams getArchivePVRequest(String pvName) throws IOException
- Throws:
IOException
-
putArchivePVRequest
void putArchivePVRequest(String pvName, UserSpecifiedSamplingParams userParams) throws IOException
- Throws:
IOException
-
removeArchivePVRequest
void removeArchivePVRequest(String pvName) throws IOException
- Throws:
IOException
-
getExternalDataServersKeys
List<String> getExternalDataServersKeys() throws IOException
- Throws:
IOException
-
getExternalDataServer
String getExternalDataServer(String serverId) throws IOException
- Throws:
IOException
-
putExternalDataServer
void putExternalDataServer(String serverId, String serverInfo) throws IOException
- Throws:
IOException
-
removeExternalDataServer
void removeExternalDataServer(String serverId, String serverInfo) throws IOException
- Throws:
IOException
-
getAliasNamesToRealNamesKeys
List<String> getAliasNamesToRealNamesKeys() throws IOException
- Throws:
IOException
-
getAliasNamesToRealName
String getAliasNamesToRealName(String pvName) throws IOException
- Throws:
IOException
-
putAliasNamesToRealName
void putAliasNamesToRealName(String pvName, String realName) throws IOException
- Throws:
IOException
-
removeAliasName
void removeAliasName(String pvName, String realName) throws IOException
- Throws:
IOException
-
-