public static final class ClusteredServiceContainer.Configuration extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CLUSTER_DIR_DEFAULT
Default directory to use for the aeron cluster.
|
static String |
CLUSTER_DIR_PROP_NAME
Directory to use for the aeron cluster.
|
static int |
CLUSTER_ID_DEFAULT
Default identity for a clustered instance.
|
static String |
CLUSTER_ID_PROP_NAME
Property name for the identity of the cluster instance.
|
static String |
CLUSTER_IDLE_STRATEGY_PROP_NAME
IdleStrategy to be employed for cluster agents. |
static int |
CLUSTER_NODE_ROLE_TYPE_ID
Counter type id for the cluster node role.
|
static String |
CLUSTER_SERVICES_DIR_PROP_NAME
Directory to use for the aeron cluster services, will default to
CLUSTER_DIR_PROP_NAME if not
specified. |
static int |
CLUSTERED_SERVICE_ERROR_COUNT_TYPE_ID
Counter type id for the clustered service error count.
|
static int |
COMMIT_POSITION_TYPE_ID
Counter type id of the commit position.
|
static int |
CONSENSUS_MODULE_STREAM_ID_DEFAULT
Default stream id within a channel for communications from the services to the consensus module.
|
static String |
CONSENSUS_MODULE_STREAM_ID_PROP_NAME
Stream id within the control channel for communications from the services to the consensus module.
|
static String |
CONTROL_CHANNEL_DEFAULT
Default channel for communications between the local consensus module and services.
|
static String |
CONTROL_CHANNEL_PROP_NAME
Channel for control communications between the local consensus module and services.
|
static long |
CYCLE_THRESHOLD_DEFAULT_NS
Default threshold value for the container work cycle threshold to track for being exceeded.
|
static String |
CYCLE_THRESHOLD_PROP_NAME
Property name for threshold value for the container work cycle threshold to track
for being exceeded.
|
static String |
DEFAULT_IDLE_STRATEGY
Default
IdleStrategy to be employed for cluster agents. |
static String |
DELEGATING_ERROR_HANDLER_PROP_NAME
Delegating
ErrorHandler which will be first in the chain before delegating to the
ClusteredServiceContainer.Context.errorHandler(). |
static int |
ERROR_BUFFER_LENGTH_DEFAULT
Default length in bytes of the error buffer for the cluster container.
|
static String |
ERROR_BUFFER_LENGTH_PROP_NAME
Length in bytes of the error buffer for the cluster container.
|
static long |
LIVENESS_TIMEOUT_MS
Timeout in milliseconds to detect liveness.
|
static int |
LOG_FRAGMENT_LIMIT_DEFAULT
Default fragment limit for polling log.
|
static String |
LOG_FRAGMENT_LIMIT_PROP_NAME
Fragment limit to use when polling the log.
|
static String |
MARK_FILE_DIR_PROP_NAME
Directory to use for the Cluster component's mark file.
|
static long |
MARK_FILE_UPDATE_INTERVAL_NS
Update interval for cluster mark file in nanoseconds.
|
static String |
REPLAY_CHANNEL_DEFAULT
Default channel to be used for log or snapshot replay on startup.
|
static String |
REPLAY_CHANNEL_PROP_NAME
Channel to be used for log or snapshot replay on startup.
|
static int |
REPLAY_STREAM_ID_DEFAULT
Default stream id for the log or snapshot replay within a channel.
|
static String |
REPLAY_STREAM_ID_PROP_NAME
Stream id within a channel for the clustered log or snapshot replay.
|
static boolean |
RESPONDER_SERVICE_DEFAULT
Default to true that this a responding service to client requests.
|
static String |
RESPONDER_SERVICE_PROP_NAME
Is this a responding service to client requests property.
|
static String |
SERVICE_CLASS_NAME_PROP_NAME
Class name for dynamically loading a
ClusteredService. |
static int |
SERVICE_ID_DEFAULT
Default identity for a clustered service.
|
static String |
SERVICE_ID_PROP_NAME
Identity for a clustered service.
|
static String |
SERVICE_NAME_DEFAULT
Name for a clustered service to be the role of the
Agent. |
static String |
SERVICE_NAME_PROP_NAME
Name for a clustered service to be the role of the
Agent. |
static int |
SERVICE_STREAM_ID_DEFAULT
Default stream id within the control channel for communications from the consensus module.
|
static String |
SERVICE_STREAM_ID_PROP_NAME
Stream id within the control channel for communications from the consensus module to the services.
|
static String |
SNAPSHOT_CHANNEL_DEFAULT
Default channel to be used for archiving snapshots.
|
static String |
SNAPSHOT_CHANNEL_PROP_NAME
Channel to be used for archiving snapshots.
|
static int |
SNAPSHOT_STREAM_ID_DEFAULT
Default stream id for the archived snapshots within a channel.
|
static String |
SNAPSHOT_STREAM_ID_PROP_NAME
Stream id within a channel for archiving snapshots.
|
static long |
SNAPSHOT_TYPE_ID
Type of snapshot for this service.
|
static String |
STANDBY_SNAPSHOT_ENABLED_PROP_NAME
Property to configure if this node should take standby snapshots.
|
| Constructor and Description |
|---|
Configuration() |
| Modifier and Type | Method and Description |
|---|---|
static String |
clusterDirName()
The value
CLUSTER_DIR_DEFAULT or system property CLUSTER_DIR_PROP_NAME if set. |
static int |
clusterId()
The value
CLUSTER_ID_DEFAULT or system property CLUSTER_ID_PROP_NAME if set. |
static String |
clusterServicesDirName()
The value of system property
CLUSTER_DIR_PROP_NAME if set or null. |
static int |
consensusModuleStreamId()
The value
CONSENSUS_MODULE_STREAM_ID_DEFAULT or system property
CONSENSUS_MODULE_STREAM_ID_PROP_NAME if set. |
static String |
controlChannel()
The value
CONTROL_CHANNEL_DEFAULT or system property
CONTROL_CHANNEL_PROP_NAME if set. |
static long |
cycleThresholdNs()
Get threshold value for the container work cycle threshold to track for being exceeded.
|
static int |
errorBufferLength()
Size in bytes of the error buffer in the mark file.
|
static Supplier<IdleStrategy> |
idleStrategySupplier(StatusIndicator controllableStatus)
Create a supplier of
IdleStrategys that will use the system property. |
static boolean |
isRespondingService()
The value
RESPONDER_SERVICE_DEFAULT or system property RESPONDER_SERVICE_PROP_NAME if set. |
static int |
logFragmentLimit()
The value
LOG_FRAGMENT_LIMIT_DEFAULT or system property
LOG_FRAGMENT_LIMIT_PROP_NAME if set. |
static String |
markFileDir()
Get the alternative directory to be used for storing the Cluster component's mark file.
|
static ClusteredService |
newClusteredService()
Create a new
ClusteredService based on the configured SERVICE_CLASS_NAME_PROP_NAME. |
static DelegatingErrorHandler |
newDelegatingErrorHandler()
Create a new
DelegatingErrorHandler defined by DELEGATING_ERROR_HANDLER_PROP_NAME. |
static String |
replayChannel()
The value
REPLAY_CHANNEL_DEFAULT or system property REPLAY_CHANNEL_PROP_NAME if set. |
static int |
replayStreamId()
The value
REPLAY_STREAM_ID_DEFAULT or system property REPLAY_STREAM_ID_PROP_NAME
if set. |
static int |
serviceId()
The value
SERVICE_ID_DEFAULT or system property SERVICE_ID_PROP_NAME if set. |
static String |
serviceName()
The value
SERVICE_NAME_DEFAULT or system property SERVICE_NAME_PROP_NAME if set. |
static int |
serviceStreamId()
The value
SERVICE_STREAM_ID_DEFAULT or system property
SERVICE_STREAM_ID_PROP_NAME if set. |
static String |
snapshotChannel()
The value
SNAPSHOT_CHANNEL_DEFAULT or system property SNAPSHOT_CHANNEL_PROP_NAME if set. |
static int |
snapshotStreamId()
The value
SNAPSHOT_STREAM_ID_DEFAULT or system property SNAPSHOT_STREAM_ID_PROP_NAME
if set. |
static boolean |
standbySnapshotEnabled()
Get the configuration value to determine if this node should take standby snapshots be enabled.
|
public static final long SNAPSHOT_TYPE_ID
public static final long MARK_FILE_UPDATE_INTERVAL_NS
public static final long LIVENESS_TIMEOUT_MS
public static final String CLUSTER_ID_PROP_NAME
public static final int CLUSTER_ID_DEFAULT
public static final String SERVICE_ID_PROP_NAME
public static final int SERVICE_ID_DEFAULT
public static final String SERVICE_NAME_PROP_NAME
Agent.public static final String SERVICE_NAME_DEFAULT
Agent.public static final String SERVICE_CLASS_NAME_PROP_NAME
ClusteredService. This is used if
ClusteredServiceContainer.Context.clusteredService() is not set.public static final String REPLAY_CHANNEL_PROP_NAME
public static final String REPLAY_CHANNEL_DEFAULT
public static final String REPLAY_STREAM_ID_PROP_NAME
public static final int REPLAY_STREAM_ID_DEFAULT
public static final String CONTROL_CHANNEL_PROP_NAME
public static final String CONTROL_CHANNEL_DEFAULT
public static final String SERVICE_STREAM_ID_PROP_NAME
public static final int SERVICE_STREAM_ID_DEFAULT
public static final String CONSENSUS_MODULE_STREAM_ID_PROP_NAME
public static final int CONSENSUS_MODULE_STREAM_ID_DEFAULT
public static final String SNAPSHOT_CHANNEL_PROP_NAME
public static final String SNAPSHOT_CHANNEL_DEFAULT
public static final String SNAPSHOT_STREAM_ID_PROP_NAME
public static final int SNAPSHOT_STREAM_ID_DEFAULT
public static final String CLUSTER_DIR_PROP_NAME
public static final String CLUSTER_SERVICES_DIR_PROP_NAME
CLUSTER_DIR_PROP_NAME if not
specified.public static final String MARK_FILE_DIR_PROP_NAME
public static final String CLUSTER_DIR_DEFAULT
public static final String ERROR_BUFFER_LENGTH_PROP_NAME
public static final int ERROR_BUFFER_LENGTH_DEFAULT
public static final String RESPONDER_SERVICE_PROP_NAME
public static final boolean RESPONDER_SERVICE_DEFAULT
public static final String LOG_FRAGMENT_LIMIT_PROP_NAME
public static final int LOG_FRAGMENT_LIMIT_DEFAULT
public static final String DELEGATING_ERROR_HANDLER_PROP_NAME
ErrorHandler which will be first in the chain before delegating to the
ClusteredServiceContainer.Context.errorHandler().public static final String CYCLE_THRESHOLD_PROP_NAME
public static final long CYCLE_THRESHOLD_DEFAULT_NS
public static final int CLUSTER_NODE_ROLE_TYPE_ID
public static final int COMMIT_POSITION_TYPE_ID
public static final int CLUSTERED_SERVICE_ERROR_COUNT_TYPE_ID
public static final String DEFAULT_IDLE_STRATEGY
IdleStrategy to be employed for cluster agents.public static final String CLUSTER_IDLE_STRATEGY_PROP_NAME
IdleStrategy to be employed for cluster agents.public static final String STANDBY_SNAPSHOT_ENABLED_PROP_NAME
false.public static int clusterId()
CLUSTER_ID_DEFAULT or system property CLUSTER_ID_PROP_NAME if set.CLUSTER_ID_DEFAULT or system property CLUSTER_ID_PROP_NAME if set.public static int serviceId()
SERVICE_ID_DEFAULT or system property SERVICE_ID_PROP_NAME if set.SERVICE_ID_DEFAULT or system property SERVICE_ID_PROP_NAME if set.public static String serviceName()
SERVICE_NAME_DEFAULT or system property SERVICE_NAME_PROP_NAME if set.SERVICE_NAME_DEFAULT or system property SERVICE_NAME_PROP_NAME if set.public static String replayChannel()
REPLAY_CHANNEL_DEFAULT or system property REPLAY_CHANNEL_PROP_NAME if set.REPLAY_CHANNEL_DEFAULT or system property REPLAY_CHANNEL_PROP_NAME if set.public static int replayStreamId()
REPLAY_STREAM_ID_DEFAULT or system property REPLAY_STREAM_ID_PROP_NAME
if set.REPLAY_STREAM_ID_DEFAULT or system property REPLAY_STREAM_ID_PROP_NAME
if set.public static String controlChannel()
CONTROL_CHANNEL_DEFAULT or system property
CONTROL_CHANNEL_PROP_NAME if set.CONTROL_CHANNEL_DEFAULT or system property
CONTROL_CHANNEL_PROP_NAME if set.public static int consensusModuleStreamId()
CONSENSUS_MODULE_STREAM_ID_DEFAULT or system property
CONSENSUS_MODULE_STREAM_ID_PROP_NAME if set.CONSENSUS_MODULE_STREAM_ID_DEFAULT or system property
CONSENSUS_MODULE_STREAM_ID_PROP_NAME if set.public static int serviceStreamId()
SERVICE_STREAM_ID_DEFAULT or system property
SERVICE_STREAM_ID_PROP_NAME if set.SERVICE_STREAM_ID_DEFAULT or system property
SERVICE_STREAM_ID_PROP_NAME if set.public static String snapshotChannel()
SNAPSHOT_CHANNEL_DEFAULT or system property SNAPSHOT_CHANNEL_PROP_NAME if set.SNAPSHOT_CHANNEL_DEFAULT or system property SNAPSHOT_CHANNEL_PROP_NAME if set.public static int snapshotStreamId()
SNAPSHOT_STREAM_ID_DEFAULT or system property SNAPSHOT_STREAM_ID_PROP_NAME
if set.SNAPSHOT_STREAM_ID_DEFAULT or system property SNAPSHOT_STREAM_ID_PROP_NAME if set.public static Supplier<IdleStrategy> idleStrategySupplier(StatusIndicator controllableStatus)
IdleStrategys that will use the system property.controllableStatus - if a ControllableIdleStrategy is required.public static String clusterDirName()
CLUSTER_DIR_DEFAULT or system property CLUSTER_DIR_PROP_NAME if set.CLUSTER_DIR_DEFAULT or system property CLUSTER_DIR_PROP_NAME if set.public static String clusterServicesDirName()
CLUSTER_DIR_PROP_NAME if set or null.CLUSTER_DIR_PROP_NAME if set or null.public static int errorBufferLength()
ERROR_BUFFER_LENGTH_PROP_NAMEpublic static boolean isRespondingService()
RESPONDER_SERVICE_DEFAULT or system property RESPONDER_SERVICE_PROP_NAME if set.RESPONDER_SERVICE_DEFAULT or system property RESPONDER_SERVICE_PROP_NAME if set.public static int logFragmentLimit()
LOG_FRAGMENT_LIMIT_DEFAULT or system property
LOG_FRAGMENT_LIMIT_PROP_NAME if set.LOG_FRAGMENT_LIMIT_DEFAULT or system property
LOG_FRAGMENT_LIMIT_PROP_NAME if set.public static long cycleThresholdNs()
public static boolean standbySnapshotEnabled()
public static ClusteredService newClusteredService()
ClusteredService based on the configured SERVICE_CLASS_NAME_PROP_NAME.ClusteredService based on the configured SERVICE_CLASS_NAME_PROP_NAME.public static DelegatingErrorHandler newDelegatingErrorHandler()
DelegatingErrorHandler defined by DELEGATING_ERROR_HANDLER_PROP_NAME.DelegatingErrorHandler defined by DELEGATING_ERROR_HANDLER_PROP_NAME or
null if property not set.public static String markFileDir()
Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.