Class ClusterNodeService


  • @ApplicationScoped
    public class ClusterNodeService
    extends Object
    Version:
    1.0, 06/03/2024
    Author:
    Yuriy Movchan
    • Constructor Detail

      • ClusterNodeService

        public ClusterNodeService()
    • Method Detail

      • getClusterNodeByDn

        public io.jans.model.cluster.ClusterNode getClusterNodeByDn​(String dn)
        returns ClusterNode by Dn
        Returns:
        ClusterNode
      • getClusterNodeById

        public io.jans.model.cluster.ClusterNode getClusterNodeById​(Integer id)
        returns ClusterNode by Id
        Returns:
        ClusterNode
      • getAllClusterNodes

        public List<io.jans.model.cluster.ClusterNode> getAllClusterNodes()
        returns a list of all ClusterNodes
        Returns:
        list of ClusterNodes
      • getClusterNodeLast

        public io.jans.model.cluster.ClusterNode getClusterNodeLast()
        returns last TokenPool or null if none
        Returns:
        TokenPool
      • getClusterNodesExpired

        public List<io.jans.model.cluster.ClusterNode> getClusterNodesExpired()
        returns a list of expired ClusterNodes
        Returns:
        list of ClusterNodes
      • persist

        protected void persist​(io.jans.model.cluster.ClusterNode clusterNode)
      • update

        public void update​(io.jans.model.cluster.ClusterNode clusterNode)
      • allocate

        public io.jans.model.cluster.ClusterNode allocate()
      • refresh

        public void refresh​(io.jans.model.cluster.ClusterNode node)
      • reset

        public io.jans.model.cluster.ClusterNode reset​(io.jans.model.cluster.ClusterNode node)
      • getDnForClusterNode

        public String getDnForClusterNode​(Integer id)