public class LocalQCacheManager extends Object
LocalQCacheOpQueue
and manages the queue readers LocalQCacheOpReader
Service defined in ClusterServicesRegistrar
only available
in clustered jira and when LocalQConfig.isLocalQReplicationDisabled()
is false.Constructor and Description |
---|
LocalQCacheManager(ClusterNodes clusterNodes,
LocalQCacheOpSender localQCacheOpSender,
LocalQCacheOpQueueFactory localQCacheOpQueueFactory,
LocalQCriticalHandlerFactory localQCriticalHandlerFactory,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
int |
addToAllQueues(LocalQCacheOp localQCacheOp) |
void |
onNodeChangedEvent(NodeChangedEvent nodeChangedEvent) |
void |
onNodeJoinedClusterEvent(NodeJoinedClusterEvent nodeJoinedClusterEvent) |
void |
onNodeRemovedFromClusterEvent(NodeRemovedFromClusterEvent nodeRemovedFromClusterEvent) |
void |
onPluginFrameworkShutdownEvent(com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent event) |
void |
onPluginFrameworkStartingEvent(com.atlassian.plugin.event.events.PluginFrameworkStartingEvent event) |
Set<LocalQCacheOpQueueWithStats.QueueStats> |
queueStatsTotal()
Can be used to get the current statistics of cache replication local queues.
|
Set<LocalQCacheOpQueueWithStats.QueueStats> |
queueStatsTotalMerged()
Can be used to get the current statistics of cache replication local queues merged per destination node.
|
void |
start()
This is invoked before plugin system has been started.
|
void |
stop()
This is invoked after plugin system has been shut down.
|
public LocalQCacheManager(ClusterNodes clusterNodes, LocalQCacheOpSender localQCacheOpSender, LocalQCacheOpQueueFactory localQCacheOpQueueFactory, LocalQCriticalHandlerFactory localQCriticalHandlerFactory, com.atlassian.event.api.EventPublisher eventPublisher)
@EventListener public void onPluginFrameworkShutdownEvent(com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent event)
@EventListener public void onPluginFrameworkStartingEvent(com.atlassian.plugin.event.events.PluginFrameworkStartingEvent event)
public void start()
onPluginFrameworkStartingEvent(PluginFrameworkStartingEvent)
public void stop()
onPluginFrameworkShutdownEvent(PluginFrameworkShutdownEvent)
@ExperimentalApi public Set<LocalQCacheOpQueueWithStats.QueueStats> queueStatsTotal()
LocalQConfig.NUMBER_OF_QUEUES_PER_NODE
x (nodes-in-cluster - 1) LocalQCacheOpQueueWithStats.QueueStats
returned.LocalQCacheOpQueueWithStats.QueueStats
with stats per queue@ExperimentalApi public Set<LocalQCacheOpQueueWithStats.QueueStats> queueStatsTotalMerged()
LocalQCacheOpQueueWithStats.QueueStats
returned.LocalQCacheOpQueueWithStats.QueueStats
with stats merged per node@EventListener public void onNodeChangedEvent(NodeChangedEvent nodeChangedEvent)
@EventListener public void onNodeJoinedClusterEvent(NodeJoinedClusterEvent nodeJoinedClusterEvent)
@EventListener public void onNodeRemovedFromClusterEvent(NodeRemovedFromClusterEvent nodeRemovedFromClusterEvent)
public int addToAllQueues(LocalQCacheOp localQCacheOp)
LocalQCacheOp
was addedCopyright © 2002-2019 Atlassian. All Rights Reserved.