public abstract class SnitchContext extends Object implements RemoteCallback
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SnitchContext.SnitchInfo |
| 限定符和类型 | 字段和说明 |
|---|---|
Exception |
exception |
SnitchContext.SnitchInfo |
snitchInfo |
| 构造器和说明 |
|---|
SnitchContext(SnitchContext.SnitchInfo perSnitch,
String node,
Map<String,Object> session) |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
已过时。
|
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.KeeperExceptionInterruptedExceptionpublic 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 在接口中 RemoteCallbackpublic String getErrMsg()
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.