public class Policy extends Object implements MapWriter
Modifier and Type | Class and Description |
---|---|
static class |
Policy.Session
Deprecated.
|
static class |
Policy.SortParam
Deprecated.
|
MapWriter.EntryWriter
Modifier and Type | Field and Description |
---|---|
static String |
ANY
Deprecated.
|
static String |
CLUSTER_POLICY
Deprecated.
|
static String |
CLUSTER_PREFERENCES
Deprecated.
|
static List<Preference> |
DEFAULT_PREFERENCES
Deprecated.
|
static String |
EACH
Deprecated.
|
static Set<String> |
GLOBAL_ONLY_TAGS
Deprecated.
|
static String |
POLICIES
Deprecated.
|
static String |
POLICY
Deprecated.
|
Constructor and Description |
---|
Policy()
Deprecated.
|
Policy(Map<String,Object> jsonMap)
Deprecated.
|
Policy(Map<String,Object> jsonMap,
int version)
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
public static final String POLICY
public static final String EACH
public static final String ANY
public static final String POLICIES
public static final String CLUSTER_POLICY
public static final String CLUSTER_PREFERENCES
public static final List<Preference> DEFAULT_PREFERENCES
public Policy withClusterPreferences(List<Preference> clusterPreferences)
public List<Preference> getClusterPreferences()
public void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap
in interface MapWriter
IOException
public static Map<String,List<Clause>> clausesFromMap(Map<String,List<Map<String,Object>>> map, List<String> newParams)
public Policy.Session createSession(SolrCloudManager cloudManager)
public Policy.Session createSession(SolrCloudManager cloudManager, org.apache.solr.client.solrj.cloud.autoscaling.Policy.Transaction tx)
public static List<Clause> mergePolicies(String coll, List<Clause> collPolicy, List<Clause> globalPolicy)
public List<Pair<String,Variable.Type>> getParams()
public int getZkVersion()
public boolean isEmpty()
public boolean isEmptyPreferences()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.