Class SnitchContext

  • All Implemented Interfaces:
    RemoteCallback

    public abstract class SnitchContext
    extends Object
    implements RemoteCallback
    This is the context provided to the snitches to interact with the system. This is a per-node-per-snitch instance.
    • Method Detail

      • getNode

        public String getNode()
      • invokeRemote

        @Deprecated
        public void invokeRemote​(String node,
                                 org.apache.solr.common.params.ModifiableSolrParams params,
                                 String klas,
                                 RemoteCallback callback)
        Deprecated.
        make a call to solrnode/admin/cores with the given params and give a callback. This is designed to be asynchronous because the system would want to batch the calls made to any given node
        Parameters:
        node - The node for which this call is made
        params - The params to be passed to the Snitch counterpart
        klas - The name of the class to be invoked in the remote node
        callback - 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 tags
      • getErrMsg

        public String getErrMsg()