Class StoragePluginURLParser
java.lang.Object
org.epics.archiverappliance.config.StoragePluginURLParser
Parses a URL representation of a storage plugin.
Storage plugins can optionally implement ETLSource, ETLDest and perhaps other interfaces.
This is one stop shopping for initializing all of these from a URL representation.
For example,
pb://localhost?name=LTS&rootFolder=${ARCHAPPL_LONG_TERM_FOLDER}&partitionGranularity=PARTITION_YEAR will initialize a PlainStoragePlugin.
- The
pbprefix initializesPlainStoragePlugin. - The
pbrawprefix initializesPBOverHTTPStoragePlugin. - The
blackholeprefix initializesBlackholeStoragePlugin. - The
rtreeprefix initializesChannelArchiverReadOnlyPlugin.
- Author:
- mshankar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ETLDestparseETLDest(String srcURIStr, ConfigService configService) static ETLSourceparseETLSource(String srcURIStr, ConfigService configService) static StoragePluginparseStoragePlugin(String srcURIStr, ConfigService configService)
-
Constructor Details
-
StoragePluginURLParser
public StoragePluginURLParser()
-
-
Method Details
-
parseStoragePlugin
public static StoragePlugin parseStoragePlugin(String srcURIStr, ConfigService configService) throws IOException - Throws:
IOException
-
parseETLSource
public static ETLSource parseETLSource(String srcURIStr, ConfigService configService) throws IOException - Throws:
IOException
-
parseETLDest
public static ETLDest parseETLDest(String srcURIStr, ConfigService configService) throws IOException - Throws:
IOException
-