Class SimplePlacementContextImpl
- java.lang.Object
-
- org.apache.solr.cluster.placement.impl.SimplePlacementContextImpl
-
- All Implemented Interfaces:
PlacementContext
public class SimplePlacementContextImpl extends Object implements PlacementContext
Implementation ofPlacementContext
that usesSimpleClusterAbstractionsImpl
to 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 AttributeFetcher
getAttributeFetcher()
Factory used by the plugin to fetch additional attributes from the cluster nodes, such as count of cores, system properties etc..Cluster
getCluster()
Initial state of the cluster.PlacementPlanFactory
getPlacementPlanFactory()
Factory used to create instances ofPlacementPlan
to 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:PlacementContext
Initial state of the cluster. Note there areSet
's andMap
's accessible from theCluster
and 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:
getCluster
in interfacePlacementContext
-
getAttributeFetcher
public AttributeFetcher getAttributeFetcher()
Description copied from interface:PlacementContext
Factory used by the plugin to fetch additional attributes from the cluster nodes, such as count of cores, system properties etc..- Specified by:
getAttributeFetcher
in interfacePlacementContext
-
getPlacementPlanFactory
public PlacementPlanFactory getPlacementPlanFactory()
Description copied from interface:PlacementContext
Factory used to create instances ofPlacementPlan
to return computed decision.- Specified by:
getPlacementPlanFactory
in interfacePlacementContext
-
-