Assets/Watson/Scripts/Services/RetrieveAndRank/RetrieveAndRank.cs
/// <summary>
/// Retrieves the list of Solr clusters for the service instance.
/// </summary>
/// <param name="callback"></param>
/// <param name="customData"></param>
/// <returns></returns>
Retrieves the list of Solr clusters for the service instance.
Retrieves the list of Solr clusters for the service instance .
public bool GetClusters(OnGetClusters callback, string customData = default(string))
        {
            if (callback == null)
                throw new ArgumentNullException("callback");
            GetClustersRequest req = new GetClustersRequest();
            req.Callback = callback;
            req.Data = customData;
            req.Timeout = REQUEST_TIMEOUT;
            RESTConnector connector = RESTConnector.GetConnector(SERVICE_ID, SERVICE_CLUSTERS);
            if (connector == null)
                return false;
            req.OnResponse = OnGetClustersResponse;
            return connector.Send(req);
        }
public bool GetClusters ( OnGetClusters callback , string customData = default ( string ) ) { if ( callback == null ) throw new ArgumentNullException ( " " ) ; GetClustersRequest req = new GetClustersRequest ( ) ; req . Callback = callback ; req . Data = customData ; req . Timeout = REQUEST_TIMEOUT ; RESTConnector connector = RESTConnector . GetConnector ( SERVICE_ID , SERVICE_CLUSTERS ) ; if ( connector == null ) return false ; req . OnResponse = OnGetClustersResponse ; return connector . Send ( req ) ; }
Retrieves the list of Solr clusters for the service instance.
Retrieves the list of Solr clusters for the service instance .
None
callback
OnGetClusters
None
customData
string
None