Class AeronArchive.Configuration

java.lang.Object
io.aeron.archive.client.AeronArchive.Configuration
Enclosing class:
AeronArchive

public static final class AeronArchive.Configuration extends Object
Common configuration properties for communicating with an Aeron archive.
  • Field Details

    • PROTOCOL_MAJOR_VERSION

      public static final int PROTOCOL_MAJOR_VERSION
      Major version of the network protocol from client to archive. If these don't match then client and archive are not compatible.
      See Also:
    • PROTOCOL_MINOR_VERSION

      public static final int PROTOCOL_MINOR_VERSION
      Minor version of the network protocol from client to archive. If these don't match then some features may not be available.
      See Also:
    • PROTOCOL_PATCH_VERSION

      public static final int PROTOCOL_PATCH_VERSION
      Patch version of the network protocol from client to archive. If these don't match then bug fixes may not have been applied.
      See Also:
    • PROTOCOL_SEMANTIC_VERSION

      public static final int PROTOCOL_SEMANTIC_VERSION
      Combined semantic version for the archive control protocol.
      See Also:
    • MESSAGE_TIMEOUT_PROP_NAME

      public static final String MESSAGE_TIMEOUT_PROP_NAME
      Timeout in nanoseconds when waiting on a message to be sent or received.
      See Also:
    • MESSAGE_TIMEOUT_DEFAULT_NS

      public static final long MESSAGE_TIMEOUT_DEFAULT_NS
      Timeout when waiting on a message to be sent or received.
    • MESSAGE_RETRY_ATTEMPTS_PROP_NAME

      public static final String MESSAGE_RETRY_ATTEMPTS_PROP_NAME
      The number of retry attempts to be made when offering messages to the archive.
      See Also:
    • MESSAGE_RETRY_ATTEMPTS_DEFAULT

      public static final int MESSAGE_RETRY_ATTEMPTS_DEFAULT
      Default number of retry attempts to be made when offering messages to the archive.
      See Also:
    • CONTROL_CHANNEL_PROP_NAME

      public static final String CONTROL_CHANNEL_PROP_NAME
      Channel for sending control messages to an archive.
      See Also:
    • CONTROL_STREAM_ID_PROP_NAME

      public static final String CONTROL_STREAM_ID_PROP_NAME
      Stream id within a channel for sending control messages to an archive.
      See Also:
    • CONTROL_STREAM_ID_DEFAULT

      public static final int CONTROL_STREAM_ID_DEFAULT
      Stream id within a channel for sending control messages to an archive.
      See Also:
    • LOCAL_CONTROL_CHANNEL_PROP_NAME

      public static final String LOCAL_CONTROL_CHANNEL_PROP_NAME
      Channel for sending control messages to a driver local archive.
      See Also:
    • LOCAL_CONTROL_CHANNEL_DEFAULT

      public static final String LOCAL_CONTROL_CHANNEL_DEFAULT
      Channel for sending control messages to a driver local archive. Default to IPC.
      See Also:
    • LOCAL_CONTROL_STREAM_ID_PROP_NAME

      public static final String LOCAL_CONTROL_STREAM_ID_PROP_NAME
      Stream id within a channel for sending control messages to a driver local archive.
      See Also:
    • LOCAL_CONTROL_STREAM_ID_DEFAULT

      public static final int LOCAL_CONTROL_STREAM_ID_DEFAULT
      Stream id within a channel for sending control messages to a driver local archive.
      See Also:
    • CONTROL_RESPONSE_CHANNEL_PROP_NAME

      public static final String CONTROL_RESPONSE_CHANNEL_PROP_NAME
      Channel for receiving control response messages from an archive.

      Channel's endpoint can be specified explicitly (i.e. by providing address and port pair) or by using zero as a port number. Here is an example of valid response channels:

      • aeron:udp?endpoint=localhost:8020 - listen on port 8020 on localhost.
      • aeron:udp?endpoint=192.168.10.10:8020 - listen on port 8020 on 192.168.10.10.
      • aeron:udp?endpoint=localhost:0 - in this case the port is unspecified and the OS will assign a free port from the ephemeral port range.
      See Also:
    • CONTROL_RESPONSE_STREAM_ID_PROP_NAME

      public static final String CONTROL_RESPONSE_STREAM_ID_PROP_NAME
      Stream id within a channel for receiving control messages from an archive.
      See Also:
    • CONTROL_RESPONSE_STREAM_ID_DEFAULT

      public static final int CONTROL_RESPONSE_STREAM_ID_DEFAULT
      Stream id within a channel for receiving control messages from an archive.
      See Also:
    • RECORDING_EVENTS_CHANNEL_PROP_NAME

      public static final String RECORDING_EVENTS_CHANNEL_PROP_NAME
      Channel for receiving progress events of recordings from an archive.
      See Also:
    • RECORDING_EVENTS_CHANNEL_DEFAULT

      public static final String RECORDING_EVENTS_CHANNEL_DEFAULT
      Channel for receiving progress events of recordings from an archive. For production, it is recommended that multicast or dynamic multi-destination-cast (MDC) is used to allow for dynamic subscribers, an endpoint can be added to the subscription side for controlling port usage.
      See Also:
    • RECORDING_EVENTS_STREAM_ID_PROP_NAME

      public static final String RECORDING_EVENTS_STREAM_ID_PROP_NAME
      Stream id within a channel for receiving progress of recordings from an archive.
      See Also:
    • RECORDING_EVENTS_STREAM_ID_DEFAULT

      public static final int RECORDING_EVENTS_STREAM_ID_DEFAULT
      Stream id within a channel for receiving progress of recordings from an archive.
      See Also:
    • RECORDING_EVENTS_ENABLED_PROP_NAME

      public static final String RECORDING_EVENTS_ENABLED_PROP_NAME
      Is channel enabled for recording progress events of recordings from an archive.
      See Also:
    • RECORDING_EVENTS_ENABLED_DEFAULT

      public static final boolean RECORDING_EVENTS_ENABLED_DEFAULT
      Channel enabled for recording progress events of recordings from an archive which defaults to false.
      See Also:
    • CONTROL_TERM_BUFFER_SPARSE_PROP_NAME

      public static final String CONTROL_TERM_BUFFER_SPARSE_PROP_NAME
      Sparse term buffer indicator for control streams.
      See Also:
    • CONTROL_TERM_BUFFER_SPARSE_DEFAULT

      public static final boolean CONTROL_TERM_BUFFER_SPARSE_DEFAULT
      Overrides Configuration.TERM_BUFFER_SPARSE_FILE_PROP_NAME for if term buffer files are sparse on the control channel.
      See Also:
    • CONTROL_TERM_BUFFER_LENGTH_PROP_NAME

      public static final String CONTROL_TERM_BUFFER_LENGTH_PROP_NAME
      Term length for control streams.
      See Also:
    • CONTROL_TERM_BUFFER_LENGTH_DEFAULT

      public static final int CONTROL_TERM_BUFFER_LENGTH_DEFAULT
      Low term length for control channel reflects expected low bandwidth usage.
      See Also:
    • CONTROL_MTU_LENGTH_PROP_NAME

      public static final String CONTROL_MTU_LENGTH_PROP_NAME
      MTU length for control streams.
      See Also:
    • CONTROL_MTU_LENGTH_DEFAULT

      public static final int CONTROL_MTU_LENGTH_DEFAULT
      MTU to reflect default for the control streams.
    • CLIENT_NAME_PROP_NAME

      public static final String CLIENT_NAME_PROP_NAME
      System property to name Archive client. Defaults to empty string.
      Since:
      1.49.0
      See Also:
    • NO_OP_RECORDING_SIGNAL_CONSUMER

      public static final RecordingSignalConsumer NO_OP_RECORDING_SIGNAL_CONSUMER
      Default no operation RecordingSignalConsumer to be used when not set explicitly.
  • Constructor Details

    • Configuration

      public Configuration()
  • Method Details