Interface IServerNodeDao
- All Known Implementing Classes:
ServerNodeDao
public interface IServerNodeDao
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the current node.longReturns the number of nodes currently in the database.Returns a list of all node names currently in the database.booleanisCurrentNodeAccepted(IEntityContext ec, LicenseModel systemLicense) Checks if the current node is accepted with the given system license.voidRemoves the current node from the database.voidRemoves all nodes that have not pinged the server for a certain amount of time.voidremoveNode(IEntityContext ec, String nodeName) Adds a new node to the database.
-
Method Details
-
isCurrentNodeAccepted
Checks if the current node is accepted with the given system license.- Parameters:
ec- the entity context.systemLicense- the system license to check against.- Returns:
trueif the node was accepted,falseotherwise.
-
removeNode
Adds a new node to the database.- Parameters:
ec- the entity context.nodeName- the name of the node to add.
-
removeCurrentNode
Removes the current node from the database.- Parameters:
ec- the entity context.
-
removeExpiredNodes
Removes all nodes that have not pinged the server for a certain amount of time.- Parameters:
ec- the entity context.
-
getNodeCount
Returns the number of nodes currently in the database.- Parameters:
ec- the entity context.- Returns:
- the number of nodes.
-
getNodeNames
Returns a list of all node names currently in the database.- Parameters:
ec- the entity context.- Returns:
- a list of node names.
-
getCurrentNodeName
String getCurrentNodeName()Returns the name of the current node.- Returns:
- the name of the current node.
-