public class

OfBizNodeIndexCounterStore

extends Object
java.lang.Object
   ↳ com.atlassian.jira.index.ha.OfBizNodeIndexCounterStore

Class Overview

Stores the last index operation id for each node

Summary

Constants
String ENTITY_NAME
String ID
String INDEX_OP_ID
String MIN
String NODE_ID
String SENDING_NODE_ID
String VIEW_NAME
Public Constructors
OfBizNodeIndexCounterStore(OfBizDelegator ofBizDelegator, ClusterManager clusterManager)
Public Methods
long getIndexOperationCounterForNodeId(String receivingNodeId, String sendingNodeId)
Get the highest recorded index operation for a node pair
void storeHighestIdForNode(String receivingNodeId, String sendingNodeId, long indexOperationId)
Record the highest replicated index operation processed by a node, The highest operation is recorded for each node pair
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String ENTITY_NAME

Constant Value: "NodeIndexCounter"

public static final String ID

Constant Value: "id"

public static final String INDEX_OP_ID

Constant Value: "indexOperationId"

public static final String MIN

Constant Value: "min"

public static final String NODE_ID

Constant Value: "nodeId"

public static final String SENDING_NODE_ID

Constant Value: "sendingNodeId"

public static final String VIEW_NAME

Constant Value: "IndexOperationMinId"

Public Constructors

public OfBizNodeIndexCounterStore (OfBizDelegator ofBizDelegator, ClusterManager clusterManager)

Public Methods

public long getIndexOperationCounterForNodeId (String receivingNodeId, String sendingNodeId)

Get the highest recorded index operation for a node pair

public void storeHighestIdForNode (String receivingNodeId, String sendingNodeId, long indexOperationId)

Record the highest replicated index operation processed by a node, The highest operation is recorded for each node pair

Parameters
receivingNodeId Receiving node id
sendingNodeId Sending node Id
indexOperationId operation id