Class LineByteStreamCreator
java.lang.Object
edu.stanford.slac.archiverappliance.plain.pb.LineByteStreamCreator
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
ConstructorsConstructorDescriptionLineByteStreamCreator(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. -
Method Summary
-
Constructor Details
-
LineByteStreamCreator
In this case we get a correctly positioned LIS- Parameters:
lis- The line bytes streampvName- the PV nametype- Enum ArchDBRTypes
-
LineByteStreamCreator
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 Details
-
getLineByteStream
- Throws:
IOException
-
safeClose
public void safeClose()
-