use of io.crate.monitor.MonitorModule in project crate by crate.
the class SysNodesExpressionsTest method prepare.
@Before
public void prepare() throws Exception {
MonitorModule monitorModule = new MonitorModule(NODE_SETTINGS);
monitorModule.addExtendedNodeInfoType("dummy", DummyExtendedNodeInfo.class);
injector = new ModulesBuilder().add(new TestModule(true), monitorModule, new SysNodeExpressionModule()).createInjector();
resolver = injector.getInstance(NodeSysExpression.class);
}
use of io.crate.monitor.MonitorModule in project crate by crate.
the class SysNodesExpressionsWithDefaultExtendedStatsTest method prepare.
private void prepare(boolean isDataNode) throws Exception {
injector = new ModulesBuilder().add(new SysNodesExpressionsTest.TestModule(isDataNode), new MonitorModule(Settings.EMPTY), new SysNodeExpressionModule()).createInjector();
resolver = injector.getInstance(NodeSysExpression.class);
}
use of io.crate.monitor.MonitorModule in project crate by crate.
the class SQLPlugin method nodeModules.
@Override
public Collection<Module> nodeModules() {
Collection<Module> modules = newArrayList();
modules.add(new SQLModule());
modules.add(new CircuitBreakerModule());
modules.add(new TransportExecutorModule());
modules.add(new JobModule());
modules.add(new CollectOperationModule());
modules.add(new FileCollectModule());
modules.add(new MetaDataModule());
modules.add(new MetaDataSysModule());
modules.add(new MetaDataBlobModule());
modules.add(new PgCatalogModule());
modules.add(new MetaDataInformationModule());
modules.add(new OperatorModule());
modules.add(new PredicateModule());
modules.add(new MonitorModule(settings));
modules.add(new SysClusterExpressionModule());
modules.add(new SysNodeExpressionModule());
modules.add(new AggregationImplModule());
modules.add(new ScalarFunctionModule());
modules.add(new TableFunctionModule());
modules.add(new BulkModule());
modules.add(new SysChecksModule());
modules.add(new SysNodeChecksModule());
modules.add(new RepositorySettingsModule());
modules.add(new SysRepositoriesModule());
return modules;
}
Aggregations