Class JobDescriptor<TArg, TResult>
Compute job descriptor.
public sealed record JobDescriptor<TArg, TResult> : IEquatable<JobDescriptor<TArg, TResult>>
Type Parameters
TArg
Argument type.
TResult
Result type.
- Inheritance
-
JobDescriptor<TArg, TResult>
- Implements
-
IEquatable<JobDescriptor<TArg, TResult>>
- Inherited Members
Constructors
JobDescriptor(string, IEnumerable<DeploymentUnit>?, JobExecutionOptions?, IMarshaller<TArg>?, IMarshaller<TResult>?)
Compute job descriptor.
public JobDescriptor(string JobClassName, IEnumerable<DeploymentUnit>? DeploymentUnits = null, JobExecutionOptions? Options = null, IMarshaller<TArg>? ArgMarshaller = null, IMarshaller<TResult>? ResultMarshaller = null)
Parameters
JobClassName
stringJava class name of the job to execute.
DeploymentUnits
IEnumerable<DeploymentUnit>Deployment units.
Options
JobExecutionOptionsOptions.
ArgMarshaller
IMarshaller<TArg>Argument marshaller (serializer).
ResultMarshaller
IMarshaller<TResult>Result marshaller (deserializer).
JobDescriptor(Type, IEnumerable<DeploymentUnit>?, JobExecutionOptions?, IMarshaller<TArg>?, IMarshaller<TResult>?)
Initializes a new instance of the JobDescriptor<TArg, TResult> class.
public JobDescriptor(Type type, IEnumerable<DeploymentUnit>? deploymentUnits = null, JobExecutionOptions? options = null, IMarshaller<TArg>? argMarshaller = null, IMarshaller<TResult>? resultMarshaller = null)
Parameters
type
TypeType implementing IComputeJob<TArg, TResult>.
deploymentUnits
IEnumerable<DeploymentUnit>Deployment units.
options
JobExecutionOptionsOptions.
argMarshaller
IMarshaller<TArg>Arg marshaller.
resultMarshaller
IMarshaller<TResult>Result marshaller.
Properties
ArgMarshaller
Argument marshaller (serializer).
public IMarshaller<TArg>? ArgMarshaller { get; init; }
Property Value
- IMarshaller<TArg>
DeploymentUnits
Deployment units.
public IEnumerable<DeploymentUnit>? DeploymentUnits { get; init; }
Property Value
JobClassName
Java class name of the job to execute.
public string JobClassName { get; init; }
Property Value
Options
Options.
public JobExecutionOptions? Options { get; init; }
Property Value
ResultMarshaller
Result marshaller (deserializer).
public IMarshaller<TResult>? ResultMarshaller { get; init; }
Property Value
- IMarshaller<TResult>