public class DefaultClusterJoinManager extends Object implements ClusterJoinManager
ClusterJoinManager
which first authenticates
new connections
Warning: 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.
Constructor and Description |
---|
DefaultClusterJoinManager(ClusterAuthenticator clusterAuthenticator,
boolean enableNodeAuthentication) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ClusterJoinRequest request)
The implementation of this method matches that of
connect(ClusterJoinRequest) but from
the other side. |
void |
connect(ClusterJoinRequest request)
Attempt to join an existing cluster
|
public DefaultClusterJoinManager(ClusterAuthenticator clusterAuthenticator, boolean enableNodeAuthentication)
public void accept(@Nonnull ClusterJoinRequest request) throws IOException
connect(ClusterJoinRequest)
but from
the other side.accept
in interface ClusterJoinManager
request
- the join requestIOException
- if the join negotiation failed, or a communication breakdown occursconnect(ClusterJoinRequest)
public void connect(@Nonnull ClusterJoinRequest request) throws IOException
ClusterJoinManager
connect
in interface ClusterJoinManager
request
- the join requestIOException
- if the join negotiation failed, or a communication breakdown occursCopyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences