Class SimplePlacementContextImpl
- java.lang.Object
-
- org.apache.solr.cluster.placement.impl.SimplePlacementContextImpl
-
- All Implemented Interfaces:
PlacementContext
public class SimplePlacementContextImpl extends Object implements PlacementContext
Implementation ofPlacementContextthat usesSimpleClusterAbstractionsImplto create components necessary for the placement plugins to use.
-
-
Constructor Summary
Constructors Constructor Description SimplePlacementContextImpl(org.apache.solr.client.solrj.cloud.SolrCloudManager solrCloudManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeFetchergetAttributeFetcher()Factory used by the plugin to fetch additional attributes from the cluster nodes, such as count of cores, system properties etc..BalancePlanFactorygetBalancePlanFactory()Factory used to create instances ofBalancePlanto return computed decision.ClustergetCluster()Initial state of the cluster.PlacementPlanFactorygetPlacementPlanFactory()Factory used to create instances ofPlacementPlanto return computed decision.
-
-
-
Constructor Detail
-
SimplePlacementContextImpl
public SimplePlacementContextImpl(org.apache.solr.client.solrj.cloud.SolrCloudManager solrCloudManager) throws IOException- Throws:
IOException
-
-
Method Detail
-
getCluster
public Cluster 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
public AttributeFetcher 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
public PlacementPlanFactory getPlacementPlanFactory()
Description copied from interface:PlacementContextFactory used to create instances ofPlacementPlanto return computed decision.- Specified by:
getPlacementPlanFactoryin interfacePlacementContext
-
getBalancePlanFactory
public BalancePlanFactory getBalancePlanFactory()
Description copied from interface:PlacementContextFactory used to create instances ofBalancePlanto return computed decision.- Specified by:
getBalancePlanFactoryin interfacePlacementContext
-
-