Package io.aeron.driver.reports
Class LossReportUtil
java.lang.Object
io.aeron.driver.reports.LossReportUtil
Utility functions for dealing with the Loss Report.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the error report file in the Aeron directory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileCreate a newFileobject for the loss report.static MappedByteBuffermapLossReport(String aeronDirectoryName, int reportFileLength) Map a new loss report in the Aeron directory for a given length.static MappedByteBuffermapLossReportReadOnly(String aeronDirectoryName) Map a new loss report in the Aeron directory for a given length.
-
Field Details
-
LOSS_REPORT_FILE_NAME
Name of the error report file in the Aeron directory.- See Also:
-
-
Constructor Details
-
LossReportUtil
public LossReportUtil()
-
-
Method Details
-
file
Create a newFileobject for the loss report.- Parameters:
aeronDirectoryName- in which the loss report should exist.- Returns:
- the new
Filefor the loss report.
-
mapLossReport
Map a new loss report in the Aeron directory for a given length.- Parameters:
aeronDirectoryName- in which to create the file.reportFileLength- for the file.- Returns:
- the newly mapped buffer for the file.
-
mapLossReportReadOnly
Map a new loss report in the Aeron directory for a given length.- Parameters:
aeronDirectoryName- containing the file- Returns:
- the read only mapped buffer for the file.
-