public class SnitchContext extends Object implements RemoteCallback
Modifier and Type | Class and Description |
---|---|
static class |
SnitchContext.SnitchInfo |
Modifier and Type | Method and Description |
---|---|
String |
getErrMsg() |
String |
getNode() |
SnitchContext.SnitchInfo |
getSnitchInfo() |
Map<String,Object> |
getTags() |
SimpleSolrResponse |
invoke(UpdateShardHandler shardHandler,
String url,
String path,
SolrParams params) |
void |
invokeRemote(String node,
ModifiableSolrParams params,
String klas,
RemoteCallback callback)
make a call to solrnode/admin/cores with the given params and give a callback.
|
void |
remoteCallback(SnitchContext ctx,
Map<String,Object> returnedVal) |
public SnitchContext.SnitchInfo getSnitchInfo()
public String getNode()
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 SimpleSolrResponse invoke(UpdateShardHandler shardHandler, String url, String path, SolrParams params) throws IOException, SolrServerException
IOException
SolrServerException
public void remoteCallback(SnitchContext ctx, Map<String,Object> returnedVal)
remoteCallback
in interface RemoteCallback
public String getErrMsg()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.