Search in sources :

Example 1 with RemoteProgramRunRecordsFetcher

use of io.cdap.cdap.logging.gateway.handlers.RemoteProgramRunRecordsFetcher in project cdap by caskdata.

the class SupportBundlePipelineInfoTaskTest method setup.

@BeforeClass
public static void setup() throws Exception {
    Injector injector = getInjector();
    configuration = injector.getInstance(CConfiguration.class);
    store = injector.getInstance(DefaultStore.class);
    executorService = MoreExecutors.newDirectExecutorService();
    supportBundleTaskFactorySet = new HashSet<>();
    supportBundleTaskFactorySet.add(injector.getInstance(SupportBundlePipelineInfoTaskFactory.class));
    supportBundleTaskFactorySet.add(injector.getInstance(SupportBundleSystemLogTaskFactory.class));
    remoteLogsFetcher = injector.getInstance(RemoteLogsFetcher.class);
    remoteProgramRunRecordsFetcher = injector.getInstance(RemoteProgramRunRecordsFetcher.class);
    remoteMetricsSystemClient = injector.getInstance(RemoteMetricsSystemClient.class);
    remoteApplicationDetailFetcher = injector.getInstance(RemoteApplicationDetailFetcher.class);
    remoteProgramRunRecordFetcher = injector.getInstance(RemoteProgramRunRecordFetcher.class);
    workflowName = AppWithWorkflow.SampleWorkflow.NAME;
    application = AppWithWorkflow.NAME;
    programType = ProgramType.valueOfCategoryName("workflows");
}
Also used : DefaultStore(io.cdap.cdap.internal.app.store.DefaultStore) RemoteProgramRunRecordsFetcher(io.cdap.cdap.logging.gateway.handlers.RemoteProgramRunRecordsFetcher) Injector(com.google.inject.Injector) RemoteApplicationDetailFetcher(io.cdap.cdap.metadata.RemoteApplicationDetailFetcher) SupportBundleSystemLogTaskFactory(io.cdap.cdap.support.task.factory.SupportBundleSystemLogTaskFactory) SupportBundlePipelineInfoTaskFactory(io.cdap.cdap.support.task.factory.SupportBundlePipelineInfoTaskFactory) CConfiguration(io.cdap.cdap.common.conf.CConfiguration) RemoteMetricsSystemClient(io.cdap.cdap.metrics.process.RemoteMetricsSystemClient) RemoteProgramRunRecordFetcher(io.cdap.cdap.logging.gateway.handlers.RemoteProgramRunRecordFetcher) RemoteLogsFetcher(io.cdap.cdap.logging.gateway.handlers.RemoteLogsFetcher) BeforeClass(org.junit.BeforeClass)

Aggregations

Injector (com.google.inject.Injector)1 CConfiguration (io.cdap.cdap.common.conf.CConfiguration)1 DefaultStore (io.cdap.cdap.internal.app.store.DefaultStore)1 RemoteLogsFetcher (io.cdap.cdap.logging.gateway.handlers.RemoteLogsFetcher)1 RemoteProgramRunRecordFetcher (io.cdap.cdap.logging.gateway.handlers.RemoteProgramRunRecordFetcher)1 RemoteProgramRunRecordsFetcher (io.cdap.cdap.logging.gateway.handlers.RemoteProgramRunRecordsFetcher)1 RemoteApplicationDetailFetcher (io.cdap.cdap.metadata.RemoteApplicationDetailFetcher)1 RemoteMetricsSystemClient (io.cdap.cdap.metrics.process.RemoteMetricsSystemClient)1 SupportBundlePipelineInfoTaskFactory (io.cdap.cdap.support.task.factory.SupportBundlePipelineInfoTaskFactory)1 SupportBundleSystemLogTaskFactory (io.cdap.cdap.support.task.factory.SupportBundleSystemLogTaskFactory)1 BeforeClass (org.junit.BeforeClass)1