Interface IServerNodeDao

  • All Known Implementing Classes:
    ServerNodeDao

    public interface IServerNodeDao
    • 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:
        true if the node was accepted, false otherwise.
      • 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.