Class StoragePluginURLParser
- java.lang.Object
-
- org.epics.archiverappliance.config.StoragePluginURLParser
-
public class StoragePluginURLParser extends Object
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 PlainPBStoragePlugin.- The
pb
prefix initializesPlainPBStoragePlugin
. - The
pbraw
prefix initializesPBOverHTTPStoragePlugin
. - The
blackhole
prefix initializesBlackholeStoragePlugin
. - The
rtree
prefix initializesChannelArchiverReadOnlyPlugin
.
- Author:
- mshankar
- The
-
-
Constructor Summary
Constructors Constructor Description StoragePluginURLParser()
-
Method Summary
Modifier and Type Method Description static ETLDest
parseETLDest(String srcURIStr, ConfigService configService)
static ETLSource
parseETLSource(String srcURIStr, ConfigService configService)
static StoragePlugin
parseStoragePlugin(String srcURIStr, ConfigService configService)
-
-
-
Method Detail
-
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
-
-