Package io.aeron.archive.client
Class AeronArchive.Configuration
java.lang.Object
io.aeron.archive.client.AeronArchive.Configuration
- Enclosing class:
- AeronArchive
Common configuration properties for communicating with an Aeron archive.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSystem property to name Archive client.static final StringChannel for sending control messages to an archive.static final intMTU to reflect default for the control streams.static final StringMTU length for control streams.static final StringChannel for receiving control response messages from an archive.static final intStream id within a channel for receiving control messages from an archive.static final StringStream id within a channel for receiving control messages from an archive.static final intStream id within a channel for sending control messages to an archive.static final StringStream id within a channel for sending control messages to an archive.static final intLow term length for control channel reflects expected low bandwidth usage.static final StringTerm length for control streams.static final booleanOverridesConfiguration.TERM_BUFFER_SPARSE_FILE_PROP_NAMEfor if term buffer files are sparse on the control channel.static final StringSparse term buffer indicator for control streams.static final StringChannel for sending control messages to a driver local archive.static final StringChannel for sending control messages to a driver local archive.static final intStream id within a channel for sending control messages to a driver local archive.static final StringStream id within a channel for sending control messages to a driver local archive.static final intDefault number of retry attempts to be made when offering messages to the archive.static final StringThe number of retry attempts to be made when offering messages to the archive.static final longTimeout when waiting on a message to be sent or received.static final StringTimeout in nanoseconds when waiting on a message to be sent or received.static final RecordingSignalConsumerDefault no operationRecordingSignalConsumerto be used when not set explicitly.static final intMajor version of the network protocol from client to archive.static final intMinor version of the network protocol from client to archive.static final intPatch version of the network protocol from client to archive.static final intCombined semantic version for the archive control protocol.static final StringChannel for receiving progress events of recordings from an archive.static final StringChannel for receiving progress events of recordings from an archive.static final booleanChannel enabled for recording progress events of recordings from an archive which defaults to false.static final StringIs channel enabled for recording progress events of recordings from an archive.static final intStream id within a channel for receiving progress of recordings from an archive.static final StringStream id within a channel for receiving progress of recordings from an archive. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGet the configured client name.static StringThe value of system propertyCONTROL_CHANNEL_PROP_NAMEif set, null otherwise.static intMTU length to be used for control request and response streams.static StringThe value of system propertyCONTROL_RESPONSE_CHANNEL_PROP_NAMEif set, null otherwise.static intThe valueCONTROL_RESPONSE_STREAM_ID_DEFAULTor system propertyCONTROL_RESPONSE_STREAM_ID_PROP_NAMEif set.static intThe valueCONTROL_STREAM_ID_DEFAULTor system propertyCONTROL_STREAM_ID_PROP_NAMEif set.static intTerm buffer length to be used for control request and response streams.static booleanShould term buffer files be sparse for control request and response streams.static StringThe valueLOCAL_CONTROL_CHANNEL_DEFAULTor system propertyLOCAL_CONTROL_CHANNEL_PROP_NAMEif set.static intThe valueLOCAL_CONTROL_STREAM_ID_DEFAULTor system propertyLOCAL_CONTROL_STREAM_ID_PROP_NAMEif set.static intThe number of retry attempts to be made when offering messages to the archive.static longThe timeout in nanoseconds to wait for a message.static StringThe value of system propertyRECORDING_EVENTS_CHANNEL_PROP_NAMEif set, null otherwise.static booleanShould the recording events stream be enabled.static intThe valueRECORDING_EVENTS_STREAM_ID_DEFAULTor system propertyRECORDING_EVENTS_STREAM_ID_PROP_NAMEif set.
-
Field Details
-
PROTOCOL_MAJOR_VERSION
public static final int PROTOCOL_MAJOR_VERSIONMajor 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_VERSIONMinor 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_VERSIONPatch 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_VERSIONCombined semantic version for the archive control protocol.- See Also:
-
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_NSTimeout when waiting on a message to be sent or received. -
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_DEFAULTDefault number of retry attempts to be made when offering messages to the archive.- See Also:
-
CONTROL_CHANNEL_PROP_NAME
Channel for sending control messages to an archive.- See Also:
-
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_DEFAULTStream id within a channel for sending control messages to an archive.- See Also:
-
LOCAL_CONTROL_CHANNEL_PROP_NAME
Channel for sending control messages to a driver local archive.- See Also:
-
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
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_DEFAULTStream id within a channel for sending control messages to a driver local archive.- See Also:
-
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 port8020on localhost.aeron:udp?endpoint=192.168.10.10:8020- listen on port8020on192.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
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_DEFAULTStream id within a channel for receiving control messages from an archive.- See Also:
-
RECORDING_EVENTS_CHANNEL_PROP_NAME
Channel for receiving progress events of recordings from an archive.- See Also:
-
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
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_DEFAULTStream id within a channel for receiving progress of recordings from an archive.- See Also:
-
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_DEFAULTChannel enabled for recording progress events of recordings from an archive which defaults to false.- See Also:
-
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_DEFAULTOverridesConfiguration.TERM_BUFFER_SPARSE_FILE_PROP_NAMEfor if term buffer files are sparse on the control channel.- See Also:
-
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_DEFAULTLow term length for control channel reflects expected low bandwidth usage.- See Also:
-
CONTROL_MTU_LENGTH_PROP_NAME
MTU length for control streams.- See Also:
-
CONTROL_MTU_LENGTH_DEFAULT
public static final int CONTROL_MTU_LENGTH_DEFAULTMTU to reflect default for the control streams. -
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
Default no operationRecordingSignalConsumerto be used when not set explicitly.
-
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
messageTimeoutNs
public static long messageTimeoutNs()The timeout in nanoseconds to wait for a message.- Returns:
- timeout in nanoseconds to wait for a message.
- See Also:
-
messageRetryAttempts
public static int messageRetryAttempts()The number of retry attempts to be made when offering messages to the archive.- Returns:
- the number of retry attempts.
- See Also:
-
controlTermBufferSparse
public static boolean controlTermBufferSparse()Should term buffer files be sparse for control request and response streams.- Returns:
trueif term buffer files should be sparse for control request and response streams.- See Also:
-
controlTermBufferLength
public static int controlTermBufferLength()Term buffer length to be used for control request and response streams.- Returns:
- term buffer length to be used for control request and response streams.
- See Also:
-
controlMtuLength
public static int controlMtuLength()MTU length to be used for control request and response streams.- Returns:
- MTU length to be used for control request and response streams.
- See Also:
-
controlChannel
The value of system propertyCONTROL_CHANNEL_PROP_NAMEif set, null otherwise.- Returns:
- system property
CONTROL_CHANNEL_PROP_NAMEif set.
-
controlStreamId
public static int controlStreamId()The valueCONTROL_STREAM_ID_DEFAULTor system propertyCONTROL_STREAM_ID_PROP_NAMEif set.- Returns:
CONTROL_STREAM_ID_DEFAULTor system propertyCONTROL_STREAM_ID_PROP_NAMEif set.
-
localControlChannel
The valueLOCAL_CONTROL_CHANNEL_DEFAULTor system propertyLOCAL_CONTROL_CHANNEL_PROP_NAMEif set.- Returns:
LOCAL_CONTROL_CHANNEL_DEFAULTor system propertyLOCAL_CONTROL_CHANNEL_PROP_NAMEif set.
-
localControlStreamId
public static int localControlStreamId()The valueLOCAL_CONTROL_STREAM_ID_DEFAULTor system propertyLOCAL_CONTROL_STREAM_ID_PROP_NAMEif set.- Returns:
LOCAL_CONTROL_STREAM_ID_DEFAULTor system propertyLOCAL_CONTROL_STREAM_ID_PROP_NAMEif set.
-
controlResponseChannel
The value of system propertyCONTROL_RESPONSE_CHANNEL_PROP_NAMEif set, null otherwise.- Returns:
- of system property
CONTROL_RESPONSE_CHANNEL_PROP_NAMEif set.
-
controlResponseStreamId
public static int controlResponseStreamId()The valueCONTROL_RESPONSE_STREAM_ID_DEFAULTor system propertyCONTROL_RESPONSE_STREAM_ID_PROP_NAMEif set.- Returns:
CONTROL_RESPONSE_STREAM_ID_DEFAULTor system propertyCONTROL_RESPONSE_STREAM_ID_PROP_NAMEif set.
-
recordingEventsChannel
The value of system propertyRECORDING_EVENTS_CHANNEL_PROP_NAMEif set, null otherwise.- Returns:
- system property
RECORDING_EVENTS_CHANNEL_PROP_NAMEif set.
-
recordingEventsStreamId
public static int recordingEventsStreamId()The valueRECORDING_EVENTS_STREAM_ID_DEFAULTor system propertyRECORDING_EVENTS_STREAM_ID_PROP_NAMEif set.- Returns:
RECORDING_EVENTS_STREAM_ID_DEFAULTor system propertyRECORDING_EVENTS_STREAM_ID_PROP_NAMEif set.
-
recordingEventsEnabled
public static boolean recordingEventsEnabled()Should the recording events stream be enabled.- Returns:
trueif the recording events stream be enabled.- See Also:
-
clientName
Get the configured client name.- Returns:
- specified client name or empty string if not set.
- Since:
- 1.49.0
- See Also:
-