Package co.cask.cdap.internal.app.services

Examples of co.cask.cdap.internal.app.services.ServiceWorkerTwillRunnable


        // Special case for running HTTP services
        runnable = new HttpServiceTwillRunnable(program, runId, cConfiguration, runnableName, metricsCollectionService,
                                                discoveryServiceClient, datasetFramework,
                                                transactionSystemClient);
      } else if (runnableClass.isAssignableFrom(ServiceWorkerTwillRunnable.class)) {
        runnable = new ServiceWorkerTwillRunnable(program, runId, runnableName, program.getClassLoader(),
                                                  cConfiguration, metricsCollectionService, datasetFramework,
                                                  transactionSystemClient, discoveryServiceClient);
      } else {
        runnable = new InstantiatorFactory(false).get(runnableType).create();
      }
View Full Code Here


        // using the program classloader.
        delegate = new HttpServiceTwillRunnable(program, runId, cConf, runnableName, metricsCollectionService,
                                                discoveryServiceClient, datasetFramework,
                                                transactionSystemClient);
      } else if (clz.isAssignableFrom(ServiceWorkerTwillRunnable.class)) {
        delegate = new ServiceWorkerTwillRunnable(program, runId, runnableName, program.getClassLoader(), cConf,
                                                  metricsCollectionService, datasetFramework,
                                                  transactionSystemClient,
                                                  discoveryServiceClient);
      } else {
        delegate = (TwillRunnable) new InstantiatorFactory(false).get(TypeToken.of(clz)).create();
View Full Code Here

TOP

Related Classes of co.cask.cdap.internal.app.services.ServiceWorkerTwillRunnable

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.