Package io.aeron.archive
Class Archive
java.lang.Object
io.aeron.archive.Archive
- All Implemented Interfaces:
AutoCloseable
The Aeron Archive which allows for the recording and replay of local and remote
Publications.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration for system properties and defaults.static final classOverrides for the defaults and system properties. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()context()Get theArchive.Contextthat is used by thisArchive.invoker()Get theAgentInvokerfor the archive if it is running inArchiveThreadingMode.INVOKER.static Archivelaunch()Launch an Archive using a default configuration.static Archivelaunch(Archive.Context ctx) Launch an Archive by providing a configuration context.static voidLaunch anArchivewith that communicates with an out of processMediaDriverand await a shutdown signal.
-
Method Details
-
main
Launch anArchivewith that communicates with an out of processMediaDriverand await a shutdown signal.- Parameters:
args- command line argument which is a list for properties files as URLs or filenames.
-
context
Get theArchive.Contextthat is used by thisArchive.- Returns:
- the
Archive.Contextthat is used by thisArchive.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
invoker
Get theAgentInvokerfor the archive if it is running inArchiveThreadingMode.INVOKER.- Returns:
- the
AgentInvokerfor the archive if it is running inArchiveThreadingMode.INVOKERotherwise null.
-
launch
Launch an Archive using a default configuration.- Returns:
- a new instance of an Archive.
-
launch
Launch an Archive by providing a configuration context.- Parameters:
ctx- for the configuration parameters.- Returns:
- a new instance of an Archive.
-