Package io.aeron.archive
Class CatalogView
java.lang.Object
io.aeron.archive.CatalogView
Read only view of a
Catalog which can be used for listing entries.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanlistRecording(File archiveDir, long recordingId, RecordingDescriptorConsumer consumer) List a recording descriptor for a single recording id.static intlistRecordings(File archiveDir, RecordingDescriptorConsumer consumer) List all recording descriptors in aCatalog.
-
Constructor Details
-
CatalogView
public CatalogView()
-
-
Method Details
-
listRecordings
List all recording descriptors in aCatalog.- Parameters:
archiveDir- the directory containing theCatalog.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 theCatalog.recordingId- to viewconsumer- to which the descriptor are dispatched.- Returns:
- the true of a descriptor is found.
-