public class TaskExecutor extends Object
| Modifier and Type | Field and Description |
|---|---|
static UUID |
BROADCAST_UUID
Broadcast uuid.
|
static String |
DFLT_HOST |
static String |
DFLT_PORT |
| Constructor and Description |
|---|
TaskExecutor() |
| Modifier and Type | Method and Description |
|---|---|
static <R> R |
executeTask(GridClient client,
Class<? extends ComputeTask<?,R>> taskCls,
Object taskArgs,
GridClientConfiguration clientCfg) |
static <R> R |
executeTaskByNameOnNode(GridClient client,
String taskClsName,
Object taskArgs,
UUID nodeId,
GridClientConfiguration clientCfg) |
public static final String DFLT_HOST
public static final String DFLT_PORT
public static final UUID BROADCAST_UUID
public static <R> R executeTaskByNameOnNode(GridClient client, String taskClsName, Object taskArgs, UUID nodeId, GridClientConfiguration clientCfg) throws GridClientException
client - ClienttaskClsName - Task class name.taskArgs - Task args.nodeId - Node ID to execute task at (if null, random node will be chosen by balancer).clientCfg - GridClientException - If failed to execute task.public static <R> R executeTask(GridClient client, Class<? extends ComputeTask<?,R>> taskCls, Object taskArgs, GridClientConfiguration clientCfg) throws GridClientException
client - Client.taskCls - Task class.taskArgs - Task arguments.clientCfg - Client configuration.GridClientException - If failed to execute task.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.13.0 Release Date : April 20 2022