Search in sources :

Example 1 with SupportBundleTaskFactory

use of io.cdap.cdap.support.task.factory.SupportBundleTaskFactory in project cdap by caskdata.

the class SupportBundleServiceModule method configure.

@Override
protected void configure() {
    Multibinder<HttpHandler> handlerBinder = Multibinder.newSetBinder(binder(), HttpHandler.class, Names.named(Constants.SupportBundle.HANDLERS_NAME));
    CommonHandlers.add(handlerBinder);
    handlerBinder.addBinding().to(SupportBundleHttpHandler.class);
    handlerBinder.addBinding().to(HealthCheckHttpHandler.class);
    bind(SupportBundleInternalService.class).in(Scopes.SINGLETON);
    Multibinder<SupportBundleTaskFactory> supportBundleTaskFactoryMultibinder = Multibinder.newSetBinder(binder(), SupportBundleTaskFactory.class, Names.named(Constants.SupportBundle.TASK_FACTORY));
    supportBundleTaskFactoryMultibinder.addBinding().to(SupportBundlePipelineInfoTaskFactory.class);
    supportBundleTaskFactoryMultibinder.addBinding().to(SupportBundleSystemLogTaskFactory.class);
    supportBundleTaskFactoryMultibinder.addBinding().to(SupportBundleK8sHealthCheckTaskFactory.class);
    install(new HealthCheckModule());
}
Also used : HealthCheckHttpHandler(io.cdap.cdap.gateway.handlers.HealthCheckHttpHandler) SupportBundleHttpHandler(io.cdap.cdap.support.handlers.SupportBundleHttpHandler) HttpHandler(io.cdap.http.HttpHandler) SupportBundleInternalService(io.cdap.cdap.support.internal.app.services.SupportBundleInternalService) HealthCheckModule(io.cdap.cdap.common.guice.HealthCheckModule) SupportBundleTaskFactory(io.cdap.cdap.support.task.factory.SupportBundleTaskFactory)

Aggregations

HealthCheckModule (io.cdap.cdap.common.guice.HealthCheckModule)1 HealthCheckHttpHandler (io.cdap.cdap.gateway.handlers.HealthCheckHttpHandler)1 SupportBundleHttpHandler (io.cdap.cdap.support.handlers.SupportBundleHttpHandler)1 SupportBundleInternalService (io.cdap.cdap.support.internal.app.services.SupportBundleInternalService)1 SupportBundleTaskFactory (io.cdap.cdap.support.task.factory.SupportBundleTaskFactory)1 HttpHandler (io.cdap.http.HttpHandler)1