Class LossReportUtil

java.lang.Object
io.aeron.driver.reports.LossReportUtil

public final class LossReportUtil extends Object
Utility functions for dealing with the Loss Report.
  • Field Details

    • LOSS_REPORT_FILE_NAME

      public static final String LOSS_REPORT_FILE_NAME
      Name of the error report file in the Aeron directory.
      See Also:
  • Constructor Details

    • LossReportUtil

      public LossReportUtil()
  • Method Details

    • file

      public static File file(String aeronDirectoryName)
      Create a new File object for the loss report.
      Parameters:
      aeronDirectoryName - in which the loss report should exist.
      Returns:
      the new File for the loss report.
    • mapLossReport

      public static MappedByteBuffer mapLossReport(String aeronDirectoryName, int reportFileLength)
      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

      public static MappedByteBuffer mapLossReportReadOnly(String aeronDirectoryName)
      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.