IAppServerClass.IsRunning

Syntax

IsRunning(Instance: String): Boolean;

Parameters

Instance. Identifier of the launched instance of the task scheduler. The name of the XML file that contains task scheduler settings should be set as a value of the parameter. If an empty string is specified, the check of availability of the task scheduler launched with settings from the Scheduler.xml file is executed.

NOTE. Files of settings for task scheduler startup should be stored in the folder with installed Foresight.  Analytics Platform. Name of the file in this parameter is set without the quot;xmlquot; extension.

Description

The IsRunning method checks if there is a running task scheduler with the specified settings.

Comments

The method returns True if the scheduler with specified identifier is started, and False if the scheduler is not started.

Example

Sub UserProc;
Var
    AppSvr: IAppServerClass;
Begin
    AppSvr := New AppServerClass.Create;
    If AppSvr.IsRunning("Test"Then
        Debug.WriteLine("Task scheduler with settings from the Test.Xml file is launched");
    Else
        Debug.WriteLine("Task scheduler with settings from the Test.Xml file is not launched");
    End If;
End Sub UserProc;

The launched task scheduler with settings contained in the Test.Xml file is checked on executing this example. The result of checking is displayed in the development environment console.

See also:

IAppServerClass