Class LazilyInitializedRerouteService
- java.lang.Object
-
- org.elasticsearch.cluster.routing.LazilyInitializedRerouteService
-
- All Implemented Interfaces:
RerouteService
public class LazilyInitializedRerouteService extends java.lang.Object implements RerouteService
ARerouteService
that can be initialized lazily. The real reroute service,BatchedRerouteService
, depends on components constructed quite late in the construction of the node, but other components constructed earlier eventually need access to the reroute service too.
-
-
Constructor Summary
Constructors Constructor Description LazilyInitializedRerouteService()
-
Method Summary
Modifier and Type Method Description void
reroute(java.lang.String reason, ActionListener<java.lang.Void> listener)
void
setRerouteService(RerouteService rerouteService)
-
-
-
Method Detail
-
reroute
public void reroute(java.lang.String reason, ActionListener<java.lang.Void> listener)
- Specified by:
reroute
in interfaceRerouteService
-
setRerouteService
public void setRerouteService(RerouteService rerouteService)
-
-