use of io.crate.operation.reference.sys.cluster.SysClusterExpressionModule in project crate by crate.
the class TestGlobalSysExpressions method prepare.
@Before
public void prepare() throws Exception {
Injector injector = new ModulesBuilder().add(new SysClusterExpressionModule()).add((Module) binder -> {
binder.bind(ClusterService.class).toInstance(new NoopClusterService());
binder.bind(Settings.class).toInstance(Settings.EMPTY);
binder.bind(ClusterName.class).toInstance(new ClusterName("cluster"));
binder.bind(ClusterReferenceResolver.class).asEagerSingleton();
}).createInjector();
resolver = injector.getInstance(ClusterReferenceResolver.class);
}
use of io.crate.operation.reference.sys.cluster.SysClusterExpressionModule 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