public class OfBizClusterNodeStore extends Object
Constructor and Description |
---|
OfBizClusterNodeStore(OfBizDelegator ofBizDelegator) |
Modifier and Type | Method and Description |
---|---|
Node |
createNode(String nodeId,
Node.NodeState state,
String ip,
Long cacheListenerPort)
Creates the node in the underlying database.
|
int |
deleteNode(Node node)
Deletes the node from the underlying database.
|
List<Node> |
findNodes(org.ofbiz.core.entity.EntityCondition condition,
List<String> orderBy) |
List<Node> |
getAllNodes() |
Node |
getNode(String nodeId) |
Node |
updateNode(String nodeId,
Node.NodeState state,
String ip,
Long cacheListenerPort)
Stores the node in the underlying database.
|
public OfBizClusterNodeStore(OfBizDelegator ofBizDelegator)
public Node createNode(@Nonnull String nodeId, @Nonnull Node.NodeState state, @Nonnull String ip, @Nonnull Long cacheListenerPort)
nodeId
- - the node id to create and store in the underlying tablestate
- - the desired node statecacheListenerPort
- the multicast port the server is going to use to listen for changesDataAccessException
- if a database error prevents the node from being createdpublic Node updateNode(@Nonnull String nodeId, @Nonnull Node.NodeState state, @Nonnull String ip, @Nonnull Long cacheListenerPort)
nodeId
- - the node id to store in the underlying tablestate
- - the desired node statecacheListenerPort
- the multicast port the server is going to use to listen for changesDataAccessException
- if a database error prevents the node from being updatedpublic int deleteNode(Node node)
node
- the node to deleteCopyright © 2002-2016 Atlassian. All Rights Reserved.