public class Policy extends Object implements MapWriter
Modifier and Type | Class and Description |
---|---|
static class |
Policy.ReplicaInfo |
class |
Policy.Session |
static class |
Policy.SortParam |
static class |
Policy.Suggester |
MapWriter.EntryWriter
Modifier and Type | Field and Description |
---|---|
static String |
ANY |
static String |
CLUSTER_POLICY |
static String |
CLUSTER_PREFERENCE |
static String |
EACH |
static Set<String> |
GLOBAL_ONLY_TAGS |
static String |
POLICY |
Modifier and Type | Method and Description |
---|---|
Policy.Session |
createSession(ClusterDataProvider dataProvider) |
List<Clause> |
getClusterPolicy() |
List<Preference> |
getClusterPreferences() |
Map<String,List<Clause>> |
getPolicies() |
static List<Clause> |
mergePolicies(String coll,
List<Clause> collPolicy,
List<Clause> globalPolicy) |
void |
writeMap(MapWriter.EntryWriter ew) |
public static final String POLICY
public static final String EACH
public static final String ANY
public static final String CLUSTER_POLICY
public static final String CLUSTER_PREFERENCE
public List<Preference> getClusterPreferences()
public void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap
in interface MapWriter
IOException
public Policy.Session createSession(ClusterDataProvider dataProvider)
public static List<Clause> mergePolicies(String coll, List<Clause> collPolicy, List<Clause> globalPolicy)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.