Class ClusterNodeService
java.lang.Object
io.jans.as.server.service.cluster.ClusterNodeService
- Version:
- 1.0, 06/03/2024
- Author:
- Yuriy Movchan
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.jans.model.cluster.ClusterNode
allocate()
List<io.jans.model.cluster.ClusterNode>
returns a list of all ClusterNodesio.jans.model.cluster.ClusterNode
returns ClusterNode by Dnio.jans.model.cluster.ClusterNode
returns ClusterNode by Idio.jans.model.cluster.ClusterNode
returns last TokenPool or null if nonegetClusterNodesDns
(List<Integer> nodeIds) List<io.jans.model.cluster.ClusterNode>
returns a list of expired ClusterNodesprotected void
persist
(io.jans.model.cluster.ClusterNode clusterNode) void
refresh
(io.jans.model.cluster.ClusterNode node) io.jans.model.cluster.ClusterNode
reset
(io.jans.model.cluster.ClusterNode node) void
update
(io.jans.model.cluster.ClusterNode clusterNode)
-
Field Details
-
ATTEMPT_LIMIT
public static final int ATTEMPT_LIMIT- See Also:
-
DELAY_AFTER_EXPIRATION
public static final long DELAY_AFTER_EXPIRATION- See Also:
-
CLUSTER_TYPE_JANS_AUTH
- See Also:
-
JANS_TYPE_ATTR_NAME
- See Also:
-
LOCK_KEY
-
-
Constructor Details
-
ClusterNodeService
public ClusterNodeService()
-
-
Method Details
-
getClusterNodeByDn
returns ClusterNode by Dn- Returns:
- ClusterNode
-
getClusterNodeById
returns ClusterNode by Id- Returns:
- ClusterNode
-
getAllClusterNodes
returns a list of all ClusterNodes- Returns:
- list of ClusterNodes
-
getClusterNodesDns
-
getClusterNodeLast
public io.jans.model.cluster.ClusterNode getClusterNodeLast()returns last TokenPool or null if none- Returns:
- TokenPool
-
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
-