Class ClusterJoinSocketInterceptor
java.lang.Object
com.atlassian.confluence.impl.cluster.nutcluster.interceptor.ClusterJoinSocketInterceptor
- All Implemented Interfaces:
com.atlassian.nutcluster.core.NutclusterInstanceAware
,com.atlassian.nutcluster.nio.MemberSocketInterceptor
,com.atlassian.nutcluster.nio.SocketInterceptor
public final class ClusterJoinSocketInterceptor
extends Object
implements com.atlassian.nutcluster.nio.MemberSocketInterceptor, com.atlassian.nutcluster.core.NutclusterInstanceAware
A
MemberSocketInterceptor
which delegates to ClusterJoinManager
to verify if a member can join.
Unfortunately this cannot be a singleton as it requires access to the
invalid reference
node's
invalid reference
SerializationService
- Since:
- 7.17.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(Properties properties) void
void
void
setNutclusterInstance
(com.atlassian.nutcluster.core.NutclusterInstance nutcluster)
-
Constructor Details
-
ClusterJoinSocketInterceptor
public ClusterJoinSocketInterceptor()
-
-
Method Details
-
init
- Specified by:
init
in interfacecom.atlassian.nutcluster.nio.SocketInterceptor
-
onAccept
- Specified by:
onAccept
in interfacecom.atlassian.nutcluster.nio.MemberSocketInterceptor
- Throws:
IOException
-
onConnect
- Specified by:
onConnect
in interfacecom.atlassian.nutcluster.nio.SocketInterceptor
- Throws:
IOException
-
setNutclusterInstance
public void setNutclusterInstance(com.atlassian.nutcluster.core.NutclusterInstance nutcluster) - Specified by:
setNutclusterInstance
in interfacecom.atlassian.nutcluster.core.NutclusterInstanceAware
-