Package com.atlassian.bamboo.cluster
Class BambooClusterSettingsImpl
java.lang.Object
com.atlassian.bamboo.cluster.BambooClusterSettingsImpl
- All Implemented Interfaces:
BambooClusterSettings
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.cluster.BambooClusterSettings
BAMBOO_CLUSTER_INFO_CACHE_TTL_SECONDS, CLUSTER_CONNECT_SECONDARY_ONLY_IF_GRPC_COMMUNICATION_IS_WORKING, CLUSTER_HEARTBEAT_ALIVE_TIMEOUT_IN_SECONDS, CLUSTER_HEARTBEAT_JOB_INTERVAL_IN_SECONDS, CROSS_NODES_EVENTS_GRPC_CLIENT_THREADS_NUMBER, GRPC_SERVER_THREADS_NUMBER, NODE_ALIVE_WATCHDOG_ENABLED, NODE_ALIVE_WATCHDOG_INTERVAL_IN_SECONDS, NUMBER_OF_PHYSICAL_QUEUES_UNDER_PER_NODE_QUEUE, OPTIMISTIC_LOCKING_MODE, PEER_TO_PEER_GRPC_CLIENT_THREADS_NUMBER, PER_NODE_PHYSICAL_QUEUE_MAX_SIZE, PER_NODE_PHYSICAL_QUEUE_MAX_USED_BYTES, PER_NODE_QUEUE_DISPATCHERS_THREADS_NUMBER, PER_NODE_QUEUE_STATS_LOGGING_INTERVAL_MINUTES, PRIMARY_CLUSTER_LOCK_TIMEOUT_SECONDS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<BambooClusterNodeHeartbeatService>
boolean
Checks if Bamboo should be using optimistic locking.boolean
Checks if the node is ready to receive cross-node events.void
setReadyToReceiveCrossNodesEvents
(boolean ready) Sets the readiness state for receiving cross-node events.
-
Constructor Details
-
BambooClusterSettingsImpl
public BambooClusterSettingsImpl()
-
-
Method Details
-
getBambooClusterNodeHeartbeatService
-
isOptimisticLockingEnabled
public boolean isOptimisticLockingEnabled()Description copied from interface:BambooClusterSettings
Checks if Bamboo should be using optimistic locking.- Specified by:
isOptimisticLockingEnabled
in interfaceBambooClusterSettings
- Returns:
- true if Bamboo should be using optimistic locking.
-
isReadyToReceiveCrossNodesEvents
public boolean isReadyToReceiveCrossNodesEvents()Description copied from interface:BambooClusterSettings
Checks if the node is ready to receive cross-node events.- Specified by:
isReadyToReceiveCrossNodesEvents
in interfaceBambooClusterSettings
- Returns:
- true if the node is ready to receive cross-node events, false otherwise.
-
setReadyToReceiveCrossNodesEvents
public void setReadyToReceiveCrossNodesEvents(boolean ready) Description copied from interface:BambooClusterSettings
Sets the readiness state for receiving cross-node events.- Specified by:
setReadyToReceiveCrossNodesEvents
in interfaceBambooClusterSettings
- Parameters:
ready
- true to mark the node as ready to receive cross-node events, false otherwise.
-