Class SimplePlacementContextImpl
java.lang.Object
org.apache.solr.cluster.placement.impl.SimplePlacementContextImpl
- All Implemented Interfaces:
PlacementContext
Implementation of
PlacementContext that uses SimpleClusterAbstractionsImpl to
create components necessary for the placement plugins to use.-
Constructor Summary
ConstructorsConstructorDescriptionSimplePlacementContextImpl(org.apache.solr.client.solrj.cloud.SolrCloudManager solrCloudManager) -
Method Summary
Modifier and TypeMethodDescriptionFactory used by the plugin to fetch additional attributes from the cluster nodes, such as count of cores, system properties etc..Factory used to create instances ofBalancePlanto return computed decision.Initial state of the cluster.Factory used to create instances ofPlacementPlanto return computed decision.
-
Constructor Details
-
SimplePlacementContextImpl
public SimplePlacementContextImpl(org.apache.solr.client.solrj.cloud.SolrCloudManager solrCloudManager) throws IOException - Throws:
IOException
-
-
Method Details
-
getCluster
Description copied from interface:PlacementContextInitial state of the cluster. Note there areSet's andMap's accessible from theClusterand other reachable instances. These collection will not change while the plugin is executing and will be thrown away once the plugin is done. The plugin code can therefore modify them if needed.- Specified by:
getClusterin interfacePlacementContext
-
getAttributeFetcher
Description copied from interface:PlacementContextFactory used by the plugin to fetch additional attributes from the cluster nodes, such as count of cores, system properties etc..- Specified by:
getAttributeFetcherin interfacePlacementContext
-
getPlacementPlanFactory
Description copied from interface:PlacementContextFactory used to create instances ofPlacementPlanto return computed decision.- Specified by:
getPlacementPlanFactoryin interfacePlacementContext
-
getBalancePlanFactory
Description copied from interface:PlacementContextFactory used to create instances ofBalancePlanto return computed decision.- Specified by:
getBalancePlanFactoryin interfacePlacementContext
-