Class PBPlainFileHandler
java.lang.Object
edu.stanford.slac.archiverappliance.plain.pb.PBPlainFileHandler
- All Implemented Interfaces:
PlainFileHandler,PlainStreams
-
Field Summary
FieldsFields inherited from interface edu.stanford.slac.archiverappliance.plain.PlainFileHandler
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendDataStateData(Instant timestamp, PartitionGranularity partitionGranularity, String rootFolder, String desc, PVNameToKeyMapping pv2key) booleanbackUpFiles(boolean backupFilesBeforeETL) dataAtTime(List<Path> pathList, String pvName, Instant atTime, Instant startAtTime, BiDirectionalIterable.IterationDirection direction) voiddataDeleteTempFiles(BasicContext context, String pvName, String randSuffix, String rootFolder, PVNameToKeyMapping pv2key) voiddataMovePaths(BasicContext context, String pvName, String randSuffix, String suffix, String rootFolder, PVNameToKeyMapping pv2key) findByTime(List<Path> pathList, String pvName, Instant atTime, Instant startAtTime, BiDirectionalIterable.IterationDirection direction) getPathKey(Path path) getStream(String pvName, Path path, ArchDBRTypes dbrType) static EventStreamgetStreamForIteration(String pvName, Path path, Instant startAtTime, ArchDBRTypes archDBRTypes, BiDirectionalIterable.IterationDirection direction) getTimeStream(String pvName, Path path, Instant start, Instant end, boolean skipSearch, FileInfo fileInfo) getTimeStream(String pvName, Path path, ArchDBRTypes dbrType, Instant start, Instant end, boolean skipSearch) voidinitCompression(Map<String, String> queryStrings) voidmarkForDeletion(Path path) optimisedETLInfoListProcessor(ETLDest etlDest) rootFolderPath(String rootFolder) toString()updateRootFolderStr(String rootFolderStr) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.stanford.slac.archiverappliance.plain.PlainFileHandler
getExtensionString
-
Field Details
-
PB_PLUGIN_IDENTIFIER
- See Also:
-
pbFileExtension
- See Also:
-
SIZE_THAT_DETERMINES_A_SMALL_FILE
public static int SIZE_THAT_DETERMINES_A_SMALL_FILE
-
-
Constructor Details
-
PBPlainFileHandler
public PBPlainFileHandler()
-
-
Method Details
-
pluginIdentifier
- Specified by:
pluginIdentifierin interfacePlainFileHandler
-
getPathResolver
- Specified by:
getPathResolverin interfacePlainFileHandler
-
useSearchForPositions
public boolean useSearchForPositions()- Specified by:
useSearchForPositionsin interfacePlainFileHandler
-
rootFolderPath
- Specified by:
rootFolderPathin interfacePlainFileHandler
-
initCompression
- Specified by:
initCompressionin interfacePlainFileHandler
-
fileInfo
- Specified by:
fileInfoin interfacePlainFileHandler- Throws:
IOException
-
toString
-
getTimeStream
public EventStream getTimeStream(String pvName, Path path, ArchDBRTypes dbrType, Instant start, Instant end, boolean skipSearch) throws IOException - Specified by:
getTimeStreamin interfacePlainStreams- Throws:
IOException
-
getTimeStream
public EventStream getTimeStream(String pvName, Path path, Instant start, Instant end, boolean skipSearch, FileInfo fileInfo) throws IOException - Specified by:
getTimeStreamin interfacePlainStreams- Throws:
IOException
-
getStream
- Specified by:
getStreamin interfacePlainStreams- Throws:
IOException
-
appendDataStateData
public AppendDataStateData appendDataStateData(Instant timestamp, PartitionGranularity partitionGranularity, String rootFolder, String desc, PVNameToKeyMapping pv2key) - Specified by:
appendDataStateDatain interfacePlainFileHandler
-
markForDeletion
- Specified by:
markForDeletionin interfacePlainFileHandler
-
dataMovePaths
public void dataMovePaths(BasicContext context, String pvName, String randSuffix, String suffix, String rootFolder, PVNameToKeyMapping pv2key) throws IOException - Specified by:
dataMovePathsin interfacePlainFileHandler- Throws:
IOException
-
dataDeleteTempFiles
public void dataDeleteTempFiles(BasicContext context, String pvName, String randSuffix, String rootFolder, PVNameToKeyMapping pv2key) throws IOException - Specified by:
dataDeleteTempFilesin interfacePlainFileHandler- Throws:
IOException
-
optimisedETLInfoListProcessor
- Specified by:
optimisedETLInfoListProcessorin interfacePlainFileHandler
-
findByTime
public Event findByTime(List<Path> pathList, String pvName, Instant atTime, Instant startAtTime, BiDirectionalIterable.IterationDirection direction) throws IOException - Throws:
IOException
-
getStreamForIteration
public static EventStream getStreamForIteration(String pvName, Path path, Instant startAtTime, ArchDBRTypes archDBRTypes, BiDirectionalIterable.IterationDirection direction) throws IOException - Throws:
IOException
-
dataAtTime
public Event dataAtTime(List<Path> pathList, String pvName, Instant atTime, Instant startAtTime, BiDirectionalIterable.IterationDirection direction) throws IOException - Specified by:
dataAtTimein interfacePlainStreams- Throws:
IOException
-
updateRootFolderStr
- Specified by:
updateRootFolderStrin interfacePlainFileHandler
-
backUpFiles
public boolean backUpFiles(boolean backupFilesBeforeETL) - Specified by:
backUpFilesin interfacePlainFileHandler
-
urlOptions
- Specified by:
urlOptionsin interfacePlainFileHandler
-
getPathKey
- Specified by:
getPathKeyin interfacePlainFileHandler
-