|
23 | 23 | import org.elasticsearch.action.support.ActionFilters; |
24 | 24 | import org.elasticsearch.action.support.single.shard.TransportSingleShardAction; |
25 | 25 | import org.elasticsearch.cluster.ClusterState; |
| 26 | +import org.elasticsearch.cluster.ProjectState; |
26 | 27 | import org.elasticsearch.cluster.block.ClusterBlockException; |
27 | 28 | import org.elasticsearch.cluster.block.ClusterBlockLevel; |
28 | 29 | import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; |
29 | 30 | import org.elasticsearch.cluster.node.DiscoveryNode; |
30 | 31 | import org.elasticsearch.cluster.node.DiscoveryNodes; |
| 32 | +import org.elasticsearch.cluster.project.ProjectResolver; |
31 | 33 | import org.elasticsearch.cluster.routing.ShardsIterator; |
32 | 34 | import org.elasticsearch.cluster.service.ClusterService; |
33 | 35 | import org.elasticsearch.common.io.stream.StreamInput; |
@@ -66,9 +68,10 @@ public class TransportAnsjAction extends TransportSingleShardAction<AnsjRequest, |
66 | 68 | @Inject |
67 | 69 | public TransportAnsjAction(ThreadPool threadPool, ClusterService clusterService, |
68 | 70 | TransportService transportService, ActionFilters actionFilters, |
| 71 | + ProjectResolver projectResolver, |
69 | 72 | IndexNameExpressionResolver indexNameExpressionResolver, |
70 | 73 | AnsjElasticConfigurator cfg) { |
71 | | - super(AnsjAction.NAME, threadPool, clusterService, transportService, actionFilters, indexNameExpressionResolver, AnsjRequest::new, threadPool.executor(ThreadPool.Names.GENERIC)); |
| 74 | + super(AnsjAction.NAME, threadPool, clusterService, transportService, actionFilters, projectResolver, indexNameExpressionResolver, AnsjRequest::new, threadPool.executor(ThreadPool.Names.GENERIC)); |
72 | 75 |
|
73 | 76 | this.cfg = cfg; |
74 | 77 | } |
@@ -400,13 +403,13 @@ protected boolean resolveIndex(AnsjRequest request) { |
400 | 403 | } |
401 | 404 |
|
402 | 405 | @Override |
403 | | - protected ShardsIterator shards(ClusterState clusterState, InternalRequest internalRequest) { |
| 406 | + protected ShardsIterator shards(ProjectState state, InternalRequest request) { |
404 | 407 | //just execute local |
405 | 408 | return null; |
406 | 409 | } |
407 | 410 |
|
408 | 411 | @Override |
409 | | - protected ClusterBlockException checkRequestBlock(ClusterState state, InternalRequest request) { |
| 412 | + protected ClusterBlockException checkRequestBlock(ProjectState state, InternalRequest request) { |
410 | 413 | return null; |
411 | 414 | } |
412 | 415 | } |
0 commit comments