Package org.jumpmind.symmetric.service
Interface INodeService
- All Known Implementing Classes:
MockNodeService
,NodeService
public interface INodeService
This service provides an API to access
Node
s and Node related information.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
Check to see if any nodes are offline and process any nodes found using the configured IOfflineNodeHandler.int
countFilteredNodes
(List<FilterCriterion> filter) boolean
void
deleteNode
(String nodeId, boolean syncChange) void
deleteNode
(String myNodeId, String targetNodeIId, boolean syncChange) void
deleteNodeHost
(String nodeId) void
deleteNodeHostInstance
(String nodeId, String instanceId) void
deleteNodeSecurity
(String nodeId) findAllNodes
(boolean useCache) findAllNodeSecurity
(boolean useCache) findEnabledNodesFromNodeGroup
(String nodeGroupId) findFilteredNodesWithLimit
(int offset, int limit, List<FilterCriterion> filter, String orderColumn, String orderDirection) findIdentity
(boolean useCache) findIdentity
(boolean useCache, boolean logSqlError) findNodeByExternalId
(String nodeGroupId, String externalId) findNodeHosts
(String nodeId) findNodeSecurity
(String nodeId) findNodeSecurity
(String nodeId, boolean useCache) findNodesThatOriginatedFromNodeId
(String originalNodeId) Find a list ofNode
s that were create at the passed in node or were created at a node that was created by the passed in node (recursively).findNodesThatOriginatedFromNodeId
(String originalNodeId, boolean recursive) findOfflineNodeIds
(long minutesOffline) Find nodes that have been offline for the configured timeframe beforeIOfflineClientListener
andIOfflineServerListener
will be calledfindOfflineNodes
(long minutesOffline) Find nodes that have been offline for a number of minutesfindOrCreateNodeSecurity
(String nodeId) findSourceNodesFor
(NodeGroupLinkAction eventAction) findTargetNodesFor
(NodeGroupLinkAction eventAction) void
void
void
getAuthenticationStatus
(String nodeId, String securityToken) getExternalId
(String nodeId) Get the current status of this node.getNodeStatus
(String nodeId) getSourceNodesFromDatabase
(NodeGroupLinkAction eventAction, Node node) getTargetNodesFromDatabase
(NodeGroupLinkAction eventAction, Node node) void
ignoreNodeChannelForExternalId
(boolean ignore, String channelId, String nodeGroupId, String externalId) void
incrementNodeFailedLogins
(String nodeId) void
insertNodeGroup
(String groupId, String description) void
insertNodeIdentity
(String nodeId) boolean
boolean
isDataLoadCompleted
(String nodeId) boolean
boolean
isDataLoadStarted
(String nodeId) boolean
isExternalIdRegistered
(String nodeGroupId, String externalId) boolean
isNodeAuthorized
(String nodeId, String password) boolean
isRegistrationEnabled
(String nodeId) boolean
void
resetNodeFailedLogins
(String nodeId) void
boolean
setInitialLoadEnabled
(String nodeId, boolean initialLoadEnabled, boolean syncChange, long loadId, String createBy) boolean
setInitialLoadEnabled
(ISqlTransaction transaction, String nodeId, boolean initialLoadEnabled, boolean syncChange, long loadId, String createBy) boolean
setInitialLoadEnded
(ISqlTransaction transaction, String nodeId) boolean
setPartialLoadEnded
(ISqlTransaction transaction, String nodeId) boolean
setPartialLoadStarted
(ISqlTransaction transaction, String nodeId, long loadId, String createBy) boolean
setReverseInitialLoadEnabled
(String nodeId, boolean initialLoadEnabled, boolean syncChange, long loadId, String createBy) boolean
setReverseInitialLoadEnabled
(ISqlTransaction transaction, String nodeId, boolean initialLoadEnabled, boolean syncChange, long loadId, String createBy) void
updateNodeHost
(NodeHost nodeHost) void
boolean
updateNodeSecurity
(ISqlTransaction transaction, NodeSecurity security) boolean
updateNodeSecurity
(NodeSecurity security)
-
Method Details
-
findNode
-
findNode
-
findNodeInCacheOnly
-
getExternalId
-
findNodeHosts
-
isRegistrationServer
boolean isRegistrationServer() -
findNodeByExternalId
-
findNodesThatOriginatedFromNodeId
Find a list ofNode
s that were create at the passed in node or were created at a node that was created by the passed in node (recursively). -
findNodesThatOriginatedFromNodeId
-
findEnabledNodesFromNodeGroup
-
getEnabledNodesFromDatabase
Collection<Node> getEnabledNodesFromDatabase() -
findNodesWithOpenRegistration
Collection<Node> findNodesWithOpenRegistration() -
findAllNodeSecurity
-
findNodeSecurityWithLoadEnabled
List<NodeSecurity> findNodeSecurityWithLoadEnabled() -
findAllExternalIds
-
findNodeSecurity
-
findNodeSecurity
-
findOrCreateNodeSecurity
-
deleteNodeHost
-
deleteNodeHostInstance
-
deleteNodeSecurity
-
deleteNode
-
deleteNode
-
findSymmetricVersion
String findSymmetricVersion() -
findIdentityNodeId
String findIdentityNodeId() -
ignoreNodeChannelForExternalId
-
isNodeAuthorized
-
flushNodeCache
void flushNodeCache() -
flushNodeAuthorizedCache
void flushNodeAuthorizedCache() -
flushNodeGroupCache
void flushNodeGroupCache() -
isRegistrationEnabled
-
findIdentity
Node findIdentity() -
findIdentity
-
findIdentity
-
getCachedIdentity
Node getCachedIdentity() -
deleteIdentity
boolean deleteIdentity() -
findAllNodes
-
findAllNodes
-
findAllNodesAsMap
-
findFilteredNodesWithLimit
-
countFilteredNodes
-
findNodesToPull
-
findNodesToPushTo
-
findNodesWhoPushToMe
-
findNodesWhoPullFromMe
-
findSourceNodesFor
-
findTargetNodesFor
-
getSourceNodesFromDatabase
-
getTargetNodesFromDatabase
-
isExternalIdRegistered
-
save
-
updateNodeHost
-
updateNodeHostForCurrentNode
void updateNodeHostForCurrentNode() -
insertNodeIdentity
-
insertNodeGroup
-
updateNodeSecurity
-
updateNodeSecurity
-
setInitialLoadEnabled
-
setInitialLoadEnabled
boolean setInitialLoadEnabled(ISqlTransaction transaction, String nodeId, boolean initialLoadEnabled, boolean syncChange, long loadId, String createBy) -
setInitialLoadEnded
-
setPartialLoadStarted
boolean setPartialLoadStarted(ISqlTransaction transaction, String nodeId, long loadId, String createBy) -
setPartialLoadEnded
-
setReverseInitialLoadEnabled
boolean setReverseInitialLoadEnabled(ISqlTransaction transaction, String nodeId, boolean initialLoadEnabled, boolean syncChange, long loadId, String createBy) -
setReverseInitialLoadEnabled
-
isDataLoadCompleted
boolean isDataLoadCompleted()- Returns:
- true if a data load has occurred and has been completed.
-
isDataLoadCompleted
-
isDataLoadStarted
boolean isDataLoadStarted()- Returns:
- true if a data load has started but not yet completed.
-
isDataLoadStarted
-
getNodeStatus
NodeStatus getNodeStatus()Get the current status of this node.- Returns:
NodeStatus
-
getNodeStatus
-
checkForOfflineNodes
void checkForOfflineNodes()Check to see if any nodes are offline and process any nodes found using the configured IOfflineNodeHandler. -
findOfflineNodes
Find nodes that have been offline for the configured timeframe beforeIOfflineClientListener
andIOfflineServerListener
will be called- Returns:
- list of offline nodes
-
findOfflineNodes
Find nodes that have been offline for a number of minutes- Parameters:
minutesOffline
- the number of minutes that have passed that a node has not checked in for until it is considered offline- Returns:
- list of offline nodes
-
findLastHeartbeats
-
findOfflineNodeIds
-
getRootNetworkedNode
NetworkedNode getRootNetworkedNode() -
findRootNode
Node findRootNode() -
getAuthenticationStatus
-
resetNodeFailedLogins
-
incrementNodeFailedLogins
-