Class MySQLPersistence
java.lang.Object
org.epics.archiverappliance.config.persistence.MySQLPersistence
- All Implemented Interfaces:
ConfigPersistence
Persistence layer ontop of MySQL TEXT(blobs) on InnoDB
Bear in mind, an untuned mysql server does poorly in terms of performance.
At the minimum consider using innodb_flush_log_at_trx_commit=0 if you plan to import large numbers of pvs etc.
- Author:
- mshankar
-
Constructor Summary
Constructors -
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) 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
initialize
-
Constructor Details
-
MySQLPersistence
- 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
-
getAliasNamesForRealName
- Specified by:
getAliasNamesForRealNamein interfaceConfigPersistence- Throws:
IOException
-
putAliasNamesToRealName
- Specified by:
putAliasNamesToRealNamein interfaceConfigPersistence- Throws:
IOException
-
removeAliasName
- Specified by:
removeAliasNamein interfaceConfigPersistence- Throws:
IOException
-