Package akka.cluster.ClusterEvent

Examples of akka.cluster.ClusterEvent.MemberRemoved


            + "Member Address : "
            + mUp.member().address().toString());
      }
     
    } else if (message instanceof MemberRemoved) {
      MemberRemoved mRe = (MemberRemoved) message;
      ClusterState.memberLoad.remove(mRe.member().address());
      models.utils.LogUtils.printLogNormal("MemberRemoved " + ClusterState.memberLoad.size());
     
      Pattern pattern = Pattern.compile("@.+:");
      Matcher matcher = pattern.matcher(mRe.member().address().toString());
      if (matcher.find()) {
        String url = matcher.group().substring(1, matcher.end()-matcher.start()-1);
        String port = mRe.member().address().toString().substring(mRe.member().address().toString().length()-4);
        ClusterState.memberStates.get(url + ":" + port).available = false;
      }
 
    } else if (message instanceof RestartNode) {
      System.out.println("Restart removed nodes : ");
View Full Code Here


              }, getContext().system().dispatcher());
    } else if (message instanceof queryMonitorForResponse) {
      getSender().tell(completedButNotCollectedManager, getSelf());
      completedButNotCollectedManager = new ArrayList<ActorRef>();
    } else if (message instanceof MemberRemoved) {
      MemberRemoved mRe = (MemberRemoved) message;
      removedNode.add(mRe.member().address().toString());
    }
  }
View Full Code Here

    } else if (message instanceof UnreachableMember) {
      UnreachableMember mUnreachable = (UnreachableMember) message;
      log.info("Member detected as unreachable: {}", mUnreachable.member());

    } else if (message instanceof MemberRemoved) {
      MemberRemoved mRemoved = (MemberRemoved) message;
      log.info("Member is Removed: {}", mRemoved.member());

    } else if (message instanceof MemberEvent) {
      // ignore

    } else {
View Full Code Here

    } else if (message instanceof UnreachableMember) {
      UnreachableMember mUnreachable = (UnreachableMember) message;
      log.info("Member detected as unreachable: {}", mUnreachable.member());

    } else if (message instanceof MemberRemoved) {
      MemberRemoved mRemoved = (MemberRemoved) message;
      log.info("Member is Removed: {}", mRemoved.member());

    } else if (message instanceof MemberEvent) {
      // ignore

    } else {
View Full Code Here

TOP

Related Classes of akka.cluster.ClusterEvent.MemberRemoved

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.