Connects client to specified cluster scheduler.
Namespace: AGI.Parallel.Client
Assembly: AGI.Parallel.Client (in AGI.Parallel.Client.dll) Version: 1.2.0.275 (1.2.0.275)

Syntax

C#
public void Connect()
Visual Basic
Public Sub Connect

Implements

IJobScheduler..::..Connect()()()()

Remarks

Call this method to establish a synchronous remote connection the coordinator specified at the host name (CoordinatorMachineName), and port (CoordinatorPort).

Examples

  Copy imageCopy
ClusterJobScheduler scheduler = new ClusterJobScheduler();
scheduler.CoordinatorMachineName = "coordinatormachine";
scheduler.CoordinatorPort = 9090;
scheduler.Connect();

Exceptions

Exception Condition
System..::..InvalidOperationException The client is already connected.
AGI.Parallel.Client..::..JobSchedulerException coordinator CoordinatorMachineName is not specified, or coordinator could not be reached at hostname and port.

See Also