Class PBFileInfo
java.lang.Object
edu.stanford.slac.archiverappliance.plain.FileInfo
edu.stanford.slac.archiverappliance.plain.pb.PBFileInfo
Gets some information about PB files.
Important information includes the first and last event.
- Author:
- mshankar
-
Field Summary
Fields inherited from class edu.stanford.slac.archiverappliance.plain.FileInfo
firstEvent, lastEvent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckPayloadInfo(LineByteStream lis, String pvName, ArchDBRTypes type) Checks the payload info and makes sure we are using appropriate files.shortgetInfo()longlonggetType()toString()Methods inherited from class edu.stanford.slac.archiverappliance.plain.FileInfo
getFirstEventInstant, getLastEventInstant
-
Constructor Details
-
PBFileInfo
- Throws:
IOException
-
PBFileInfo
- Throws:
IOException
-
-
Method Details
-
toString
-
getPVName
-
getDataYear
public short getDataYear()- Specified by:
getDataYearin classFileInfo
-
getType
-
getInfo
-
getFirstEvent
- Specified by:
getFirstEventin classFileInfo
-
getLastEvent
- Specified by:
getLastEventin classFileInfo
-
getPositionOfFirstSample
public long getPositionOfFirstSample() -
getPositionOfLastSample
public long getPositionOfLastSample() -
checkPayloadInfo
public static void checkPayloadInfo(LineByteStream lis, String pvName, ArchDBRTypes type) throws IOException Checks the payload info and makes sure we are using appropriate files. This assumes that the lis is positioned at the start and subsequently positions the lis just past the first line. So if we need to position the lis elsewhere, the caller needs to do that manually after this call.- Parameters:
lis- The line bytes streampvName- The PV nametype- Enum ArchDBRTypes- Throws:
IOException-
-