Share via


IClusterService.ListTasks Method (Int32, Byte[], Byte , Int32)

This method supports the infrastructure and is not intended to be used directly from your code.

Retrieves all tasks in the specified job. The tasks are returned in blocks of tasks from a specified snapshot of the job.

Namespace: Microsoft.ComputeCluster
Assembly: CcpAPI (in ccpapi.dll)

Usage

Syntax

'Declaration
Function ListTasks ( _
    jobId As Integer, _
    timestamp As Byte(), _
    version As Byte(), _
    pageSize As Integer _
) As ITask()
ITask[] ListTasks (
    int jobId,
    byte[] timestamp,
    byte[] version,
    int pageSize
)
array<ITask^>^ ListTasks (
    int jobId, 
    array<unsigned char>^ timestamp, 
    array<unsigned char>^ version, 
    int pageSize
)
ITask[] ListTasks (
    int jobId, 
    byte[] timestamp, 
    byte[] version, 
    int pageSize
)
function ListTasks (
    jobId : int, 
    timestamp : byte[], 
    version : byte[], 
    pageSize : int
) : ITask[]

Parameters

  • jobId
    The job identifier.
  • timestamp
    The opaque value used by the method to track the tasks that have been returned. Set to NULL on first call. See Remarks for details.
  • version
    The opaque value used by the method to track the snapshot of the list. Set to NULL on first call. See Remarks for details.
  • pageSize
    The number of tasks to retrieve.

Return Value

An array of ITask interfaces. The array is empty when there are no tasks to return.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Microsoft Windows Compute Cluster Server 2003, Windows Server 2003, Windows XP

Target Platforms

Microsoft Windows Compute Cluster Server 2003, Windows Server 2003 with Compute Cluster Pack Client Utilities, Windows XP with Compute Cluster Pack Client Utilities

See Also

Reference

IClusterService Interface
IClusterService Members
Microsoft.ComputeCluster Namespace