Package hudson.model.queue
Class Tasks
- java.lang.Object
-
- hudson.model.queue.Tasks
-
public class Tasks extends Object
Convenience methods aroundQueue.TaskandSubTask.- Since:
- 1.377
- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description Tasks()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AuthenticationgetAuthenticationOf(Queue.Task t)Deprecated.static org.springframework.security.core.AuthenticationgetAuthenticationOf2(Queue.Task t)Finds what authentication a task is likely to be run under when scheduled.static AuthenticationgetDefaultAuthenticationOf(Queue.Task t)Deprecated.callQueue.Task.getDefaultAuthentication()directlystatic AuthenticationgetDefaultAuthenticationOf(Queue.Task t, Queue.Item item)Deprecated.callQueue.Task.getDefaultAuthentication(Item)directlystatic ItemgetItemOf(SubTask t)static Queue.TaskgetOwnerTaskOf(SubTask t)Deprecated.callSubTask.getOwnerTask()directlystatic ObjectgetSameNodeConstraintOf(SubTask t)Deprecated.callSubTask.getSameNodeConstraint()directlystatic Collection<? extends SubTask>getSubTasksOf(Queue.Task task)Deprecated.callQueue.Task.getSubTasks()directly
-
-
-
Method Detail
-
getSubTasksOf
@Deprecated public static Collection<? extends SubTask> getSubTasksOf(Queue.Task task)
Deprecated.callQueue.Task.getSubTasks()directly
-
getSameNodeConstraintOf
@Deprecated public static Object getSameNodeConstraintOf(SubTask t)
Deprecated.callSubTask.getSameNodeConstraint()directly
-
getOwnerTaskOf
@Deprecated @NonNull public static Queue.Task getOwnerTaskOf(@NonNull SubTask t)
Deprecated.callSubTask.getOwnerTask()directly
-
getDefaultAuthenticationOf
@Deprecated @NonNull public static Authentication getDefaultAuthenticationOf(Queue.Task t)
Deprecated.callQueue.Task.getDefaultAuthentication()directly
-
getDefaultAuthenticationOf
@Deprecated @NonNull public static Authentication getDefaultAuthenticationOf(Queue.Task t, Queue.Item item)
Deprecated.callQueue.Task.getDefaultAuthentication(Item)directly
-
getAuthenticationOf2
@NonNull public static org.springframework.security.core.Authentication getAuthenticationOf2(@NonNull Queue.Task t)Finds what authentication a task is likely to be run under when scheduled. The actual authentication after scheduling (Queue.Item.authenticate2()) might differ, in case someQueueItemAuthenticator.authenticate2(hudson.model.Queue.Item)takes (for example) actions into consideration.- Parameters:
t- a task- Returns:
- an authentication as specified by some
QueueItemAuthenticator.authenticate2(hudson.model.Queue.Task); elseQueue.Task.getDefaultAuthentication2() - Since:
- 2.266
-
getAuthenticationOf
@Deprecated @NonNull public static Authentication getAuthenticationOf(@NonNull Queue.Task t)
Deprecated.- Since:
- 1.560
-
-