Package org.opensearch.cluster.routing
Class WeightedRoutingService
java.lang.Object
org.opensearch.cluster.routing.WeightedRoutingService
* Service responsible for updating cluster state metadata with weighted routing weights
-
Constructor Summary
ConstructorDescriptionWeightedRoutingService
(ClusterService clusterService, ThreadPool threadPool, Settings settings, ClusterSettings clusterSettings) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteWeightedRoutingMetadata
(ClusterDeleteWeightedRoutingRequest request, org.opensearch.core.action.ActionListener<ClusterDeleteWeightedRoutingResponse> listener) void
registerWeightedRoutingMetadata
(ClusterPutWeightedRoutingRequest request, org.opensearch.core.action.ActionListener<ClusterStateUpdateResponse> listener) void
verifyAwarenessAttribute
(String attributeName)
-
Constructor Details
-
WeightedRoutingService
@Inject public WeightedRoutingService(ClusterService clusterService, ThreadPool threadPool, Settings settings, ClusterSettings clusterSettings)
-
-
Method Details
-
registerWeightedRoutingMetadata
public void registerWeightedRoutingMetadata(ClusterPutWeightedRoutingRequest request, org.opensearch.core.action.ActionListener<ClusterStateUpdateResponse> listener) -
deleteWeightedRoutingMetadata
public void deleteWeightedRoutingMetadata(ClusterDeleteWeightedRoutingRequest request, org.opensearch.core.action.ActionListener<ClusterDeleteWeightedRoutingResponse> listener) -
verifyAwarenessAttribute
-