Package org.elasticsearch.action.ingest
Class IngestActionForwarder
- java.lang.Object
-
- org.elasticsearch.action.ingest.IngestActionForwarder
-
- All Implemented Interfaces:
ClusterStateApplier
public final class IngestActionForwarder extends java.lang.Object implements ClusterStateApplier
A utility for forwarding ingest requests to ingest nodes in a round-robin fashion. TODO: move this into IngestService and make index/bulk actions call that
-
-
Constructor Summary
Constructors Constructor Description IngestActionForwarder(TransportService transportService)
-
Method Summary
Modifier and Type Method Description void
applyClusterState(ClusterChangedEvent event)
Called when a new cluster state (ClusterChangedEvent.state()
needs to be appliedvoid
forwardIngestRequest(Action<?> action, ActionRequest request, ActionListener<?> listener)
-
-
-
Constructor Detail
-
IngestActionForwarder
public IngestActionForwarder(TransportService transportService)
-
-
Method Detail
-
forwardIngestRequest
public void forwardIngestRequest(Action<?> action, ActionRequest request, ActionListener<?> listener)
-
applyClusterState
public void applyClusterState(ClusterChangedEvent event)
Description copied from interface:ClusterStateApplier
Called when a new cluster state (ClusterChangedEvent.state()
needs to be applied- Specified by:
applyClusterState
in interfaceClusterStateApplier
-
-