Package akka.actor

Examples of akka.actor.ActorRef.path()


    while (manager != null) {
      FiniteDuration duration = Duration.create(
          60, TimeUnit.SECONDS);
      streamRequestToManager streamRequest = new streamRequestToManager(0);
      Future<Object> futureResponse = Patterns.ask(manager, streamRequest, new Timeout(duration));
      System.out.println(manager.path().address().toString());
     
      try {
        BatchResponseFromManager partResponse = (BatchResponseFromManager) Await.result(futureResponse, duration);
        while (partResponse.getResponseMap().size() > 0) {
          collectResult(response, partResponse);
View Full Code Here


              }
            } else {
              incomplete.getAndSet(true);
            }
            eachWorkerResponseCount.get(
                m.path().toString()).getAndAdd(
                progressMessage.responseCount);
            eachWorkerRequestCount.get(
                m.path().toString()).getAndAdd(
                progressMessage.requestCount);
            jobInfo.capacityUsage.put(
View Full Code Here

            }
            eachWorkerResponseCount.get(
                m.path().toString()).getAndAdd(
                progressMessage.responseCount);
            eachWorkerRequestCount.get(
                m.path().toString()).getAndAdd(
                progressMessage.requestCount);
            jobInfo.capacityUsage.put(
                m.path().address().toString(),
                progressMessage.capacityPercent);
          } catch (Exception e) {
View Full Code Here

                progressMessage.responseCount);
            eachWorkerRequestCount.get(
                m.path().toString()).getAndAdd(
                progressMessage.requestCount);
            jobInfo.capacityUsage.put(
                m.path().address().toString(),
                progressMessage.capacityPercent);
          } catch (Exception e) {
            incomplete.getAndSet(true);
            System.out.println("Monitor query timeout.");
          }
View Full Code Here

    //#make-address
    //#deploy
    ActorRef ref = system.actorOf(Props.create(SampleActor.class).withDeploy(
      new Deploy(new RemoteScope(addr))));
    //#deploy
    assert ref.path().address().equals(addr);
  }

  @Test
  public void demonstrateSampleActor() {
    //#sample-actor
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.