Package org.apache.solr.cloud.rule
Class ServerSnitchContext
- java.lang.Object
-
- org.apache.solr.common.cloud.rule.SnitchContext
-
- org.apache.solr.cloud.rule.ServerSnitchContext
-
- All Implemented Interfaces:
RemoteCallback
public class ServerSnitchContext extends SnitchContext
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.common.cloud.rule.SnitchContext
SnitchContext.SnitchInfo
-
-
Field Summary
-
Fields inherited from class org.apache.solr.common.cloud.rule.SnitchContext
exception, snitchInfo
-
-
Constructor Summary
Constructors Constructor Description ServerSnitchContext(SnitchContext.SnitchInfo perSnitch, String node, Map<String,Object> session, SolrCloudManager cloudManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
getNodeValues(String node, Collection<String> tags)
Map
getZkJson(String path)
-
Methods inherited from class org.apache.solr.common.cloud.rule.SnitchContext
getErrMsg, getNode, getTags, invokeRemote, remoteCallback, retrieve, store
-
-
-
-
Constructor Detail
-
ServerSnitchContext
public ServerSnitchContext(SnitchContext.SnitchInfo perSnitch, String node, Map<String,Object> session, SolrCloudManager cloudManager)
-
-
Method Detail
-
getZkJson
public Map getZkJson(String path) throws org.apache.zookeeper.KeeperException, InterruptedException
- Specified by:
getZkJson
in classSnitchContext
- Throws:
org.apache.zookeeper.KeeperException
InterruptedException
-
getNodeValues
public Map<String,Object> getNodeValues(String node, Collection<String> tags)
- Overrides:
getNodeValues
in classSnitchContext
-
-