public class ServerSnitchContext extends SnitchContext
SnitchContext.SnitchInfo
exception, snitchInfo
Constructor and Description |
---|
ServerSnitchContext(SnitchContext.SnitchInfo perSnitch,
String node,
Map<String,Object> session,
CoreContainer coreContainer) |
Modifier and Type | Method and Description |
---|---|
Map |
getZkJson(String path) |
SimpleSolrResponse |
invoke(String solrNode,
String path,
SolrParams params) |
void |
invokeRemote(String node,
ModifiableSolrParams params,
String klas,
RemoteCallback callback) |
getErrMsg, getNode, getTags, remoteCallback, retrieve, store
public ServerSnitchContext(SnitchContext.SnitchInfo perSnitch, String node, Map<String,Object> session, CoreContainer coreContainer)
public Map getZkJson(String path) throws org.apache.zookeeper.KeeperException, InterruptedException
getZkJson
in class SnitchContext
org.apache.zookeeper.KeeperException
InterruptedException
public void invokeRemote(String node, ModifiableSolrParams params, String klas, RemoteCallback callback)
invokeRemote
in class SnitchContext
public SimpleSolrResponse invoke(String solrNode, String path, SolrParams params) throws IOException, SolrServerException
IOException
SolrServerException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.