This is the main class of the TIBCO Patterns Server Interface.


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

Syntax

Visual Basic (Declaration)
<GuidAttribute("C0B6D0B5-5F36-46ff-A963-345182DD1BBD")>
Public Class NetricsServerInterface
    Implements INetricsServerInterface
C#
[GuidAttribute("C0B6D0B5-5F36-46ff-A963-345182DD1BBD")]
public class NetricsServerInterface : INetricsServerInterface
C++
[GuidAttribute(L"C0B6D0B5-5F36-46ff-A963-345182DD1BBD")]
ref class NetricsServerInterface : INetricsServerInterface
J#
/** @attribute GuidAttribute("C0B6D0B5-5F36-46ff-A963-345182DD1BBD") */
public class NetricsServerInterface implements INetricsServerInterface
JScript
public 
   GuidAttribute("C0B6D0B5-5F36-46ff-A963-345182DD1BBD")
class NetricsServerInterface extends INetricsServerInterface

Example

This sample code shows how to specify a connection to the TIBCO Patterns Server running on the localhost listening to port 5051 and obtain it's version.

 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);
                    String version = si.svrversion();
                 }
              }
            

Remarks

This is the only class which communicates with the TIBCO Patterns Engine. It is used to configure the connection parameters (host and port) associated with the Netrics Server and can then be used to perform any Netrics command, such as querying, creating, or deleting Netrics tables, adding records to tables, etc.

See the NetricsSample application for an example of how to use this interface.

Inheritance Hierarchy

System.Object
   NetricsServerInterface.NetricsServerInterface

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