use of io.cdap.cdap.logging.gateway.handlers.RemoteLogsFetcher 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");
}
use of io.cdap.cdap.logging.gateway.handlers.RemoteLogsFetcher in project cdap by caskdata.
the class SupportBundleSystemLogTaskTest method setup.
@BeforeClass
public static void setup() throws Exception {
Injector injector = getInjector();
configuration = injector.getInstance(CConfiguration.class);
store = injector.getInstance(DefaultStore.class);
supportBundleTaskFactorySet = new HashSet<>();
supportBundleTaskFactorySet.add(injector.getInstance(SupportBundlePipelineInfoTaskFactory.class));
supportBundleTaskFactorySet.add(injector.getInstance(SupportBundleSystemLogTaskFactory.class));
remoteLogsFetcher = injector.getInstance(RemoteLogsFetcher.class);
remoteMonitorServicesFetcher = injector.getInstance(RemoteMonitorServicesFetcher.class);
}
Aggregations