Base class for all interactions with the ibi™ Patterns - Search Server.


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

Syntax

Visual Basic (Declaration)
Public Class NetricsServerInterface
C#
public class NetricsServerInterface
C++
ref class NetricsServerInterface
J#
public class NetricsServerInterface
JScript
public class NetricsServerInterface

Example

This sample code shows how to specify a connection to the ibi™ Patterns - Search Server running on the localhost listening to port 5051 and obtain its version information.

 Copy Code
            using NetricsServerInterface;  
            class MyClass 
              {
                private static NetricsServerInterface.NetricsServerInterface si = null;     
                public static void Main() 
                 {
                    String host = "localhost";
                    int port = 5051;
                    si = new NetricsServerInterface.NetricsServerInterface(host, port);
                    NetricsServerStats version_info = si.server_info();
                    Console.WriteLine("Server Info: "+version_info.ToString());
                 }
              }
            

Remarks

All interactions with the ibi™ Patterns - Search Server are performed using objects of this class or the NetricsTransactions class, which is an extension of this class. All operations on the ibi™ Patterns - Search Server are exposed as methods of objects of this class.

The method calls used to perform operations on the ibi™ Patterns - Search Server do not retain any state, all information is maintained on the ibi™ Patterns - Search Server itself. Because these methods are stateless they are thread safe. However these objects do maintain certain connection information. Methods which update this information are NOT thread safe. These methods include: DebuggingOn, DebuggingOff, ParseDebuggingOn, ParseDebugginOff, setServerCultureInfo, setMaxSocketUsage, setMaxSocketLifetime, setMaxSocketIdleTime, setConnectRetryCount, setConnectTimeout, and setConnectionPoolingPolicy. None of these methods should ever be called on an object being shared by multiple threads.

Inheritance Hierarchy

System.Object
   NetricsServerInterface.NetricsServerInterface
      NetricsServerInterface.NetricsTransaction

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also