@Override protected void configure() { bind(MongoClientService.class).asEagerSingleton(); } }
@Override protected void configure() { bind(DanglingIndicesState.class).asEagerSingleton(); bind(GatewayService.class).asEagerSingleton(); bind(TransportNodesListGatewayMetaState.class).asEagerSingleton(); bind(TransportNodesListGatewayStartedShards.class).asEagerSingleton(); bind(LocalAllocateDangledIndices.class).asEagerSingleton(); } }
@Override protected void configure() { bind(IndicesStore.class).asEagerSingleton(); bind(IndicesClusterStateService.class).asEagerSingleton(); bind(SyncedFlushService.class).asEagerSingleton(); bind(TransportNodesListShardStoreMetaData.class).asEagerSingleton(); bind(GlobalCheckpointSyncAction.class).asEagerSingleton(); bind(TransportResyncReplicationAction.class).asEagerSingleton(); bind(PrimaryReplicaSyncer.class).asEagerSingleton(); }
@Override protected void configure() { bind(RepositoriesService.class).toInstance(repositoriesService); bind(SnapshotsService.class).asEagerSingleton(); bind(SnapshotShardsService.class).asEagerSingleton(); bind(TransportNodesSnapshotsStatus.class).asEagerSingleton(); bind(RestoreService.class).asEagerSingleton(); } }
@Override protected void configure() { bind(GatewayAllocator.class).asEagerSingleton(); bind(AllocationService.class).toInstance(allocationService); bind(ClusterService.class).toInstance(clusterService); bind(NodeConnectionsService.class).asEagerSingleton(); bind(MetaDataDeleteIndexService.class).asEagerSingleton(); bind(MetaDataIndexStateService.class).asEagerSingleton(); bind(MetaDataMappingService.class).asEagerSingleton(); bind(MetaDataIndexAliasesService.class).asEagerSingleton(); bind(MetaDataUpdateSettingsService.class).asEagerSingleton(); bind(MetaDataIndexTemplateService.class).asEagerSingleton(); bind(IndexNameExpressionResolver.class).toInstance(indexNameExpressionResolver); bind(RoutingService.class).asEagerSingleton(); bind(DelayedAllocationService.class).asEagerSingleton(); bind(ShardStateAction.class).asEagerSingleton(); bind(NodeMappingRefreshAction.class).asEagerSingleton(); bind(MappingUpdatedAction.class).asEagerSingleton(); bind(TaskResultsService.class).asEagerSingleton(); bind(AllocationDeciders.class).toInstance(allocationDeciders); bind(ShardsAllocator.class).toInstance(shardsAllocator); } }
@Override protected void configure() { bind(ActionFilters.class).toInstance(actionFilters); bind(DestructiveOperations.class).toInstance(destructiveOperations); if (false == transportClient) { // Supporting classes only used when not a transport client bind(AutoCreateIndex.class).toInstance(autoCreateIndex); bind(TransportLivenessAction.class).asEagerSingleton(); // register GenericAction -> transportAction Map used by NodeClient @SuppressWarnings("rawtypes") MapBinder<GenericAction, TransportAction> transportActionsBinder = MapBinder.newMapBinder(binder(), GenericAction.class, TransportAction.class); for (ActionHandler<?, ?> action : actions.values()) { // bind the action as eager singleton, so the map binder one will reuse it bind(action.getTransportAction()).asEagerSingleton(); transportActionsBinder.addBinding(action.getAction()).to(action.getTransportAction()).asEagerSingleton(); for (Class<?> supportAction : action.getSupportTransportActions()) { bind(supportAction).asEagerSingleton(); } } } }
@Override protected void configure() { bind(AnsjElasticConfigurator.class).asEagerSingleton(); } }
@Override protected void configure() { bind(RegisterImageType.class).asEagerSingleton(); bind(RegisterImageQueryParser.class).asEagerSingleton(); } }
@Override protected void configure() { bind(TasteService.class).asEagerSingleton(); } }
@Override protected void configure() { bind(JiebaIndicesAnalysis.class).asEagerSingleton(); } }
@Override protected void configure() { //bind(DanglingIndicesState.class).asEagerSingleton(); bind(CassandraGatewayService.class).asEagerSingleton(); bind(TransportNodesListGatewayMetaState.class).asEagerSingleton(); bind(GatewayMetaState.class).asEagerSingleton(); bind(TransportNodesListGatewayStartedShards.class).asEagerSingleton(); //bind(LocalAllocateDangledIndices.class).asEagerSingleton(); } }
@Override protected void configure() { bind(KuromojiIndicesAnalysis.class).asEagerSingleton(); } }
@Override protected void configure() { bind(IndicesStore.class).asEagerSingleton(); bind(IndicesClusterStateService.class).asEagerSingleton(); bind(SyncedFlushService.class).asEagerSingleton(); bind(TransportNodesListShardStoreMetaData.class).asEagerSingleton(); bind(IndicesTTLService.class).asEagerSingleton(); }
@Override protected void configure() { bind(DanglingIndicesState.class).asEagerSingleton(); bind(GatewayService.class).asEagerSingleton(); bind(TransportNodesListGatewayMetaState.class).asEagerSingleton(); bind(TransportNodesListGatewayStartedShards.class).asEagerSingleton(); bind(LocalAllocateDangledIndices.class).asEagerSingleton(); } }
@Override protected void configure() { //bind(MetaStateService.class).asEagerSingleton(); //bind(DanglingIndicesState.class).asEagerSingleton(); bind(CassandraGatewayService.class).asEagerSingleton(); //bind(TransportNodesListGatewayMetaState.class).asEagerSingleton(); //bind(GatewayMetaState.class).asEagerSingleton(); //bind(TransportNodesListGatewayStartedShards.class).asEagerSingleton(); //bind(LocalAllocateDangledIndices.class).asEagerSingleton(); } }
@SuppressWarnings({"unchecked"}) @Override protected void configure() { bind(HttpServer.class).asEagerSingleton(); if (JmxService.shouldExport(settings)) { bind(HttpServerManagement.class).asEagerSingleton(); } } }
@Override protected void configure() { bind(RepositoriesService.class).asEagerSingleton(); bind(SnapshotsService.class).asEagerSingleton(); bind(SnapshotShardsService.class).asEagerSingleton(); bind(TransportNodesSnapshotsStatus.class).asEagerSingleton(); bind(RestoreService.class).asEagerSingleton(); MapBinder<String, Repository.Factory> typesBinder = MapBinder.newMapBinder(binder(), String.class, Repository.Factory.class); repositoryTypes.forEach((k, v) -> typesBinder.addBinding(k).toInstance(v)); } }
@Override protected void configure() { bind(HttpServerTransport.class).to(JettyHttpServerTransport.class).asEagerSingleton(); bind(ESLoggerWrapper.class).asEagerSingleton(); } }
@Override protected void configure() { final Multibinder<EngineFilter> engineFilterMultibinder = Multibinder .newSetBinder(binder(), EngineFilter.class); for (final Class<? extends EngineFilter> engineFilter : engineFilters) { engineFilterMultibinder.addBinding().to(engineFilter); } bind(EngineFilters.class).asEagerSingleton(); }
@Override protected void configure() { bind(Node.class).toInstance(node); bind(MonitorService.class).toInstance(monitorService); bind(DiskThresholdMonitor.class).asEagerSingleton(); } }