Perform a noop on the ibi™ Patterns - Search Server.
Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)
Syntax
Exceptions
Exception Type | Condition |
---|---|
NetricsException | If the server indicates that an error has occured |
Remarks
This method is the quickest way to determine if the ibi™ Patterns - Search server is responding or not.
Example
This sample code shows how to ping the ibi™ Patterns - Search Server.
![]() | |
---|---|
using System; using NetricsServerInterface; class MyClass { private static NetricsServerInterface.NetricsServerInterface si = null; public static void Main() { try { String host = "localhost"; int port = 5051; si = new NetricsServerInterface.NetricsServerInterface(host, port); si.svrnoop(); Console.Write("Server No Operation (NOOP) successful.\n"); } catch (NetricsException e) { Console.Write(e.getErrorDescription() + "\n"); } } } |