Package de.xima.fc.dao.interfaces
Interface IServerNodeDao
-
- All Known Implementing Classes:
ServerNodeDao
public interface IServerNodeDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetCurrentNodeName()Returns the name of the current node.longgetNodeCount(IEntityContext ec)Returns the number of nodes currently in the database.List<String>getNodeNames(IEntityContext ec)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.voidremoveCurrentNode(IEntityContext ec)Removes the current node from the database.voidremoveExpiredNodes(IEntityContext ec)Removes 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 Detail
-
isCurrentNodeAccepted
boolean isCurrentNodeAccepted(IEntityContext ec, LicenseModel systemLicense)
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
void removeNode(IEntityContext ec, String nodeName)
Adds a new node to the database.- Parameters:
ec- the entity context.nodeName- the name of the node to add.
-
removeCurrentNode
void removeCurrentNode(IEntityContext ec)
Removes the current node from the database.- Parameters:
ec- the entity context.
-
removeExpiredNodes
void removeExpiredNodes(IEntityContext ec)
Removes all nodes that have not pinged the server for a certain amount of time.- Parameters:
ec- the entity context.
-
getNodeCount
long getNodeCount(IEntityContext ec)
Returns the number of nodes currently in the database.- Parameters:
ec- the entity context.- Returns:
- the number of nodes.
-
getNodeNames
List<String> getNodeNames(IEntityContext ec)
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.
-
-