Class GridTaskSessionProcessor

    • Constructor Detail

      • GridTaskSessionProcessor

        public GridTaskSessionProcessor​(GridKernalContext ctx)
        Parameters:
        ctx - Grid kernal context.
    • Method Detail

      • createTaskSession

        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,
                                                     @Nullable
                                                     @Nullable String execName,
                                                     @Nullable
                                                     @Nullable SecurityContext secCtx)
        Creates task session.
        Parameters:
        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.
        execName - Custom executor name.
        secCtx - Security context of the user who created the session, null if security is not enabled.
        Returns:
        New session if one did not exist, or existing one.
      • getSession

        @Nullable
        public @Nullable GridTaskSessionImpl getSession​(IgniteUuid sesId)
        Parameters:
        sesId - Session ID.
        Returns:
        Session for a given session ID.
      • removeSession

        public boolean removeSession​(IgniteUuid sesId)
        Removes session for a given session ID.
        Parameters:
        sesId - ID of session to remove.
        Returns:
        True if session was removed.