Class LocalQCacheManager
java.lang.Object
com.atlassian.jira.cluster.distribution.localq.LocalQCacheManager
Stores all active queues
only available
in clustered jira and when
LocalQCacheOpQueue and manages the queue readers LocalQCacheOpReader
Service defined in
invalid reference
com.atlassian.jira.component.spring.registrar.ClusterServicesRegistrar
LocalQConfig.isLocalQReplicationDisabled() is false.-
Constructor Summary
ConstructorsConstructorDescriptionLocalQCacheManager(ClusterNodes clusterNodes, ClusterManager clusterManager, LocalQCacheOpSender localQCacheOpSender, LocalQCacheOpQueueFactory localQCacheOpQueueFactory, LocalQCriticalHandlerFactory localQCriticalHandlerFactory, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionintaddToAllQueues(LocalQCacheOp localQCacheOp) voidonNodeChangedEvent(NodeChangedEvent nodeChangedEvent) voidonNodeJoinedClusterEvent(NodeJoinedClusterEvent nodeJoinedClusterEvent) voidonNodeRemovedFromClusterEvent(NodeRemovedFromClusterEvent nodeRemovedFromClusterEvent) voidonPluginFrameworkShutdownEvent(com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent event) voidonPluginFrameworkStartingEvent(com.atlassian.plugin.event.events.PluginFrameworkStartingEvent event) Can be used to get the current statistics of cache replication local queues.Can be used to get the current statistics of cache replication local queues merged per destination node.voidstart()This is invoked before plugin system has been started.voidstop()This is invoked after plugin system has been shut down.
-
Constructor Details
-
LocalQCacheManager
public LocalQCacheManager(ClusterNodes clusterNodes, ClusterManager clusterManager, LocalQCacheOpSender localQCacheOpSender, LocalQCacheOpQueueFactory localQCacheOpQueueFactory, LocalQCriticalHandlerFactory localQCriticalHandlerFactory, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
onPluginFrameworkShutdownEvent
@EventListener public void onPluginFrameworkShutdownEvent(com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent event) -
onPluginFrameworkStartingEvent
@EventListener public void onPluginFrameworkStartingEvent(com.atlassian.plugin.event.events.PluginFrameworkStartingEvent event) -
start
public void start()This is invoked before plugin system has been started. SeeonPluginFrameworkStartingEvent(PluginFrameworkStartingEvent) -
stop
public void stop()This is invoked after plugin system has been shut down. SeeonPluginFrameworkShutdownEvent(PluginFrameworkShutdownEvent) -
queueStatsTotal
Can be used to get the current statistics of cache replication local queues. There will beLocalQConfig.NUMBER_OF_QUEUES_PER_NODEx (nodes-in-cluster - 1)LocalQCacheOpQueueWithStats.QueueStatsreturned.- Returns:
- set of
LocalQCacheOpQueueWithStats.QueueStatswith stats per queue
-
queueStatsTotalMerged
Can be used to get the current statistics of cache replication local queues merged per destination node. There will be (nodes-in-cluster - 1)LocalQCacheOpQueueWithStats.QueueStatsreturned.- Returns:
- set of
LocalQCacheOpQueueWithStats.QueueStatswith stats merged per node
-
onNodeChangedEvent
-
onNodeJoinedClusterEvent
-
onNodeRemovedFromClusterEvent
@EventListener public void onNodeRemovedFromClusterEvent(NodeRemovedFromClusterEvent nodeRemovedFromClusterEvent) -
addToAllQueues
- Returns:
- number of queues where
LocalQCacheOpwas added
-