IJobSchedulerGetMaximumHostCount Method |
Namespace: AGI.Parallel.Client
Exception | Condition |
---|---|
JobSchedulerException | If operation fails. |
using System; using AGI.Parallel.Client; using AGI.Parallel.Infrastructure; namespace CodeSamples { class Program { static void Main(string[] args) { using (IJobScheduler scheduler = new ClusterJobScheduler("localhost")) { scheduler.Connect(); int numHosts = scheduler.GetMaximumHostCount(); Console.WriteLine("There are {0} hosts available to the job scheduler.", numHosts); } /* * The output of the application should resemble: * There are 4 hosts available to the job scheduler. */ } } }
STK Parallel Computing Server 2.9 API for .NET