Search in sources :

Example 1 with RemoteMonitorServicesFetcher

use of io.cdap.cdap.support.metadata.RemoteMonitorServicesFetcher 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);
}
Also used : DefaultStore(io.cdap.cdap.internal.app.store.DefaultStore) RemoteMonitorServicesFetcher(io.cdap.cdap.support.metadata.RemoteMonitorServicesFetcher) Injector(com.google.inject.Injector) SupportBundleSystemLogTaskFactory(io.cdap.cdap.support.task.factory.SupportBundleSystemLogTaskFactory) SupportBundlePipelineInfoTaskFactory(io.cdap.cdap.support.task.factory.SupportBundlePipelineInfoTaskFactory) CConfiguration(io.cdap.cdap.common.conf.CConfiguration) 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 RemoteMonitorServicesFetcher (io.cdap.cdap.support.metadata.RemoteMonitorServicesFetcher)1 SupportBundlePipelineInfoTaskFactory (io.cdap.cdap.support.task.factory.SupportBundlePipelineInfoTaskFactory)1 SupportBundleSystemLogTaskFactory (io.cdap.cdap.support.task.factory.SupportBundleSystemLogTaskFactory)1 BeforeClass (org.junit.BeforeClass)1