@NoImplement
public interface ClusterCoreExtension
extends org.mule.runtime.container.api.MuleCoreExtension, org.mule.runtime.module.deployment.api.ArtifactDeploymentListener
isClusterEnabled() is false, then the listener will not be invoke and any call to this method will be disregard.| Modifier and Type | Method and Description |
|---|---|
ClusteringTicket |
getClusteringTicket()
Alows server plugins to query the clustering properties.
|
ClusterMemberInfo |
getClusterMemberInfo() |
boolean |
isClusterEnabled() |
void |
putClusteringTicket(ClusteringTicket ticket)
Alows server plugins to specify the clustering properties.
|
String |
registerClusterMembershipListener(ClusterMembershipListener listener)
Adds MembershipListener to listen for membership updates.
|
void |
registerPrimaryNodeListener(PrimaryClusterNodeListener listener)
Register a listener to be notified when the runtime becomes the primary node in the cluster.
|
void |
removeClusteringTicket()
Alows server plugins to clear the clustering properties.
|
boolean |
unregisterClusterMembershipListener(String listenerRegistrationId)
Removes the specified MembershipListener.
|
void registerPrimaryNodeListener(PrimaryClusterNodeListener listener)
listener - primary node listener to be registeredString registerClusterMembershipListener(ClusterMembershipListener listener)
The addMembershipListener method returns a register-id. This ID is needed to remove the MembershipListener using the
unregisterClusterMembershipListener(String) method.
There is no check for duplicate registrations, so if you register the listener twice, it will get events twice.
If isClusterEnabled() is false, then the listener will not be invoke and any call to this method will be disregard.
listener - membership listenerNullPointerException - if listener is null.unregisterClusterMembershipListener(String)boolean unregisterClusterMembershipListener(String listenerRegistrationId)
If the same MembershipListener is registered multiple times, it needs to be removed multiple times. This method can safely be called multiple times for the same registration-id; subsequent calls are ignored.
registrationId - the registrationId of MembershipListener to remove.NullPointerException - if the registration ID is null.registerClusterMembershipListener(ClusterMembershipListener)ClusteringTicket getClusteringTicket() throws org.mule.runtime.api.exception.MuleRuntimeException
org.mule.runtime.api.exception.MuleRuntimeException - wrapping any excpetion that happens internally.void putClusteringTicket(ClusteringTicket ticket) throws org.mule.runtime.api.exception.MuleRuntimeException
ticket - a ticket object that specifies the properties of Mule instances clustering.org.mule.runtime.api.exception.MuleRuntimeException - wrapping any excpetion that happens internally.boolean isClusterEnabled()
void removeClusteringTicket()
throws org.mule.runtime.api.exception.MuleRuntimeException
org.mule.runtime.api.exception.MuleRuntimeException - wrapping any excpetion that happens internally.ClusterMemberInfo getClusterMemberInfo()
Copyright © 2006–2022 MuleSoft, Inc.. All rights reserved.