Shutdown the TIBCO Patterns Engine.


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

Syntax

Visual Basic (Declaration)
Public Sub svrshutdown() _
    Implements INetricsServerInterface.svrshutdown
C#
public void svrshutdown()
C++
public:
 void svrshutdown() sealed 
J#
public void svrshutdown()
JScript
public  function svrshutdown()

Implements

INetricsServerInterface.svrshutdown

Exceptions

Exception TypeCondition
NetricsExceptionIf the server indicates that an error has occured

Example

This sample code shows how to ping the TIBCO Patterns Engine.

 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.svrshutdown();
                            Console.Write("Server shutdown successful.\n");
                        }
                        catch (NetricsException e)
                        {
                            Console.Write(e.getErrorDescription() + "\n");
                        }
                    }
                }
            

See Also