public class GridJobProcessor extends GridProcessorAdapter
GridComponent.DiscoveryDataExchangeTypectx, diagnosticLog, log| Constructor and Description |
|---|
GridJobProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
GridJobWorker |
activeJob(IgniteUuid jobId)
Gets active job.
|
void |
cancelJob(IgniteUuid sesId,
IgniteUuid jobId,
boolean sys) |
String |
currentTaskName()
Gets name task executed by current thread.
|
int |
currentTaskNameHash()
Gets hash of task name executed by current thread.
|
void |
currentTaskSession(ComputeTaskSession ses)
Callback from job worker to set current task session for execution.
|
boolean |
internal() |
void |
masterLeaveLocal(IgniteUuid sesId)
Notify processor that master leave aware handler must be invoked on all jobs with the given session ID.
|
void |
onKernalStop(boolean cancel)
Callback to notify that kernal is about to stop.
|
void |
printMemoryStats()
Prints memory statistics (sizes of internal structures, etc.).
|
void |
processJobExecuteRequest(ClusterNode node,
GridJobExecuteRequest req) |
Collection<ComputeJobSibling> |
requestJobSiblings(ComputeTaskSession ses) |
void |
setAttributes(GridJobSessionImpl ses,
Map<?,?> attrs) |
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onReconnected, toString, validateNode, validateNodepublic GridJobProcessor(GridKernalContext ctx)
ctx - 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)
stop in interface GridComponentstop in class GridProcessorAdaptercancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.public void onKernalStop(boolean cancel)
onKernalStop in interface GridComponentonKernalStop in class GridProcessorAdaptercancel - Flag indicating whether jobs should be canceled.@Nullable public GridJobWorker activeJob(IgniteUuid jobId)
jobId - Job ID.public boolean internal()
True if running internal task.public void setAttributes(GridJobSessionImpl ses, Map<?,?> attrs) throws IgniteCheckedException
ses - Session.attrs - Attributes.IgniteCheckedException - If failed.public Collection<ComputeJobSibling> requestJobSiblings(ComputeTaskSession ses) throws IgniteCheckedException
ses - Session.IgniteCheckedException - If failed.public void masterLeaveLocal(IgniteUuid sesId)
sesId - Session ID.public void cancelJob(@Nullable
IgniteUuid sesId,
@Nullable
IgniteUuid jobId,
boolean sys)
sesId - Session ID.jobId - Job ID.sys - System flag.public void processJobExecuteRequest(ClusterNode node, GridJobExecuteRequest req)
node - Node.req - Request.public void currentTaskSession(ComputeTaskSession ses)
ses - Session.public int currentTaskNameHash()
0 if security is disabled.public String currentTaskName()
null if security is disabled.public void printMemoryStats()
printMemoryStats in interface GridComponentprintMemoryStats in class GridProcessorAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018