Interface ICompute
Ignite Compute API provides distributed job execution functionality.
public interface ICompute
Methods
SubmitAsync<TTarget, TArg, TResult>(IJobTarget<TTarget>, JobDescriptor<TArg, TResult>, TArg)
Submits a compute job represented by the given class for an execution on one of the specified nodes.
Task<IJobExecution<TResult>> SubmitAsync<TTarget, TArg, TResult>(IJobTarget<TTarget> target, JobDescriptor<TArg, TResult> jobDescriptor, TArg arg) where TTarget : notnull
Parameters
targetIJobTarget<TTarget>Job execution target. See factory methods in JobTarget.
jobDescriptorJobDescriptor<TArg, TResult>Job descriptor.
argTArgJob argument.
Returns
- Task<IJobExecution<TResult>>
A Task representing the asynchronous operation.
Type Parameters
TTargetJob target type.
TArgJob argument type.
TResultJob result type.
SubmitAsync<TTarget, TArg, TResult>(IJobTarget<TTarget>, JobDescriptor<TArg, TResult>, TArg, CancellationToken)
Submits a compute job represented by the given class for an execution on one of the specified nodes.
Task<IJobExecution<TResult>> SubmitAsync<TTarget, TArg, TResult>(IJobTarget<TTarget> target, JobDescriptor<TArg, TResult> jobDescriptor, TArg arg, CancellationToken cancellationToken) where TTarget : notnull
Parameters
targetIJobTarget<TTarget>Job execution target. See factory methods in JobTarget.
jobDescriptorJobDescriptor<TArg, TResult>Job descriptor.
argTArgJob argument.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IJobExecution<TResult>>
A Task representing the asynchronous operation.
Type Parameters
TTargetJob target type.
TArgJob argument type.
TResultJob result type.
SubmitBroadcastAsync<TTarget, TArg, TResult>(IBroadcastJobTarget<TTarget>, JobDescriptor<TArg, TResult>, TArg)
Submits a compute job represented by the given class for an execution on the specified target.
Task<IBroadcastExecution<TResult>> SubmitBroadcastAsync<TTarget, TArg, TResult>(IBroadcastJobTarget<TTarget> target, JobDescriptor<TArg, TResult> jobDescriptor, TArg arg) where TTarget : notnull
Parameters
targetIBroadcastJobTarget<TTarget>Job target. See factory methods in BroadcastJobTarget.
jobDescriptorJobDescriptor<TArg, TResult>Job descriptor.
argTArgJob argument.
Returns
- Task<IBroadcastExecution<TResult>>
A Task representing the asynchronous operation.
Type Parameters
TTargetJob target type.
TArgJob argument type.
TResultJob result type.
SubmitBroadcastAsync<TTarget, TArg, TResult>(IBroadcastJobTarget<TTarget>, JobDescriptor<TArg, TResult>, TArg, CancellationToken)
Submits a compute job represented by the given class for an execution on the specified target.
Task<IBroadcastExecution<TResult>> SubmitBroadcastAsync<TTarget, TArg, TResult>(IBroadcastJobTarget<TTarget> target, JobDescriptor<TArg, TResult> jobDescriptor, TArg arg, CancellationToken cancellationToken) where TTarget : notnull
Parameters
targetIBroadcastJobTarget<TTarget>Job target. See factory methods in BroadcastJobTarget.
jobDescriptorJobDescriptor<TArg, TResult>Job descriptor.
argTArgJob argument.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IBroadcastExecution<TResult>>
A Task representing the asynchronous operation.
Type Parameters
TTargetJob target type.
TArgJob argument type.
TResultJob result type.
SubmitMapReduceAsync<TArg, TResult>(TaskDescriptor<TArg, TResult>, TArg)
Submits a compute map-reduce task represented by the given class.
Task<ITaskExecution<TResult>> SubmitMapReduceAsync<TArg, TResult>(TaskDescriptor<TArg, TResult> taskDescriptor, TArg arg)
Parameters
taskDescriptorTaskDescriptor<TArg, TResult>Task descriptor.
argTArgJob arguments.
Returns
- Task<ITaskExecution<TResult>>
A Task representing the asynchronous operation.
Type Parameters
TArgTask argument type.
TResultTask result type.
SubmitMapReduceAsync<TArg, TResult>(TaskDescriptor<TArg, TResult>, TArg, CancellationToken)
Submits a compute map-reduce task represented by the given class.
Task<ITaskExecution<TResult>> SubmitMapReduceAsync<TArg, TResult>(TaskDescriptor<TArg, TResult> taskDescriptor, TArg arg, CancellationToken cancellationToken)
Parameters
taskDescriptorTaskDescriptor<TArg, TResult>Task descriptor.
argTArgJob arguments.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<ITaskExecution<TResult>>
A Task representing the asynchronous operation.
Type Parameters
TArgTask argument type.
TResultTask result type.