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,
Long nodeBuildNumber,
String nodeVersion)
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,
Long nodeBuildNumber,
String nodeVersion)
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, @Nonnull Long nodeBuildNumber, String nodeVersion)
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 changesnodeBuildNumber - build number of the code the node is runningnodeVersion - DataAccessException - 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, @Nonnull Long nodeBuildNumber, String nodeVersion)
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 changesnodeBuildNumber - build number of the code the node is runningnodeVersion - DataAccessException - if a database error prevents the node from being updatedpublic int deleteNode(Node node)
node - the node to deleteCopyright © 2002-2021 Atlassian. All Rights Reserved.