Class ServerNodeDao
java.lang.Object
de.xima.fc.dao.impl.ATransactionDao
de.xima.fc.dao.impl.ServerNodeDao
- All Implemented Interfaces:
IServerNodeDao
-
Constructor Summary
Constructors -
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.Methods inherited from class ATransactionDao
activate, rollback
-
Constructor Details
-
ServerNodeDao
public ServerNodeDao()
-
-
Method Details
-
isCurrentNodeAccepted
Description copied from interface:IServerNodeDaoChecks if the current node is accepted with the given system license.- Specified by:
isCurrentNodeAcceptedin interfaceIServerNodeDao- Parameters:
ec- the entity context.systemLicense- the system license to check against.- Returns:
trueif the node was accepted,falseotherwise.
-
removeNode
Description copied from interface:IServerNodeDaoAdds a new node to the database.- Specified by:
removeNodein interfaceIServerNodeDao- Parameters:
ec- the entity context.nodeName- the name of the node to add.
-
removeCurrentNode
Description copied from interface:IServerNodeDaoRemoves the current node from the database.- Specified by:
removeCurrentNodein interfaceIServerNodeDao- Parameters:
ec- the entity context.
-
removeExpiredNodes
Description copied from interface:IServerNodeDaoRemoves all nodes that have not pinged the server for a certain amount of time.- Specified by:
removeExpiredNodesin interfaceIServerNodeDao- Parameters:
ec- the entity context.
-
getNodeCount
Description copied from interface:IServerNodeDaoReturns the number of nodes currently in the database.- Specified by:
getNodeCountin interfaceIServerNodeDao- Parameters:
ec- the entity context.- Returns:
- the number of nodes.
-
getNodeNames
Description copied from interface:IServerNodeDaoReturns a list of all node names currently in the database.- Specified by:
getNodeNamesin interfaceIServerNodeDao- Parameters:
ec- the entity context.- Returns:
- a list of node names.
-
getCurrentNodeName
Description copied from interface:IServerNodeDaoReturns the name of the current node.- Specified by:
getCurrentNodeNamein interfaceIServerNodeDao- Returns:
- the name of the current node.
-