Class DefaultClusterJoinManager
- java.lang.Object
-
- com.atlassian.confluence.impl.cluster.hazelcast.interceptor.authenticator.DefaultClusterJoinManager
-
- All Implemented Interfaces:
ClusterJoinManager
public class DefaultClusterJoinManager extends Object implements ClusterJoinManager
AClusterJoinManagerwhich firstauthenticatesnew connectionsWarning: Do not use AOP interceptors around this class!. Doing so can produce unexpected delays in join check processing, which can result in delays when nodes that are starting first attempt to join an existing cluster. That can result in nodes promoting themselves to full members and then clustering "later", defeating our configuration for nodes to join existing clusters as "lite" members (which can't hold partitioned data) until the application is fully started.
- Since:
- 7.17.3
-
-
Constructor Summary
Constructors Constructor Description DefaultClusterJoinManager(ClusterAuthenticator clusterAuthenticator, boolean enableNodeAuthentication)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ClusterJoinRequest request)The implementation of this method matches that ofconnect(ClusterJoinRequest)but from the other side.voidconnect(ClusterJoinRequest request)Attempt to join an existing cluster
-
-
-
Constructor Detail
-
DefaultClusterJoinManager
public DefaultClusterJoinManager(ClusterAuthenticator clusterAuthenticator, boolean enableNodeAuthentication)
-
-
Method Detail
-
accept
public void accept(@Nonnull ClusterJoinRequest request) throws IOExceptionThe implementation of this method matches that ofconnect(ClusterJoinRequest)but from the other side.- Specified by:
acceptin interfaceClusterJoinManager- Parameters:
request- the join request- Throws:
IOException- if the join negotiation failed, or a communication breakdown occurs- See Also:
connect(ClusterJoinRequest)
-
connect
public void connect(@Nonnull ClusterJoinRequest request) throws IOExceptionDescription copied from interface:ClusterJoinManagerAttempt to join an existing cluster- Specified by:
connectin interfaceClusterJoinManager- Parameters:
request- the join request- Throws:
IOException- if the join negotiation failed, or a communication breakdown occurs
-
-