Class LineByteStreamCreator
- java.lang.Object
-
- edu.stanford.slac.archiverappliance.PlainPB.LineByteStreamCreator
-
public class LineByteStreamCreator extends Object
When using a MultiFileEventStream on a HOUR granularity, we could potentially run into "too many open files" issues. So we add a level of indirection for this case.- Author:
- mshankar
-
-
Constructor Summary
Constructors Constructor Description LineByteStreamCreator(LineByteStream lis, String pvName, ArchDBRTypes type)
In this case we get a correctly positioned LISLineByteStreamCreator(Path path, String pvName, ArchDBRTypes type)
In this case, we get a whole file We need to position the lis past the header before returning.
-
-
-
Constructor Detail
-
LineByteStreamCreator
public LineByteStreamCreator(LineByteStream lis, String pvName, ArchDBRTypes type)
In this case we get a correctly positioned LIS- Parameters:
lis
- The line bytes streampvName
- the PV nametype
- Enum ArchDBRTypes
-
LineByteStreamCreator
public LineByteStreamCreator(Path path, String pvName, ArchDBRTypes type)
In this case, we get a whole file We need to position the lis past the header before returning.- Parameters:
path
- PathpvName
- The PV nametype
- Enum ArchDBRTypes
-
-
Method Detail
-
getLineByteStream
public LineByteStream getLineByteStream() throws IOException
- Throws:
IOException
-
safeClose
public void safeClose()
-
-