Package com.atlassian.jira.index.ha
Class OfBizNodeIndexCounterStore
java.lang.Object
com.atlassian.jira.index.ha.OfBizNodeIndexCounterStore
Stores the last index operation id for each node
- Since:
- v6.1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOfBizNodeIndexCounterStore(OfBizDelegator ofBizDelegator, ClusterManager clusterManager) -
Method Summary
Modifier and TypeMethodDescriptionlonggetIndexOperationCounterForNodeId(String receivingNodeId, String sendingNodeId) Get the highest recorded index operation for a node pairvoidstoreHighestIdForNode(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
-
Field Details
-
ENTITY_NAME
- See Also:
-
ID
- See Also:
-
VIEW_NAME
- See Also:
-
NODE_ID
- See Also:
-
SENDING_NODE_ID
- See Also:
-
INDEX_OP_ID
- See Also:
-
MIN
- See Also:
-
-
Constructor Details
-
OfBizNodeIndexCounterStore
-
-
Method Details
-
storeHighestIdForNode
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 idsendingNodeId- Sending node IdindexOperationId- operation id
-
getIndexOperationCounterForNodeId
Get the highest recorded index operation for a node pair- Parameters:
receivingNodeId-sendingNodeId-- Returns:
-