public class Tasks extends Object
Queue.Task and SubTask.| Constructor and Description |
|---|
Tasks() |
| Modifier and Type | Method and Description |
|---|---|
static Queue.Task |
_getOwnerTaskOf(SubTask t)
A pointless function to work around what appears to be a HotSpot problem.
|
static org.acegisecurity.Authentication |
getAuthenticationOf(Queue.Task t)
Finds what authentication a task is likely to be run under when scheduled.
|
static org.acegisecurity.Authentication |
getDefaultAuthenticationOf(Queue.Task t) |
static Queue.Task |
getOwnerTaskOf(SubTask t) |
static Object |
getSameNodeConstraintOf(SubTask t) |
static Collection<? extends SubTask> |
getSubTasksOf(Queue.Task task) |
public static Collection<? extends SubTask> getSubTasksOf(Queue.Task task)
public static Queue.Task _getOwnerTaskOf(SubTask t)
@Nonnull public static Queue.Task getOwnerTaskOf(@Nonnull SubTask t)
public static org.acegisecurity.Authentication getDefaultAuthenticationOf(Queue.Task t)
t - a taskQueue.Task.getDefaultAuthentication(), or ACL.SYSTEM@Nonnull public static org.acegisecurity.Authentication getAuthenticationOf(@Nonnull Queue.Task t)
Queue.Item.authenticate()) might differ,
in case some QueueItemAuthenticator.authenticate(hudson.model.Queue.Item) takes (for example) actions into consideration.t - a taskQueueItemAuthenticator.authenticate(hudson.model.Queue.Task); else getDefaultAuthenticationOf(hudson.model.Queue.Task)Copyright © 2014. All rights reserved.