public class GridTaskSessionProcessor extends GridProcessorAdapter
GridComponent.DiscoveryDataExchangeTypectx, diagnosticLog, log| Constructor and Description |
|---|
GridTaskSessionProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
GridTaskSessionImpl |
createTaskSession(IgniteUuid sesId,
UUID taskNodeId,
String taskName,
@Nullable GridDeployment dep,
String taskClsName,
@Nullable Collection<UUID> top,
@Nullable IgnitePredicate<ClusterNode> topPred,
long startTime,
long endTime,
Collection<ComputeJobSibling> siblings,
Map<Object,Object> attrs,
boolean fullSup,
boolean internal,
UUID subjId,
@Nullable String execName) |
@Nullable GridTaskSessionImpl |
getSession(IgniteUuid sesId) |
void |
printMemoryStats()
Prints memory statistics (sizes of internal structures, etc.).
|
boolean |
removeSession(IgniteUuid sesId)
Removes session for a given session ID.
|
void |
start()
Starts session processor.
|
void |
stop(boolean cancel)
Stops session processor.
|
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, toString, validateNode, validateNodepublic GridTaskSessionProcessor(GridKernalContext ctx)
ctx - Grid kernal context.public void start()
throws IgniteCheckedException
start in interface GridComponentstart in class GridProcessorAdapterIgniteCheckedException - Throws in case of any errors.public void stop(boolean cancel)
throws IgniteCheckedException
stop in interface GridComponentstop in class GridProcessorAdaptercancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException - Thrown in case of any errors.public GridTaskSessionImpl createTaskSession(IgniteUuid sesId, UUID taskNodeId, String taskName, @Nullable @Nullable GridDeployment dep, String taskClsName, @Nullable @Nullable Collection<UUID> top, @Nullable @Nullable IgnitePredicate<ClusterNode> topPred, long startTime, long endTime, Collection<ComputeJobSibling> siblings, Map<Object,Object> attrs, boolean fullSup, boolean internal, UUID subjId, @Nullable @Nullable String execName)
sesId - Session ID.taskNodeId - Task node ID.taskName - Task name.dep - Deployment.taskClsName - Task class name.top - Topology.topPred - Topology predicate.startTime - Execution start time.endTime - Execution end time.siblings - Collection of siblings.attrs - Map of attributes.fullSup - True to enable distributed session attributes and checkpoints.internal - True in case of internal task.subjId - Subject ID.execName - Custom executor name.@Nullable public @Nullable GridTaskSessionImpl getSession(IgniteUuid sesId)
sesId - Session ID.public boolean removeSession(IgniteUuid sesId)
sesId - ID of session to remove.True if session was removed.public void printMemoryStats()
printMemoryStats in interface GridComponentprintMemoryStats in class GridProcessorAdapter
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021