Package akka.routing

Examples of akka.routing.FromConfig


   */
  public static void main(String[] args) throws InterruptedException {
    ActorSystem _system = ActorSystem.create("RandomRouterExample",
        ConfigFactory.load().getConfig("MyRouterExample"));
    ActorRef randomRouter = _system.actorOf(
        new Props(MsgEchoActor.class).withRouter(new FromConfig()),
        "myRandomRouterActor");

    for (int i = 1; i <= 10; i++) {
      // sends randomly to actors
      randomRouter.tell(i);
View Full Code Here


        resourceFetcher = system.actorOf(new Props(new UntypedActorFactory() {
            public UntypedActor create() {
                return new ResourceFetcher(client);
            }
        }).withRouter(new FromConfig()), "ckanResourceFetcher");


        zipResourceFetcher = system.actorOf(new Props(new UntypedActorFactory() {
            public UntypedActor create() {
                return new ZipResourceFetcher(client);
            }
        }).withRouter(new FromConfig()), "ckanZipResourceFetcher");


        metadataPersist = system.actorOf(new Props(new UntypedActorFactory() {
            public UntypedActor create() {
                return new MetadataPersist(client);
            }
        }).withRouter(new FromConfig()), "ckanMetadataPersist");


        metadataFetcher = system.actorOf(new Props(MetadataFetcher.class).withRouter(new FromConfig()), "ckanMetadataFetcher");

        datasetListFetcher = system.actorOf(new Props(DatasetListFetcher.class), "ckanDatasetListFetcher");

    }
View Full Code Here

        fileFetcher = system.actorOf(new Props(new UntypedActorFactory() {
            public UntypedActor create() {
                return new FileFetcher(client);
            }
        }).withRouter(new FromConfig()), "standaloneFileFetcher");

        zipFileFetcher = system.actorOf(new Props(new UntypedActorFactory() {
            public UntypedActor create() {
                return new ZipFileFetcher(client);
            }
        }).withRouter(new FromConfig()), "standaloneZipFileFetcher");

    }
View Full Code Here

    final LoggerInitialized x = Logging.loggerInitialized();

    final GetRoutees r = GetRoutees.getInstance();
    final NoRouter nr = NoRouter.getInstance();
    final FromConfig fc = FromConfig.getInstance();
  }
View Full Code Here

TOP

Related Classes of akka.routing.FromConfig

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.