Examples of member()


Examples of akka.cluster.ClusterEvent.MemberEvent.member()

      if (mUp.member().hasRole("compute"))
        nodes.add(mUp.member().address());

    } else if (message instanceof MemberEvent) {
      MemberEvent other = (MemberEvent) message;
      nodes.remove(other.member().address());

    } else if (message instanceof UnreachableMember) {
      UnreachableMember unreachable = (UnreachableMember) message;
      nodes.remove(unreachable.member().address());
View Full Code Here

Examples of akka.cluster.ClusterEvent.MemberRemoved.member()

            + 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()) {
View Full Code Here

Examples of akka.cluster.ClusterEvent.MemberRemoved.member()

      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;
      }
View Full Code Here

Examples of akka.cluster.ClusterEvent.MemberRemoved.member()

     
      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

Examples of akka.cluster.ClusterEvent.MemberRemoved.member()

     
      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

Examples of akka.cluster.ClusterEvent.MemberRemoved.member()

    } 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());
    }
  }

  public void queryProgress() {
    List<Future<Object>> progressList = new ArrayList<Future<Object>>();
View Full Code Here

Examples of akka.cluster.ClusterEvent.MemberUp.member()

      }
     
    } else if (message instanceof MemberUp) {
      MemberUp mUp = (MemberUp) message;
     
      if (!mUp.member().address().equals(cluster.selfAddress())) {
        ClusterState.memberLoad.put(mUp.member().address(), new AtomicInteger(0));
        Pattern pattern = Pattern.compile("@.+:");       
        Matcher matcher = pattern.matcher(mUp.member().address().toString());
        if (matcher.find()) {
          String url = matcher.group().substring(1, matcher.end()-matcher.start()-1);
View Full Code Here

Examples of akka.cluster.ClusterEvent.MemberUp.member()

     
    } else if (message instanceof MemberUp) {
      MemberUp mUp = (MemberUp) message;
     
      if (!mUp.member().address().equals(cluster.selfAddress())) {
        ClusterState.memberLoad.put(mUp.member().address(), new AtomicInteger(0));
        Pattern pattern = Pattern.compile("@.+:");       
        Matcher matcher = pattern.matcher(mUp.member().address().toString());
        if (matcher.find()) {
          String url = matcher.group().substring(1, matcher.end()-matcher.start()-1);
          String port = mUp.member().address().toString().substring(mUp.member().address().toString().length()-4);
View Full Code Here

Examples of akka.cluster.ClusterEvent.MemberUp.member()

      MemberUp mUp = (MemberUp) message;
     
      if (!mUp.member().address().equals(cluster.selfAddress())) {
        ClusterState.memberLoad.put(mUp.member().address(), new AtomicInteger(0));
        Pattern pattern = Pattern.compile("@.+:");       
        Matcher matcher = pattern.matcher(mUp.member().address().toString());
        if (matcher.find()) {
          String url = matcher.group().substring(1, matcher.end()-matcher.start()-1);
          String port = mUp.member().address().toString().substring(mUp.member().address().toString().length()-4);
          ClusterState.memberStates.put(url + ":" + port, clusterState.new State(true, true));
        }
View Full Code Here

Examples of akka.cluster.ClusterEvent.MemberUp.member()

        ClusterState.memberLoad.put(mUp.member().address(), new AtomicInteger(0));
        Pattern pattern = Pattern.compile("@.+:");       
        Matcher matcher = pattern.matcher(mUp.member().address().toString());
        if (matcher.find()) {
          String url = matcher.group().substring(1, matcher.end()-matcher.start()-1);
          String port = mUp.member().address().toString().substring(mUp.member().address().toString().length()-4);
          ClusterState.memberStates.put(url + ":" + port, clusterState.new State(true, true));
        }
       
        models.utils.LogUtils.printLogNormal("MemberUp : "
            + ClusterState.memberLoad.size()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.