IRemoteCommand Interface

Definition

Defines a command to execute on one or more nodes in the cluster.

[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("f8d669bc-0579-41b9-ac26-384c3c8e06f8")]
public interface IRemoteCommand
type IRemoteCommand = interface
Public Interface IRemoteCommand
Derived
Attributes

Properties

CommandLine

Retrieves the command line to execute.

Id

Retrieves the command identifier that uniquely identifies the command in the scheduler.

NodeNames

Retrieves the collection of node names on which the command will run or has run.

OutputEncoding

Retrieves or sets the encoding to use on the output that the command generates.

ProxyTaskId

Retrieves the unique task identifier for the proxy task in a remote command job. The proxy task is the task that forwards the output and error streams from all of the nodes in a remote command to the client.

Methods

Cancel()

Cancels the command.

Start()

Runs the command.

StartWithCredentials(String, String)

Runs the command using the specified credentials.

Events

OnCommandJobState

An event that is raised when the state of the job that contains the command changes.

OnCommandOutput

An event that is raised when the command generates a line of output.

OnCommandRawOutput

An event that is raised when the command generates output. The output is provided as a byte blob without encoding.

OnCommandTaskState

An event that is raised when the state of the command changes on a node.

Applies to