Package org.opensearch.index.reindex.spi
Interface RemoteReindexExtension
-
public interface RemoteReindexExtensionThis interface provides an extension point forReindexPlugin. This interface can be implemented to provide a custom Rest interceptor andActionListenerThe Rest interceptor can be used to pre-process any reindex request and perform any action on the response. The ActionListener listens to the success and failure events on every reindex request and can be used to take any actions based on the success or failure.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReindexRestInterceptorProvidergetInterceptorProvider()Get an InterceptorProvider.ActionListener<BulkByScrollResponse>getRemoteReindexActionListener(ActionListener<BulkByScrollResponse> listener, ReindexRequest reindexRequest)Get a wrapper of ActionListener which is can used to perform any action based on the success/failure of the remote reindex call.
-
-
-
Method Detail
-
getInterceptorProvider
ReindexRestInterceptorProvider getInterceptorProvider()
Get an InterceptorProvider.- Returns:
- ReindexRestInterceptorProvider implementation.
-
getRemoteReindexActionListener
ActionListener<BulkByScrollResponse> getRemoteReindexActionListener(ActionListener<BulkByScrollResponse> listener, ReindexRequest reindexRequest)
Get a wrapper of ActionListener which is can used to perform any action based on the success/failure of the remote reindex call.- Returns:
- ActionListener wrapper implementation.
-
-