public static 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 String |
CLUSTER_IDLE_STRATEGY_PROP_NAME
IdleStrategy to be employed for cluster agents. |
static int |
CLUSTERED_SERVICE_ERROR_COUNT_TYPE_ID
Counter type id for the clustered service error count.
|
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 a channel for communications from the services to the consensus module.
|
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 |
MARK_FILE_UPDATE_INTERVAL_NS
Update interval for cluster mark file.
|
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 String |
SERVICE_CONTROL_CHANNEL_DEFAULT
Default channel for communications between the local consensus module and services.
|
static String |
SERVICE_CONTROL_CHANNEL_PROP_NAME
Channel for communications between the local consensus module and services.
|
static int |
SERVICE_CONTROL_STREAM_ID_DEFAULT
Default stream id within a channel for communications from the consensus module to the services.
|
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 String |
SERVICE_STREAM_ID_PROP_NAME
Stream id within a 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.
|
Constructor and Description |
---|
Configuration() |
public static final long MARK_FILE_UPDATE_INTERVAL_NS
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 SERVICE_CONTROL_CHANNEL_PROP_NAME
public static final String SERVICE_CONTROL_CHANNEL_DEFAULT
public static final String SERVICE_STREAM_ID_PROP_NAME
public static final int SERVICE_CONTROL_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_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 DELEGATING_ERROR_HANDLER_PROP_NAME
ErrorHandler
which will be first in the chain before delegating to the
ClusteredServiceContainer.Context.errorHandler()
.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 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 serviceControlChannel()
SERVICE_CONTROL_CHANNEL_DEFAULT
or system property
SERVICE_CONTROL_CHANNEL_PROP_NAME
if set.SERVICE_CONTROL_CHANNEL_DEFAULT
or system property
SERVICE_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_CONTROL_STREAM_ID_DEFAULT
or system property
SERVICE_STREAM_ID_PROP_NAME
if set.SERVICE_CONTROL_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)
IdleStrategy
s 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 int errorBufferLength()
ERROR_BUFFER_LENGTH_PROP_NAME
public 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 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.Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.