hudson.model.queue
Class Executables

java.lang.Object
  extended by hudson.model.queue.Executables

public class Executables
extends Object

Convenience methods around Queue.Executable.

Author:
Kohsuke Kawaguchi

Constructor Summary
Executables()
           
 
Method Summary
static long getEstimatedDurationFor(Queue.Executable e)
          Returns the estimated duration for the executable.
static SubTask getParentOf(Queue.Executable e)
          Due to the return type change in Queue.Executable, the caller needs a special precaution now.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Executables

public Executables()
Method Detail

getParentOf

public static SubTask getParentOf(Queue.Executable e)
Due to the return type change in Queue.Executable, the caller needs a special precaution now.


getEstimatedDurationFor

public static long getEstimatedDurationFor(Queue.Executable e)
Returns the estimated duration for the executable. Protects against AbstractMethodErrors if the Queue.Executable implementation was compiled against Hudson < 1.383



Copyright © 2004-2013. All Rights Reserved.