public abstract class SnitchContext extends Object implements RemoteCallback
Modifier and Type | Class and Description |
---|---|
static class |
SnitchContext.SnitchInfo |
Modifier and Type | Field and Description |
---|---|
Exception |
exception |
SnitchContext.SnitchInfo |
snitchInfo |
Constructor and Description |
---|
SnitchContext(SnitchContext.SnitchInfo perSnitch,
String node,
Map<String,Object> session) |
Modifier and Type | Method and Description |
---|---|
String |
getErrMsg() |
String |
getNode() |
Map<String,Object> |
getNodeValues(String node,
Collection<String> tags) |
Map<String,Object> |
getTags() |
abstract Map |
getZkJson(String path) |
void |
invokeRemote(String node,
ModifiableSolrParams params,
String klas,
RemoteCallback callback)
Deprecated.
|
void |
remoteCallback(SnitchContext ctx,
Map<String,Object> returnedVal) |
Object |
retrieve(String s) |
void |
store(String s,
Object val) |
public final SnitchContext.SnitchInfo snitchInfo
public Exception exception
public SnitchContext(SnitchContext.SnitchInfo perSnitch, String node, Map<String,Object> session)
public abstract Map getZkJson(String path) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public String getNode()
@Deprecated public void invokeRemote(String node, ModifiableSolrParams params, String klas, RemoteCallback callback)
node
- The node for which this call is madeparams
- The params to be passed to the Snitch counterpartklas
- The name of the class to be invoked in the remote nodecallback
- The callback to be called when the response is obtained from remote node.
If this is passed as null the entire response map will be added as tagspublic void remoteCallback(SnitchContext ctx, Map<String,Object> returnedVal)
remoteCallback
in interface RemoteCallback
public String getErrMsg()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.