Table of Contents

Class WasmJobDescriptor

Namespace
Apache.Ignite.Compute.Wasm
Assembly
Apache.Ignite.dll

WebAssembly job descriptor factory.

public static class WasmJobDescriptor
Inheritance
WasmJobDescriptor
Inherited Members

Methods

CreateCommand<TArg>(string, IEnumerable<DeploymentUnit>?, JobExecutionOptions?, IMarshaller<TArg>?, IMarshaller<string>?)

Creates a job descriptor for a WebAssembly command module.

See GenericCommand for details.

public static JobDescriptor<TArg, string> CreateCommand<TArg>(string wasmModuleFileName, IEnumerable<DeploymentUnit>? deploymentUnits = null, JobExecutionOptions? options = null, IMarshaller<TArg>? argMarshaller = null, IMarshaller<string>? resultMarshaller = null)

Parameters

wasmModuleFileName string

Wasm module file name. Example: module.wasm.

deploymentUnits IEnumerable<DeploymentUnit>

Deployment units.

options JobExecutionOptions

Job execution options. ExecutorType is set to WasmEmbedded unconditionally.

argMarshaller IMarshaller<TArg>

Argument marshaller.

resultMarshaller IMarshaller<string>

Result marshaller.

Returns

JobDescriptor<TArg, string>

Job descriptor.

Type Parameters

TArg

Argument type.

Create<TArg, TResult>(string, string, WasmType, WasmCallingConvention, IEnumerable<DeploymentUnit>?, JobExecutionOptions?, IMarshaller<TArg>?, IMarshaller<TResult>?)

Creates a job descriptor for a WebAssembly job.

public static JobDescriptor<TArg, TResult> Create<TArg, TResult>(string wasmModuleFileName, string wasmFunctionName, WasmType resultType, WasmCallingConvention callingConvention = WasmCallingConvention.Generic, IEnumerable<DeploymentUnit>? deploymentUnits = null, JobExecutionOptions? options = null, IMarshaller<TArg>? argMarshaller = null, IMarshaller<TResult>? resultMarshaller = null)

Parameters

wasmModuleFileName string

Wasm module file name. Example: module.wasm.

wasmFunctionName string

Wasm exported function name.

resultType WasmType

Wasm function result type.

callingConvention WasmCallingConvention

Calling convention.

deploymentUnits IEnumerable<DeploymentUnit>

Deployment units.

options JobExecutionOptions

Job execution options. ExecutorType is set to WasmEmbedded unconditionally.

argMarshaller IMarshaller<TArg>

Argument marshaller.

resultMarshaller IMarshaller<TResult>

Result marshaller.

Returns

JobDescriptor<TArg, TResult>

Job descriptor.

Type Parameters

TArg

Argument type.

TResult

Result type.