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


Java ActionFilters類代碼示例

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


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

示例1: TransportReplicationAction

import org.elasticsearch.action.support.ActionFilters; //導入依賴的package包/類
protected TransportReplicationAction(Settings settings, String actionName, TransportService transportService,
                                     ClusterService clusterService, IndicesService indicesService,
                                     ThreadPool threadPool, ShardStateAction shardStateAction,
                                     MappingUpdatedAction mappingUpdatedAction, ActionFilters actionFilters,
                                     IndexNameExpressionResolver indexNameExpressionResolver, Class<Request> request,
                                     Class<ReplicaRequest> replicaRequest, String executor) {
    super(settings, actionName, threadPool, actionFilters, indexNameExpressionResolver, transportService.getTaskManager());
    this.transportService = transportService;
    this.clusterService = clusterService;
    this.indicesService = indicesService;
    this.shardStateAction = shardStateAction;
    this.mappingUpdatedAction = mappingUpdatedAction;

    this.transportPrimaryAction = actionName + "[p]";
    this.transportReplicaAction = actionName + "[r]";
    this.executor = executor;
    this.checkWriteConsistency = checkWriteConsistency();
    transportService.registerRequestHandler(actionName, request, ThreadPool.Names.SAME, new OperationTransportHandler());
    transportService.registerRequestHandler(transportPrimaryAction, request, executor, new PrimaryOperationTransportHandler());
    // we must never reject on because of thread pool capacity on replicas
    transportService.registerRequestHandler(transportReplicaAction, replicaRequest, executor, true, new ReplicaOperationTransportHandler());

    this.transportOptions = transportOptions();

    this.defaultWriteConsistencyLevel = WriteConsistencyLevel.fromString(settings.get("action.write_consistency", "quorum"));
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:27,代碼來源:TransportReplicationAction.java

示例2: TransportShardUpsertAction

import org.elasticsearch.action.support.ActionFilters; //導入依賴的package包/類
@Inject
public TransportShardUpsertAction(Settings settings,
                                  ThreadPool threadPool,
                                  ClusterService clusterService,
                                  TransportService transportService,
                                  ActionFilters actionFilters,
                                  JobContextService jobContextService,
                                  IndicesService indicesService,
                                  ShardStateAction shardStateAction,
                                  Functions functions,
                                  Schemas schemas,
                                  MappingUpdatedAction mappingUpdatedAction,
                                  IndexNameExpressionResolver indexNameExpressionResolver) {
    super(settings, ACTION_NAME, transportService, mappingUpdatedAction, indexNameExpressionResolver, clusterService,
            indicesService, threadPool, shardStateAction, actionFilters, ShardUpsertRequest.class);
    this.indicesService = indicesService;
    this.functions = functions;
    this.schemas = schemas;
    jobContextService.addListener(this);
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:21,代碼來源:TransportShardUpsertAction.java

示例3: TransportSQLAction

import org.elasticsearch.action.support.ActionFilters; //導入依賴的package包/類
@Inject
public TransportSQLAction(
        ClusterService clusterService,
        Settings settings,
        ThreadPool threadPool,
        Analyzer analyzer,
        Planner planner,
        Provider<Executor> executor,
        TransportService transportService,
        StatsTables statsTables,
        ActionFilters actionFilters,
        IndexNameExpressionResolver indexNameExpressionResolver,
        TransportKillJobsNodeAction transportKillJobsNodeAction) {
    super(clusterService, settings, SQLAction.NAME, threadPool,
        analyzer, planner, executor, statsTables, actionFilters,
        indexNameExpressionResolver, transportKillJobsNodeAction,
        transportService.getTaskManager());
    transportService.registerRequestHandler(SQLAction.NAME, SQLRequest.class, ThreadPool.Names.SAME, new TransportHandler());
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:20,代碼來源:TransportSQLAction.java

示例4: TransportCancelTasksAction

import org.elasticsearch.action.support.ActionFilters; //導入依賴的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

示例5: setUp

import org.elasticsearch.action.support.ActionFilters; //導入依賴的package包/類
@Override
@Before
public void setUp() throws Exception {
    super.setUp();
    transport = new CapturingTransport();
    clusterService = createClusterService(THREAD_POOL);
    transportService = new TransportService(clusterService.getSettings(), transport, THREAD_POOL,
            TransportService.NOOP_TRANSPORT_INTERCEPTOR, x -> clusterService.localNode(), null);
    transportService.start();
    transportService.acceptIncomingRequests();
    action = new TestTransportInstanceSingleOperationAction(
            Settings.EMPTY,
            "indices:admin/test",
            transportService,
            new ActionFilters(new HashSet<ActionFilter>()),
            new MyResolver(),
            Request::new
    );
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:20,代碼來源:TransportInstanceSingleOperationActionTests.java

示例6: TransportSQLBulkAction

import org.elasticsearch.action.support.ActionFilters; //導入依賴的package包/類
@Inject
public TransportSQLBulkAction(ClusterService clusterService,
                              Settings settings,
                              ThreadPool threadPool,
                              Analyzer analyzer,
                              Planner planner,
                              Provider<Executor> executor,
                              TransportService transportService,
                              StatsTables statsTables,
                              ActionFilters actionFilters,
                              IndexNameExpressionResolver indexNameExpressionResolver,
                              TransportKillJobsNodeAction transportKillJobsNodeAction) {
    super(clusterService, settings, SQLBulkAction.NAME, threadPool, analyzer,
        planner, executor, statsTables, actionFilters, indexNameExpressionResolver, transportKillJobsNodeAction,
        transportService.getTaskManager());

    transportService.registerRequestHandler(SQLBulkAction.NAME, SQLBulkRequest.class, ThreadPool.Names.SAME, new TransportHandler());
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:19,代碼來源:TransportSQLBulkAction.java

示例7: TransportNodesListShardStoreMetaData

import org.elasticsearch.action.support.ActionFilters; //導入依賴的package包/類
@Inject
public TransportNodesListShardStoreMetaData(Settings settings, ClusterName clusterName, ThreadPool threadPool, ClusterService clusterService, TransportService transportService,
                                            IndicesService indicesService, NodeEnvironment nodeEnv, ActionFilters actionFilters,
                                            IndexNameExpressionResolver indexNameExpressionResolver) {
    super(settings, ACTION_NAME, clusterName, threadPool, clusterService, transportService, actionFilters, indexNameExpressionResolver,
            Request.class, NodeRequest.class, ThreadPool.Names.FETCH_SHARD_STORE);
    this.indicesService = indicesService;
    this.nodeEnv = nodeEnv;
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:10,代碼來源:TransportNodesListShardStoreMetaData.java

示例8: TransportReindexAction

import org.elasticsearch.action.support.ActionFilters; //導入依賴的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

示例9: TransportDeleteByQueryAction

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

示例10: TransportNodesListShardStoreMetaData

import org.elasticsearch.action.support.ActionFilters; //導入依賴的package包/類
@Inject
public TransportNodesListShardStoreMetaData(Settings settings, ThreadPool threadPool,
                                            ClusterService clusterService, TransportService transportService,
                                            IndicesService indicesService, NodeEnvironment nodeEnv, ActionFilters actionFilters,
                                            IndexNameExpressionResolver indexNameExpressionResolver) {
    super(settings, ACTION_NAME, threadPool, clusterService, transportService, actionFilters, indexNameExpressionResolver,
        Request::new, NodeRequest::new, ThreadPool.Names.FETCH_SHARD_STORE, NodeStoreFilesMetaData.class);
    this.indicesService = indicesService;
    this.nodeEnv = nodeEnv;
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:11,代碼來源:TransportNodesListShardStoreMetaData.java

示例11: TransportBulkAction

import org.elasticsearch.action.support.ActionFilters; //導入依賴的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

示例12: TransportPercolateAction

import org.elasticsearch.action.support.ActionFilters; //導入依賴的package包/類
@Inject
public TransportPercolateAction(Settings settings, ThreadPool threadPool, ClusterService clusterService,
                                TransportService transportService, PercolatorService percolatorService,
                                TransportGetAction getAction, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) {
    super(settings, PercolateAction.NAME, threadPool, clusterService, transportService, actionFilters,
            indexNameExpressionResolver, PercolateRequest.class, PercolateShardRequest.class, ThreadPool.Names.PERCOLATE);
    this.percolatorService = percolatorService;
    this.getAction = getAction;
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:10,代碼來源:TransportPercolateAction.java

示例13: TransportTestTaskAction

import org.elasticsearch.action.support.ActionFilters; //導入依賴的package包/類
@Inject
public TransportTestTaskAction(Settings settings, ThreadPool threadPool,
                               ClusterService clusterService, TransportService transportService) {
    super(settings, TestTaskAction.NAME, threadPool, clusterService, transportService,
          new ActionFilters(new HashSet<>()), new IndexNameExpressionResolver(Settings.EMPTY),
          NodesRequest::new, NodeRequest::new, ThreadPool.Names.GENERIC, NodeResponse.class);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:8,代碼來源:TestTaskPlugin.java

示例14: setUp

import org.elasticsearch.action.support.ActionFilters; //導入依賴的package包/類
@Override
@Before
public void setUp() throws Exception {
    super.setUp();
    MockTcpTransport transport = new MockTcpTransport(Settings.EMPTY,
        threadPool, BigArrays.NON_RECYCLING_INSTANCE, circuitBreakerService, new NamedWriteableRegistry(Collections.emptyList()),
        new NetworkService(Settings.EMPTY, Collections.emptyList()));
    clusterService = createClusterService(threadPool);
    transportService = new TransportService(clusterService.getSettings(), transport, threadPool,
            TransportService.NOOP_TRANSPORT_INTERCEPTOR, x -> clusterService.localNode(), null);
    transportService.start();
    transportService.acceptIncomingRequests();
    broadcastReplicationAction = new TestBroadcastReplicationAction(Settings.EMPTY, threadPool, clusterService, transportService,
            new ActionFilters(new HashSet<>()), new IndexNameExpressionResolver(Settings.EMPTY), null);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:16,代碼來源:BroadcastReplicationTests.java

示例15: TransportUpgradeStatusAction

import org.elasticsearch.action.support.ActionFilters; //導入依賴的package包/類
@Inject
public TransportUpgradeStatusAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService,
                                    IndicesService indicesService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) {
    super(settings, UpgradeStatusAction.NAME, threadPool, clusterService, transportService, actionFilters, indexNameExpressionResolver,
            UpgradeStatusRequest.class, ThreadPool.Names.MANAGEMENT);
    this.indicesService = indicesService;
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:8,代碼來源:TransportUpgradeStatusAction.java


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