当前位置: 首页>>代码示例>>Java>>正文


Java MetaDataIndexAliasesService类代码示例

本文整理汇总了Java中org.elasticsearch.cluster.metadata.MetaDataIndexAliasesService的典型用法代码示例。如果您正苦于以下问题:Java MetaDataIndexAliasesService类的具体用法?Java MetaDataIndexAliasesService怎么用?Java MetaDataIndexAliasesService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MetaDataIndexAliasesService类属于org.elasticsearch.cluster.metadata包,在下文中一共展示了MetaDataIndexAliasesService类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: configure

import org.elasticsearch.cluster.metadata.MetaDataIndexAliasesService; //导入依赖的package包/类
@Override
protected void configure() {
    bind(GatewayAllocator.class).asEagerSingleton();
    bind(AllocationService.class).asEagerSingleton();
    bind(ClusterService.class).toInstance(clusterService);
    bind(NodeConnectionsService.class).asEagerSingleton();
    bind(MetaDataCreateIndexService.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(new AllocationDeciders(settings, allocationDeciders));
    bind(ShardsAllocator.class).toInstance(shardsAllocator);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:24,代码来源:ClusterModule.java

示例2: TransportIndicesAliasesAction

import org.elasticsearch.cluster.metadata.MetaDataIndexAliasesService; //导入依赖的package包/类
@Inject
public TransportIndicesAliasesAction(Settings settings, TransportService transportService, ClusterService clusterService,
                                     ThreadPool threadPool, MetaDataIndexAliasesService indexAliasesService,
                                     ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) {
    super(settings, IndicesAliasesAction.NAME, transportService, clusterService, threadPool, actionFilters, indexNameExpressionResolver, IndicesAliasesRequest::new);
    this.indexAliasesService = indexAliasesService;
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:TransportIndicesAliasesAction.java

示例3: TransportRolloverAction

import org.elasticsearch.cluster.metadata.MetaDataIndexAliasesService; //导入依赖的package包/类
@Inject
public TransportRolloverAction(Settings settings, TransportService transportService, ClusterService clusterService,
                               ThreadPool threadPool, MetaDataCreateIndexService createIndexService,
                               ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver,
                               MetaDataIndexAliasesService indexAliasesService, Client client) {
    super(settings, RolloverAction.NAME, transportService, clusterService, threadPool, actionFilters, indexNameExpressionResolver,
        RolloverRequest::new);
    this.createIndexService = createIndexService;
    this.indexAliasesService = indexAliasesService;
    this.client = client;
    this.activeShardsObserver = new ActiveShardsObserver(settings, clusterService, threadPool);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:13,代码来源:TransportRolloverAction.java

示例4: configure

import org.elasticsearch.cluster.metadata.MetaDataIndexAliasesService; //导入依赖的package包/类
@Override
protected void configure() {
    bind(DynamicSettings.class).annotatedWith(ClusterDynamicSettings.class).toInstance(clusterDynamicSettings.build());
    bind(DynamicSettings.class).annotatedWith(IndexDynamicSettings.class).toInstance(indexDynamicSettings.build());

    // bind ShardsAllocator
    String shardsAllocatorType = shardsAllocators.bindType(binder(), settings, ClusterModule.SHARDS_ALLOCATOR_TYPE_KEY, ClusterModule.BALANCED_ALLOCATOR);
    if (shardsAllocatorType.equals(ClusterModule.EVEN_SHARD_COUNT_ALLOCATOR)) {
        final ESLogger logger = Loggers.getLogger(getClass(), settings);
        logger.warn("{} allocator has been removed in 2.0 using {} instead", ClusterModule.EVEN_SHARD_COUNT_ALLOCATOR, ClusterModule.BALANCED_ALLOCATOR);
    }
    allocationDeciders.bind(binder());
    indexTemplateFilters.bind(binder());

    bind(ClusterInfoService.class).to(clusterInfoServiceImpl).asEagerSingleton();
    bind(GatewayAllocator.class).asEagerSingleton();
    bind(AllocationService.class).asEagerSingleton();
    bind(DiscoveryNodeService.class).asEagerSingleton();
    bind(ClusterService.class).to(InternalClusterService.class).asEagerSingleton();
    bind(OperationRouting.class).asEagerSingleton();
    bind(MetaDataCreateIndexService.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).asEagerSingleton();
    bind(RoutingService.class).asEagerSingleton();
    bind(ShardStateAction.class).asEagerSingleton();
    bind(NodeIndexDeletedAction.class).asEagerSingleton();
    bind(NodeMappingRefreshAction.class).asEagerSingleton();
    bind(MappingUpdatedAction.class).asEagerSingleton();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:35,代码来源:ClusterModule.java

示例5: TransportIndicesAliasesAction

import org.elasticsearch.cluster.metadata.MetaDataIndexAliasesService; //导入依赖的package包/类
@Inject
public TransportIndicesAliasesAction(Settings settings, TransportService transportService, ClusterService clusterService,
                                     ThreadPool threadPool, MetaDataIndexAliasesService indexAliasesService,
                                     ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) {
    super(settings, IndicesAliasesAction.NAME, transportService, clusterService, threadPool, actionFilters, indexNameExpressionResolver, IndicesAliasesRequest.class);
    this.indexAliasesService = indexAliasesService;
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:8,代码来源:TransportIndicesAliasesAction.java


注:本文中的org.elasticsearch.cluster.metadata.MetaDataIndexAliasesService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。