com.atlassian.jira.cluster
Class OfBizClusterNodeStore

java.lang.Object
  extended by com.atlassian.jira.cluster.OfBizClusterNodeStore

public class OfBizClusterNodeStore
extends Object

Responsible for storing and retrieving ClusterNode state in the underlying database

Since:
v6.1

Field Summary
static String NODE_ID
           
static String NODE_STATE
           
 
Constructor Summary
OfBizClusterNodeStore(OfBizDelegator ofBizDelegator)
           
 
Method Summary
 Node createNode(String nodeId, Node.NodeState state)
          Creates the node in the underlying database.
 int deleteNode(Node node)
           
 List<Node> findNodes(org.ofbiz.core.entity.EntityCondition condition, List<String> orderBy)
           
 List<Node> getAllNodes()
           
 Node getNode(String nodeId)
           
 Node storeNode(String nodeId, Node.NodeState state)
          Stores the node in the underlying database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODE_ID

public static final String NODE_ID
See Also:
Constant Field Values

NODE_STATE

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

OfBizClusterNodeStore

public OfBizClusterNodeStore(OfBizDelegator ofBizDelegator)
Method Detail

createNode

public Node createNode(@Nonnull
                       String nodeId,
                       @Nonnull
                       Node.NodeState state)
Creates the node in the underlying database.

Parameters:
nodeId - - the node id to create and store in the underlying table
state - - the desired node state

storeNode

public Node storeNode(@Nonnull
                      String nodeId,
                      @Nonnull
                      Node.NodeState state)
Stores the node in the underlying database.

Parameters:
nodeId - - the node id to store in the underlying table
state - - the desired node state

deleteNode

public int deleteNode(Node node)
Parameters:
node - the node to delete
Returns:
the mumebr of rows deleted

getNode

public Node getNode(String nodeId)

getAllNodes

public List<Node> getAllNodes()

findNodes

public List<Node> findNodes(org.ofbiz.core.entity.EntityCondition condition,
                            List<String> orderBy)


Copyright © 2002-2013 Atlassian. All Rights Reserved.