當前位置: 首頁>>代碼示例>>Java>>正文


Java IndexNameExpressionResolver類代碼示例

本文整理匯總了Java中org.elasticsearch.cluster.metadata.IndexNameExpressionResolver的典型用法代碼示例。如果您正苦於以下問題:Java IndexNameExpressionResolver類的具體用法?Java IndexNameExpressionResolver怎麽用?Java IndexNameExpressionResolver使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


IndexNameExpressionResolver類屬於org.elasticsearch.cluster.metadata包,在下文中一共展示了IndexNameExpressionResolver類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: TestTransportBulkAction

import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; //導入依賴的package包/類
TestTransportBulkAction(
        Settings settings,
        ThreadPool threadPool,
        TransportService transportService,
        ClusterService clusterService,
        TransportShardBulkAction shardBulkAction,
        TransportCreateIndexAction createIndexAction,
        ActionFilters actionFilters,
        IndexNameExpressionResolver indexNameExpressionResolver,
        AutoCreateIndex autoCreateIndex,
        LongSupplier relativeTimeProvider) {
    super(
            settings,
            threadPool,
            transportService,
            clusterService,
            null,
            shardBulkAction,
            createIndexAction,
            actionFilters,
            indexNameExpressionResolver,
            autoCreateIndex,
            relativeTimeProvider);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:25,代碼來源:TransportBulkActionTookTests.java

示例2: UpdateProjector

import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; //導入依賴的package包/類
public UpdateProjector(ClusterService clusterService,
                       IndexNameExpressionResolver indexNameExpressionResolver,
                       Settings settings,
                       ShardId shardId,
                       TransportActionProvider transportActionProvider,
                       BulkRetryCoordinatorPool bulkRetryCoordinatorPool,
                       CollectExpression<Row, ?> collectUidExpression,
                       String[] assignmentsColumns,
                       Symbol[] assignments,
                       @Nullable Long requiredVersion,
                       UUID jobId) {
    super(clusterService, settings, shardId, transportActionProvider, bulkRetryCoordinatorPool,
            collectUidExpression, jobId);
    this.indexNameExpressionResolver = indexNameExpressionResolver;
    this.assignmentsColumns = assignmentsColumns;
    this.assignments = assignments;
    this.requiredVersion = requiredVersion;
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:19,代碼來源:UpdateProjector.java

示例3: testUpdate

import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; //導入依賴的package包/類
public void testUpdate() {
    boolean value = randomBoolean();
    Settings settings;
    if (value && randomBoolean()) {
        settings = Settings.EMPTY;
    } else {
        settings = Settings.builder().put(AutoCreateIndex.AUTO_CREATE_INDEX_SETTING.getKey(), value).build();
    }

    ClusterSettings clusterSettings = new ClusterSettings(settings,
            ClusterSettings.BUILT_IN_CLUSTER_SETTINGS);
    AutoCreateIndex  autoCreateIndex = new AutoCreateIndex(settings, clusterSettings, new IndexNameExpressionResolver(settings));
    assertThat(autoCreateIndex.getAutoCreate().isAutoCreateIndex(), equalTo(value));

    Settings newSettings = Settings.builder().put(AutoCreateIndex.AUTO_CREATE_INDEX_SETTING.getKey(), !value).build();
    clusterSettings.applySettings(newSettings);
    assertThat(autoCreateIndex.getAutoCreate().isAutoCreateIndex(), equalTo(!value));

    newSettings = Settings.builder().put(AutoCreateIndex.AUTO_CREATE_INDEX_SETTING.getKey(), "logs-*").build();
    clusterSettings.applySettings(newSettings);
    assertThat(autoCreateIndex.getAutoCreate().isAutoCreateIndex(), equalTo(true));
    assertThat(autoCreateIndex.getAutoCreate().getExpressions().size(), equalTo(1));
    assertThat(autoCreateIndex.getAutoCreate().getExpressions().get(0).v1(), equalTo("logs-*"));
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:25,代碼來源:AutoCreateIndexTests.java

示例4: TransportNodesAction

import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; //導入依賴的package包/類
protected TransportNodesAction(Settings settings, String actionName, ThreadPool threadPool,
                               ClusterService clusterService, TransportService transportService, ActionFilters actionFilters,
                               IndexNameExpressionResolver indexNameExpressionResolver,
                               Supplier<NodesRequest> request, Supplier<NodeRequest> nodeRequest,
                               String nodeExecutor,
                               Class<NodeResponse> nodeResponseClass) {
    super(settings, actionName, threadPool, transportService, actionFilters, indexNameExpressionResolver, request);
    this.clusterService = Objects.requireNonNull(clusterService);
    this.transportService = Objects.requireNonNull(transportService);
    this.nodeResponseClass = Objects.requireNonNull(nodeResponseClass);

    this.transportNodeAction = actionName + "[n]";

    transportService.registerRequestHandler(
        transportNodeAction, nodeRequest, nodeExecutor, new NodeTransportHandler());
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:17,代碼來源:TransportNodesAction.java

示例5: TransportCancelTasksAction

import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; //導入依賴的package包/類
@Inject
public TransportCancelTasksAction(Settings settings, ClusterName clusterName, ThreadPool threadPool, ClusterService clusterService,
                                  TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver
                                      indexNameExpressionResolver) {
    super(settings, CancelTasksAction.NAME, clusterName, threadPool, clusterService, transportService, actionFilters,
        indexNameExpressionResolver, new Callable<CancelTasksRequest>() {
            @Override
            public CancelTasksRequest call() throws Exception {
                return new CancelTasksRequest();
            }
        }, ThreadPool.Names.MANAGEMENT);
    transportService.registerRequestHandler(BAN_PARENT_ACTION_NAME, new Callable<BanParentTaskRequest>() {
        @Override
        public BanParentTaskRequest call() throws Exception {
            return new BanParentTaskRequest();
        }
    }, ThreadPool.Names.SAME, new
        BanParentRequestHandler());
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:20,代碼來源:TransportCancelTasksAction.java

示例6: TransportBroadcastByNodeAction

import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; //導入依賴的package包/類
public TransportBroadcastByNodeAction(
        Settings settings,
        String actionName,
        ThreadPool threadPool,
        ClusterService clusterService,
        TransportService transportService,
        ActionFilters actionFilters,
        IndexNameExpressionResolver indexNameExpressionResolver,
        Supplier<Request> request,
        String executor,
        boolean canTripCircuitBreaker) {
    super(settings, actionName, canTripCircuitBreaker, threadPool, transportService, actionFilters, indexNameExpressionResolver,
        request);

    this.clusterService = clusterService;
    this.transportService = transportService;

    transportNodeBroadcastAction = actionName + "[n]";

    transportService.registerRequestHandler(transportNodeBroadcastAction, NodeRequest::new, executor, false, canTripCircuitBreaker,
        new BroadcastByNodeTransportRequestHandler());
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:23,代碼來源:TransportBroadcastByNodeAction.java

示例7: TransportTasksAction

import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; //導入依賴的package包/類
protected TransportTasksAction(Settings settings, String actionName, ClusterName clusterName, ThreadPool threadPool,
                               ClusterService clusterService, TransportService transportService, ActionFilters actionFilters,
                               IndexNameExpressionResolver indexNameExpressionResolver, Callable<TasksRequest> requestFactory,
                               String nodeExecutor) {
    super(settings, actionName, threadPool, transportService, actionFilters, indexNameExpressionResolver, requestFactory);
    this.clusterName = clusterName;
    this.clusterService = clusterService;
    this.transportService = transportService;
    this.transportNodeAction = actionName + "[n]";
    this.requestFactory = requestFactory;

    transportService.registerRequestHandler(transportNodeAction, new Callable<NodeTaskRequest>() {
        @Override
        public NodeTaskRequest call() throws Exception {
            return new NodeTaskRequest();
        }
    }, nodeExecutor, new NodeTransportHandler());
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:19,代碼來源:TransportTasksAction.java

示例8: TransportMultiTermVectorsAction

import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; //導入依賴的package包/類
@Inject
public TransportMultiTermVectorsAction(Settings settings, ThreadPool threadPool, TransportService transportService,
                                       ClusterService clusterService, TransportShardMultiTermsVectorAction shardAction,
                                       ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) {
    super(settings, MultiTermVectorsAction.NAME, threadPool, transportService, actionFilters, indexNameExpressionResolver, MultiTermVectorsRequest.class);
    this.clusterService = clusterService;
    this.shardAction = shardAction;
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:9,代碼來源:TransportMultiTermVectorsAction.java

示例9: TransportMultiSearchTemplateAction

import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; //導入依賴的package包/類
@Inject
public TransportMultiSearchTemplateAction(Settings settings, ThreadPool threadPool, TransportService transportService,
                                          ActionFilters actionFilters, IndexNameExpressionResolver resolver,
                                          TransportSearchTemplateAction searchTemplateAction) {
    super(settings, MultiSearchTemplateAction.NAME, threadPool, transportService, actionFilters, resolver,
            MultiSearchTemplateRequest::new);
    this.searchTemplateAction = searchTemplateAction;
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:9,代碼來源:TransportMultiSearchTemplateAction.java

示例10: TransportUpdateByQueryAction

import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; //導入依賴的package包/類
@Inject
public TransportUpdateByQueryAction(Settings settings, ThreadPool threadPool, ActionFilters actionFilters,
        IndexNameExpressionResolver indexNameExpressionResolver, Client client, TransportService transportService,
        ScriptService scriptService, ClusterService clusterService) {
    super(settings, UpdateByQueryAction.NAME, threadPool, transportService, actionFilters,
            indexNameExpressionResolver, UpdateByQueryRequest::new);
    this.client = client;
    this.scriptService = scriptService;
    this.clusterService = clusterService;
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:11,代碼來源:TransportUpdateByQueryAction.java

示例11: TransportRethrottleAction

import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; //導入依賴的package包/類
@Inject
public TransportRethrottleAction(Settings settings, ThreadPool threadPool, ClusterService clusterService,
        TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver,
        Client client) {
    super(settings, RethrottleAction.NAME, threadPool, clusterService, transportService, actionFilters, indexNameExpressionResolver,
            RethrottleRequest::new, ListTasksResponse::new, ThreadPool.Names.MANAGEMENT);
    this.client = client;
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:9,代碼來源:TransportRethrottleAction.java

示例12: TransportReindexAction

import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; //導入依賴的package包/類
@Inject
public TransportReindexAction(Settings settings, ThreadPool threadPool, ActionFilters actionFilters,
        IndexNameExpressionResolver indexNameExpressionResolver, ClusterService clusterService, ScriptService scriptService,
        AutoCreateIndex autoCreateIndex, Client client, TransportService transportService) {
    super(settings, ReindexAction.NAME, threadPool, transportService, actionFilters, indexNameExpressionResolver,
            ReindexRequest::new);
    this.clusterService = clusterService;
    this.scriptService = scriptService;
    this.autoCreateIndex = autoCreateIndex;
    this.client = client;
    remoteWhitelist = buildRemoteWhitelist(REMOTE_CLUSTER_WHITELIST.get(settings));
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:13,代碼來源:TransportReindexAction.java

示例13: TransportClusterUpdateSettingsAction

import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; //導入依賴的package包/類
@Inject
public TransportClusterUpdateSettingsAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool,
                                            AllocationService allocationService, @ClusterDynamicSettings DynamicSettings dynamicSettings,
                                            ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) {
    super(settings, ClusterUpdateSettingsAction.NAME, transportService, clusterService, threadPool, actionFilters, indexNameExpressionResolver, ClusterUpdateSettingsRequest.class);
    this.allocationService = allocationService;
    this.dynamicSettings = dynamicSettings;
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:9,代碼來源:TransportClusterUpdateSettingsAction.java

示例14: TransportGetSnapshotsAction

import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; //導入依賴的package包/類
@Inject
public TransportGetSnapshotsAction(Settings settings, TransportService transportService, ClusterService clusterService,
                                   ThreadPool threadPool, SnapshotsService snapshotsService, ActionFilters actionFilters,
                                   IndexNameExpressionResolver indexNameExpressionResolver) {
    super(settings, GetSnapshotsAction.NAME, transportService, clusterService, threadPool, actionFilters, indexNameExpressionResolver, GetSnapshotsRequest.class);
    this.snapshotsService = snapshotsService;
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:8,代碼來源:TransportGetSnapshotsAction.java

示例15: TransportBulkAction

import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; //導入依賴的package包/類
@Inject
public TransportBulkAction(Settings settings, ThreadPool threadPool, TransportService transportService, ClusterService clusterService,
                           TransportShardBulkAction shardBulkAction, TransportCreateIndexAction createIndexAction,
                           ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver,
                           AutoCreateIndex autoCreateIndex) {
    super(settings, BulkAction.NAME, threadPool, transportService, actionFilters, indexNameExpressionResolver, BulkRequest.class);
    this.clusterService = clusterService;
    this.shardBulkAction = shardBulkAction;
    this.createIndexAction = createIndexAction;

    this.autoCreateIndex = autoCreateIndex;
    this.allowIdGeneration = this.settings.getAsBoolean("action.bulk.action.allow_id_generation", true);
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:14,代碼來源:TransportBulkAction.java


注:本文中的org.elasticsearch.cluster.metadata.IndexNameExpressionResolver類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。