Class LazilyInitializedRerouteService
- java.lang.Object
-
- org.elasticsearch.cluster.routing.LazilyInitializedRerouteService
-
- All Implemented Interfaces:
RerouteService
public class LazilyInitializedRerouteService extends java.lang.Object implements RerouteService
ARerouteServicethat 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 voidreroute(java.lang.String reason, ActionListener<java.lang.Void> listener)voidsetRerouteService(RerouteService rerouteService)
-
-
-
Method Detail
-
reroute
public void reroute(java.lang.String reason, ActionListener<java.lang.Void> listener)- Specified by:
reroutein interfaceRerouteService
-
setRerouteService
public void setRerouteService(RerouteService rerouteService)
-
-