Share via


IClusterService.ExecuteCommand Method (Int32, ITask, String, Byte , Boolean, Int32)

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

Executes a task on a specified group of nodes in the cluster. The output is returned in the requested page size.

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

Usage

Syntax

'Declaration
Function ExecuteCommand ( _
    commandId As Integer, _
    task As ITask, _
    userName As String, _
    cachedCredentials As Byte(), _
    isAsynchronous As Boolean, _
    pageSize As Integer _
) As IExecutionResult()
IExecutionResult[] ExecuteCommand (
    int commandId,
    ITask task,
    string userName,
    byte[] cachedCredentials,
    bool isAsynchronous,
    int pageSize
)
array<IExecutionResult^>^ ExecuteCommand (
    int commandId, 
    ITask^ task, 
    String^ userName, 
    array<unsigned char>^ cachedCredentials, 
    bool isAsynchronous, 
    int pageSize
)
IExecutionResult[] ExecuteCommand (
    int commandId, 
    ITask task, 
    String userName, 
    byte[] cachedCredentials, 
    boolean isAsynchronous, 
    int pageSize
)
function ExecuteCommand (
    commandId : int, 
    task : ITask, 
    userName : String, 
    cachedCredentials : byte[], 
    isAsynchronous : boolean, 
    pageSize : int
) : IExecutionResult[]

Parameters

  • commandId
    The command identifier.
  • task
  • userName
    The name of the RunAs user.
  • cachedCredentials
    The encrypted credentials that are cached on the client computer.
  • isAsynchronous
    To execute asynchronously, set this value to true; otherwise, false to execute synchronously.
  • pageSize
    The number of Unicode characters to return in each page of the output.

Return Value

An array of IExecutionResult interfaces for each instance of the task (one result for each node on which the task ran).

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