Class WkaBasedMembershipScheme

  • All Implemented Interfaces:
    MembershipScheme

    public class WkaBasedMembershipScheme
    extends Object
    implements MembershipScheme
    Implementation of the WKA(well-known address) based membership scheme. In this scheme, membership is discovered using a few well-known members (who run at well-known IP addresses)
    • Constructor Detail

      • WkaBasedMembershipScheme

        public WkaBasedMembershipScheme​(org.apache.catalina.tribes.ManagedChannel channel,
                                        OperationMode mode,
                                        List<MembershipManager> applicationDomainMembershipManagers,
                                        MembershipManager primaryMembershipManager,
                                        Map<String,​org.apache.axis2.description.Parameter> parameters,
                                        byte[] domain,
                                        List<org.apache.axis2.clustering.Member> members,
                                        boolean atmostOnceMessageSemantics,
                                        boolean preserverMsgOrder)
    • Method Detail

      • init

        public void init()
                  throws org.apache.axis2.clustering.ClusteringFault
        Configure the membership related to the WKA based scheme
        Specified by:
        init in interface MembershipScheme
        Throws:
        org.apache.axis2.clustering.ClusteringFault - If an error occurs while configuring this scheme
      • joinGroup

        public void joinGroup()
                       throws org.apache.axis2.clustering.ClusteringFault
        JOIN the group and get the member list
        Specified by:
        joinGroup in interface MembershipScheme
        Throws:
        org.apache.axis2.clustering.ClusteringFault - If an error occurs while joining the group
      • processJoin

        public void processJoin​(org.apache.catalina.tribes.Member member)
        When a JOIN message is received from some other member, it is notified using this method, so that membership scheme specific processing can be carried out
        Parameters:
        member - The member who just joined
      • getParameter

        public org.apache.axis2.description.Parameter getParameter​(String name)