|
198 | 198 | import org.opensearch.action.admin.indices.shrink.TransportResizeAction;
|
199 | 199 | import org.opensearch.action.admin.indices.stats.IndicesStatsAction;
|
200 | 200 | import org.opensearch.action.admin.indices.stats.TransportIndicesStatsAction;
|
| 201 | +import org.opensearch.action.admin.indices.streamingingestion.pause.PauseIngestionAction; |
| 202 | +import org.opensearch.action.admin.indices.streamingingestion.pause.TransportPauseIngestionAction; |
| 203 | +import org.opensearch.action.admin.indices.streamingingestion.resume.ResumeIngestionAction; |
| 204 | +import org.opensearch.action.admin.indices.streamingingestion.resume.TransportResumeIngestionAction; |
| 205 | +import org.opensearch.action.admin.indices.streamingingestion.state.GetIngestionStateAction; |
| 206 | +import org.opensearch.action.admin.indices.streamingingestion.state.TransportGetIngestionStateAction; |
201 | 207 | import org.opensearch.action.admin.indices.template.delete.DeleteComponentTemplateAction;
|
202 | 208 | import org.opensearch.action.admin.indices.template.delete.DeleteComposableIndexTemplateAction;
|
203 | 209 | import org.opensearch.action.admin.indices.template.delete.DeleteIndexTemplateAction;
|
|
401 | 407 | import org.opensearch.rest.action.admin.indices.RestGetFieldMappingAction;
|
402 | 408 | import org.opensearch.rest.action.admin.indices.RestGetIndexTemplateAction;
|
403 | 409 | import org.opensearch.rest.action.admin.indices.RestGetIndicesAction;
|
| 410 | +import org.opensearch.rest.action.admin.indices.RestGetIngestionStateAction; |
404 | 411 | import org.opensearch.rest.action.admin.indices.RestGetMappingAction;
|
405 | 412 | import org.opensearch.rest.action.admin.indices.RestGetSettingsAction;
|
406 | 413 | import org.opensearch.rest.action.admin.indices.RestIndexDeleteAliasesAction;
|
|
410 | 417 | import org.opensearch.rest.action.admin.indices.RestIndicesShardStoresAction;
|
411 | 418 | import org.opensearch.rest.action.admin.indices.RestIndicesStatsAction;
|
412 | 419 | import org.opensearch.rest.action.admin.indices.RestOpenIndexAction;
|
| 420 | +import org.opensearch.rest.action.admin.indices.RestPauseIngestionAction; |
413 | 421 | import org.opensearch.rest.action.admin.indices.RestPutComponentTemplateAction;
|
414 | 422 | import org.opensearch.rest.action.admin.indices.RestPutComposableIndexTemplateAction;
|
415 | 423 | import org.opensearch.rest.action.admin.indices.RestPutIndexTemplateAction;
|
|
418 | 426 | import org.opensearch.rest.action.admin.indices.RestRefreshAction;
|
419 | 427 | import org.opensearch.rest.action.admin.indices.RestResizeHandler;
|
420 | 428 | import org.opensearch.rest.action.admin.indices.RestResolveIndexAction;
|
| 429 | +import org.opensearch.rest.action.admin.indices.RestResumeIngestionAction; |
421 | 430 | import org.opensearch.rest.action.admin.indices.RestRolloverIndexAction;
|
422 | 431 | import org.opensearch.rest.action.admin.indices.RestSimulateIndexTemplateAction;
|
423 | 432 | import org.opensearch.rest.action.admin.indices.RestSimulateTemplateAction;
|
@@ -806,6 +815,11 @@ public <Request extends ActionRequest, Response extends ActionResponse> void reg
|
806 | 815 | actions.register(GetSearchPipelineAction.INSTANCE, GetSearchPipelineTransportAction.class);
|
807 | 816 | actions.register(DeleteSearchPipelineAction.INSTANCE, DeleteSearchPipelineTransportAction.class);
|
808 | 817 |
|
| 818 | + // Pull-based ingestion actions |
| 819 | + actions.register(PauseIngestionAction.INSTANCE, TransportPauseIngestionAction.class); |
| 820 | + actions.register(ResumeIngestionAction.INSTANCE, TransportResumeIngestionAction.class); |
| 821 | + actions.register(GetIngestionStateAction.INSTANCE, TransportGetIngestionStateAction.class); |
| 822 | + |
809 | 823 | return unmodifiableMap(actions.getRegistry());
|
810 | 824 | }
|
811 | 825 |
|
@@ -1041,6 +1055,11 @@ public void initRestHandlers(Supplier<DiscoveryNodes> nodesInCluster) {
|
1041 | 1055 | registerHandler.accept(new RestGetDecommissionStateAction());
|
1042 | 1056 | registerHandler.accept(new RestRemoteStoreStatsAction());
|
1043 | 1057 | registerHandler.accept(new RestRestoreRemoteStoreAction());
|
| 1058 | + |
| 1059 | + // pull-based ingestion API |
| 1060 | + registerHandler.accept(new RestPauseIngestionAction()); |
| 1061 | + registerHandler.accept(new RestResumeIngestionAction()); |
| 1062 | + registerHandler.accept(new RestGetIngestionStateAction()); |
1044 | 1063 | }
|
1045 | 1064 |
|
1046 | 1065 | @Override
|
|
0 commit comments