Gets an array of SphinxStatusInfo instances for each
status variable from searchd.
Namespace: Gronewold.SphinxConnectorAssembly: Gronewold.SphinxConnector (in Gronewold.SphinxConnector.dll) Version: 2.8.0.26312 (2.8.0.26312)
Syntax
| C# |
|---|
public SphinxStatusInfoCollection GetStatus() |
| Visual Basic |
|---|
Public Function GetStatus As SphinxStatusInfoCollection |
Return Value
A SphinxStatusInfoCollection containing instances of SphinxStatusInfo for each status variable.
Examples
SphinxClient sphinxClient = new SphinxClient(); SphinxStatusInfo[] statusInfos = sphinxClient.GetStatus(); foreach (SphinxStatusInfo sphinxStatusInfo in statusInfos) { Console.WriteLine(sphinxStatusInfo); } /* This code produces the following output (your values may vary): uptime 226 connections 2 maxed_out 0 command_search 0 command_excerpt 0 command_update 0 command_keywords 0 command_persist 0 command_status 2 agent_connect 0 agent_retry 0 queries 0 dist_queries 0 query_wall 0.000 query_cpu OFF dist_wall 0.000 dist_local 0.000 dist_wait 0.000 query_reads OFF query_readkb OFF query_readtime OFF avg_query_wall 0.000 avg_query_cpu OFF avg_dist_wall 0.000 avg_dist_local 0.000 avg_dist_wait 0.000 avg_query_reads OFF avg_query_readkb OFF avg_query_readtime OFF*/
Exceptions
| Exception | Condition |
|---|---|
| System..::..NotSupportedException | Version is less than 0.9.9. |
| Gronewold.SphinxConnector..::..SphinxClientException | An error occured while executing the request. See exception message and inner exception for details. |