Package org.akka.essentials.grid

Examples of org.akka.essentials.grid.StopWorker


      }
    } else if (message instanceof TaskFinished) {
      log.info("Task finished->"
          + ((TaskFinished) message).getTaskNumber());
    } else if (message instanceof StopWorker) {
      StopWorker stopMe = (StopWorker) message;
      log.info("Worker requesting shutdown->" + stopMe.getActorPath());
      removeWorkerRoute(stopMe.getActorPath());
    }

  }
View Full Code Here


  public void onReceive(Object message) throws Exception {
    if (message instanceof RemoteClientError) {
      RemoteClientError event = (RemoteClientError) message;
      log.info("Received remote client error event from address "
          + event.getRemoteAddress());
      jobScheduler.tell(new StopWorker(event.getRemoteAddress()
          .toString()));
      log.info("Cause of the event was {}", event.getCause());
//    } else if (message instanceof RemoteClientWriteFailed) {
//      RemoteClientWriteFailed event = (RemoteClientWriteFailed) message;
//      log.info("Received remote client write fail event from address "
View Full Code Here

TOP

Related Classes of org.akka.essentials.grid.StopWorker

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.