Examples of sendOneWay()


Examples of akka.actor.ActorRef.sendOneWay()

        return new WCMapReduceApp(10,
            "/Users/brlee/Workspace/WordCountFiles", 3);
      }
    });
    actor.start();
    actor.sendOneWay(new StartWork());
  }
}
View Full Code Here

Examples of akka.actor.ActorRef.sendOneWay()

public class FaultToleranceApp extends BaseRootSupervisorImpl
{
    public static void main( String[] args )
    {
        ActorRef master = actorOf(FaultToleranceApp.class);
        master.sendOneWay(new StartWork());
    }
   
    public FaultToleranceApp(){
      setupWorkers(10, aClass);
    }
View Full Code Here

Examples of akka.actor.ActorRef.sendOneWay()

    ActorRef subscriber = actorOf(new UntypedActorFactory() {
      public UntypedActor create() {
        return new Subscriber("tcp://localhost:5555", new StringFormat(), logger);
      }
    }).start();
    subscriber.sendOneWay(Receive);
  }

  public static class Logger extends UntypedActor {
    @Override
    public void onReceive(Object message) throws Exception {
View Full Code Here

Examples of akka.actor.ActorRef.sendOneWay()

public class AsyncSend {

  public static void main(String[] args) {
    ActorRef actor = actorOf(AsyncSendActor.class).start();
    LoggerFactory.getLogger(AsyncSend.class).info("Starting up...");
    actor.sendOneWay("Hello, world!");
  }

  public static class AsyncSendActor extends UntypedActor {
    @Override
    public void onReceive(Object message) throws Exception {
View Full Code Here

Examples of akka.actor.ActorRef.sendOneWay()

    // (0,99999), (100000,199999), (200000,299999), (300000,399999)...
    for (int x = 0; x < iterations; x++) {
      ActorRef worker = actorOf(Worker.class).start();
      int start = x * length;
      int end = (x + 1) * length - 1;
      worker.sendOneWay(new Range(start, end), accumulator);
    }
  }

  public static final class Range {
    public final int start;
View Full Code Here

Examples of akka.actor.ActorRef.sendOneWay()

      }
    }).start();

    int count = 0;
    while (true) {
      publisher.sendOneWay("Message " + count++);

      try {
        Thread.sleep(1000);
      } catch (InterruptedException e) {
        e.printStackTrace();
View Full Code Here

Examples of org.apache.cassandra.net.MessagingService.sendOneWay()

        try
        {
            Message message = TreeResponseVerbHandler.makeVerb(local, validator);
            logger.info("Sending AEService tree for " + validator.request);
            ms.sendOneWay(message, validator.request.endpoint);
        }
        catch (Exception e)
        {
            logger.error("Could not send valid tree for request " + validator.request, e);
        }
View Full Code Here

Examples of org.apache.cassandra.net.MessagingService.sendOneWay()

        try
        {
            Message message = TreeResponseVerbHandler.makeVerb(local, validator);
            if (!validator.request.endpoint.equals(FBUtilities.getBroadcastAddress()))
                logger.info(String.format("[repair #%s] Sending completed merkle tree to %s for %s", validator.request.sessionid, validator.request.endpoint, validator.request.cf));
            ms.sendOneWay(message, validator.request.endpoint);
        }
        catch (Exception e)
        {
            logger.error(String.format("[repair #%s] Error sending completed merkle tree to %s for %s ", validator.request.sessionid, validator.request.endpoint, validator.request.cf), e);
        }
View Full Code Here

Examples of org.apache.cassandra.net.MessagingService.sendOneWay()

        try
        {
            Message message = TreeResponseVerbHandler.makeVerb(local, validator);
            if (!validator.request.endpoint.equals(FBUtilities.getBroadcastAddress()))
                logger.info(String.format("[repair #%s] Sending completed merkle tree to %s for %s", validator.request.sessionid, validator.request.endpoint, validator.request.cf));
            ms.sendOneWay(message, validator.request.endpoint);
        }
        catch (Exception e)
        {
            logger.error(String.format("[repair #%s] Error sending completed merkle tree to %s for %s ", validator.request.sessionid, validator.request.endpoint, validator.request.cf), e);
        }
View Full Code Here

Examples of org.apache.cassandra.net.MessagingService.sendOneWay()

        try
        {
            Message message = TreeResponseVerbHandler.makeVerb(local, validator);
            if (!validator.request.endpoint.equals(FBUtilities.getBroadcastAddress()))
                logger.info(String.format("[repair #%s] Sending completed merkle tree to %s for %s", validator.request.sessionid, validator.request.endpoint, validator.request.cf));
            ms.sendOneWay(message, validator.request.endpoint);
        }
        catch (Exception e)
        {
            logger.error(String.format("[repair #%s] Error sending completed merkle tree to %s for %s ", validator.request.sessionid, validator.request.endpoint, validator.request.cf), e);
        }
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.