com.atlassian.jira.index.ha
Class OfBizNodeIndexCounterStore

java.lang.Object
  extended by com.atlassian.jira.index.ha.OfBizNodeIndexCounterStore

public class OfBizNodeIndexCounterStore
extends Object

Stores the last index operation id for each node

Since:
v6.1

Field Summary
static String ENTITY_NAME
           
static String ID
           
static String INDEX_OP_ID
           
static String MIN
           
static String NODE_ID
           
static String SENDING_NODE_ID
           
static String VIEW_NAME
           
 
Constructor Summary
OfBizNodeIndexCounterStore(OfBizDelegator ofBizDelegator, ClusterManager clusterManager)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENTITY_NAME

public static final String ENTITY_NAME
See Also:
Constant Field Values

ID

public static final String ID
See Also:
Constant Field Values

VIEW_NAME

public static final String VIEW_NAME
See Also:
Constant Field Values

NODE_ID

public static final String NODE_ID
See Also:
Constant Field Values

SENDING_NODE_ID

public static final String SENDING_NODE_ID
See Also:
Constant Field Values

INDEX_OP_ID

public static final String INDEX_OP_ID
See Also:
Constant Field Values

MIN

public static final String MIN
See Also:
Constant Field Values
Constructor Detail

OfBizNodeIndexCounterStore

public OfBizNodeIndexCounterStore(OfBizDelegator ofBizDelegator,
                                  ClusterManager clusterManager)
Method Detail

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 id
sendingNodeId - Sending node Id
indexOperationId - operation id

getIndexOperationCounterForNodeId

public long getIndexOperationCounterForNodeId(String receivingNodeId,
                                              String sendingNodeId)
Get the highest recorded index operation for a node pair

Parameters:
receivingNodeId -
sendingNodeId -
Returns:


Copyright © 2002-2014 Atlassian. All Rights Reserved.