Edit

Share via


JobOrderBy.CreateOrderBy Method

Definition

Creates a JobOrderBy object that you use to specify your preference for scheduling jobs on nodes in the cluster.

public static Microsoft.Hpc.Scheduler.Properties.JobOrderBy CreateOrderBy (Microsoft.Hpc.Scheduler.Properties.JobOrderBy.OrderByProperty prop, Microsoft.Hpc.Scheduler.Properties.JobOrderBy.SortOrder order);
static member CreateOrderBy : Microsoft.Hpc.Scheduler.Properties.JobOrderBy.OrderByProperty * Microsoft.Hpc.Scheduler.Properties.JobOrderBy.SortOrder -> Microsoft.Hpc.Scheduler.Properties.JobOrderBy
Public Shared Function CreateOrderBy (prop As JobOrderBy.OrderByProperty, order As JobOrderBy.SortOrder) As JobOrderBy

Parameters

prop
JobOrderBy.OrderByProperty

The resource property to give preference to when scheduling resources for the job. For possible properties that you can specify, see the JobOrderBy.OrderByProperty enumeration.

order
JobOrderBy.SortOrder

The order in which to sort the resource property in the list of nodes that can run the job. For possible values, see the JobOrderBy.OrderByProperty enumeration.

Returns

A JobOrderBy object that contains the preference.

Applies to