Perform a noop on the ibi™ Patterns - Search Server.


Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)

Syntax

Visual Basic (Declaration)
Public Sub svrnoop()
C#
public void svrnoop()
C++
public:
 void svrnoop() sealed 
J#
public void svrnoop()
JScript
public  function svrnoop()

Exceptions

Exception TypeCondition
NetricsExceptionIf 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.

 Copy Code
                        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");
                                }
                            }
                        }
                    

See Also