Package RemoteCluster.CommunicationMessages

Examples of RemoteCluster.CommunicationMessages.RestartNode


    scheduler.tell(new CheckSchedule(), ActorRef.noSender());
    hostAddress += ":" + port;
    if (hostAddress.equals(masterUrl)) {
      System.out.println("I'm Master!");
      DistributedUtils.initHttpPort();
      personalG.tell(new RestartNode(), ActorRef.noSender());
    } else {
      System.out.println("I'm slave.");
    }
  }
View Full Code Here


     
      getContext().system().scheduler().scheduleOnce(Duration.create(60, TimeUnit.SECONDS),
          new Runnable() {
              @Override
              public void run() {
                getSelf().tell(new RestartNode(), ActorRef.noSender());
           }
      }, getContext().system().dispatcher());
     
    }
  }
View Full Code Here

TOP

Related Classes of RemoteCluster.CommunicationMessages.RestartNode

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.