Class ImplicitSnitch
- java.lang.Object
-
- org.apache.solr.common.cloud.rule.Snitch
-
- org.apache.solr.common.cloud.rule.ImplicitSnitch
-
public class ImplicitSnitch extends Snitch
-
-
Field Summary
Fields Modifier and Type Field Description static String
CORES
static String
DISK
static String
HEAPUSAGE
static String
HOST
static Pattern
hostAndPortPattern
static List<String>
IP_SNITCHES
static String
NODE
static String
NODEROLE
static String
PORT
static String
ROLE
static String
SYSLOADAVG
static String
SYSPROP
static Set<String>
tags
-
Fields inherited from class org.apache.solr.common.cloud.rule.Snitch
WELL_KNOWN_SNITCHES
-
-
Constructor Summary
Constructors Constructor Description ImplicitSnitch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHostIp(String host)
protected void
getRemoteInfo(String solrNode, Set<String> requestedTags, SnitchContext ctx)
void
getTags(String solrNode, Set<String> requestedTags, SnitchContext ctx)
boolean
isKnownTag(String tag)
-
-
-
Field Detail
-
hostAndPortPattern
public static final Pattern hostAndPortPattern
-
NODE
public static final String NODE
- See Also:
- Constant Field Values
-
PORT
public static final String PORT
- See Also:
- Constant Field Values
-
HOST
public static final String HOST
- See Also:
- Constant Field Values
-
CORES
public static final String CORES
- See Also:
- Constant Field Values
-
DISK
public static final String DISK
- See Also:
- Constant Field Values
-
ROLE
public static final String ROLE
- See Also:
- Constant Field Values
-
NODEROLE
public static final String NODEROLE
- See Also:
- Constant Field Values
-
SYSPROP
public static final String SYSPROP
- See Also:
- Constant Field Values
-
SYSLOADAVG
public static final String SYSLOADAVG
- See Also:
- Constant Field Values
-
HEAPUSAGE
public static final String HEAPUSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTags
public void getTags(String solrNode, Set<String> requestedTags, SnitchContext ctx)
-
getRemoteInfo
protected void getRemoteInfo(String solrNode, Set<String> requestedTags, SnitchContext ctx)
-
isKnownTag
public boolean isKnownTag(String tag)
- Specified by:
isKnownTag
in classSnitch
-
-