Package org.apache.twill.api

Examples of org.apache.twill.api.TwillRunnable


                                     .withRunnable()
                                     .add(new HttpServiceTwillRunnable(appName, configurer.getName(),
                                                                       serviceHandlers, datasets))
                                     .noLocalFiles();
    for (ServiceWorker worker : configurer.getWorkers()) {
      TwillRunnable runnable = new ServiceWorkerTwillRunnable(worker, datasets);
      runnableSetter = runnableSetter.add(runnable, worker.configure().getResourceSpecification()).noLocalFiles();
    }
    return runnableSetter.anyOrder().build();
  }
View Full Code Here


                                              runnableSpec.getResourceSpecification().getVirtualCores(),
                                              runnableSpec.getResourceSpecification().getMemorySize(),
                                              discoveryServiceClient, dService, instanceCount, electionRegistry);

      TypeToken<? extends  TwillRunnable> runnableType = TypeToken.of(runnableClass);
      TwillRunnable runnable = null;

      if (runnableClass.isAssignableFrom(HttpServiceTwillRunnable.class)) {
        // Special case for running HTTP services
        runnable = new HttpServiceTwillRunnable(program, runId, cConfiguration, runnableName, metricsCollectionService,
                                                discoveryServiceClient, datasetFramework,
View Full Code Here

TOP

Related Classes of org.apache.twill.api.TwillRunnable

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.