public static class Policy.Session extends Object implements MapWriter
MapWriter.EntryWriter
Modifier and Type | Method and Description |
---|---|
static void |
addClausesForCollection(Policy policy,
List<Clause> clauses,
ClusterStateProvider stateProvider,
String collectionName) |
Policy.Session |
cloneToNewSession(SolrCloudManager cloudManager)
Given a session (this one), creates a new one for placement simulations that retains all the relevant information,
whether or not that info already made it to Zookeeper.
|
Row |
getNode(String node) |
NodeStateProvider |
getNodeStateProvider() |
Policy |
getPolicy() |
List<Row> |
getSortedNodes() |
Suggester |
getSuggester(CollectionParams.CollectionAction action) |
List<Violation> |
getViolations() |
int |
indexOf(String node) |
String |
toString() |
void |
writeMap(MapWriter.EntryWriter ew) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr
public Policy.Session cloneToNewSession(SolrCloudManager cloudManager)
public static void addClausesForCollection(Policy policy, List<Clause> clauses, ClusterStateProvider stateProvider, String collectionName)
public Policy getPolicy()
public Suggester getSuggester(CollectionParams.CollectionAction action)
public void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap
in interface MapWriter
IOException
public NodeStateProvider getNodeStateProvider()
public int indexOf(String node)
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.