org.apache.stratos.cartridge.agent
Class ELBMembershipListener

java.lang.Object
  extended by org.apache.stratos.cartridge.agent.ELBMembershipListener
All Implemented Interfaces:
org.apache.axis2.clustering.MembershipListener

public class ELBMembershipListener
extends Object
implements org.apache.axis2.clustering.MembershipListener

This membership listener will get notified when the Elastic Load Balancer (ELB) joins or leaves the cluster When the ELB leaves the cluster, we have to disconnect all Registrants, and when the ELB rejoins, we have to reconnect all the Registrants to the ELB


Constructor Summary
ELBMembershipListener(ClusteringClient clusteringClient, org.apache.axis2.context.ConfigurationContext configurationContext, RegistrantDatabase registrantDatabase, RegistrantHealthChecker healthChecker)
           
 
Method Summary
 void memberAdded(org.apache.axis2.clustering.Member member, boolean b)
           
 void memberDisappeared(org.apache.axis2.clustering.Member member, boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ELBMembershipListener

public ELBMembershipListener(ClusteringClient clusteringClient,
                             org.apache.axis2.context.ConfigurationContext configurationContext,
                             RegistrantDatabase registrantDatabase,
                             RegistrantHealthChecker healthChecker)
Method Detail

memberAdded

public void memberAdded(org.apache.axis2.clustering.Member member,
                        boolean b)
Specified by:
memberAdded in interface org.apache.axis2.clustering.MembershipListener

memberDisappeared

public void memberDisappeared(org.apache.axis2.clustering.Member member,
                              boolean b)
Specified by:
memberDisappeared in interface org.apache.axis2.clustering.MembershipListener


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.