Class CatalogView

java.lang.Object
io.aeron.archive.CatalogView

public class CatalogView extends Object
Read only view of a Catalog which can be used for listing entries.
  • Constructor Details

    • CatalogView

      public CatalogView()
  • Method Details

    • listRecordings

      public static int listRecordings(File archiveDir, RecordingDescriptorConsumer consumer)
      List all recording descriptors in a Catalog.
      Parameters:
      archiveDir - the directory containing the Catalog.
      consumer - to which the descriptor are dispatched.
      Returns:
      the count of entries listed.
    • listRecording

      public static boolean listRecording(File archiveDir, long recordingId, RecordingDescriptorConsumer consumer)
      List a recording descriptor for a single recording id.

      If the recording id is not found then nothing is returned.

      Parameters:
      archiveDir - the directory containing the Catalog.
      recordingId - to view
      consumer - to which the descriptor are dispatched.
      Returns:
      the true of a descriptor is found.