|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.jenkins.plugins.bfa.sod.ScanOnDemandQueue
public final class ScanOnDemandQueue
A thread-pool and queue implementation for queueing builds for scanning.
Method Summary | |
---|---|
static ScanOnDemandQueue |
getInstance()
Returns the singleton instance of the sod-queue. |
static int |
getQueueSize()
Returns the current queue size. |
static void |
queue(ScanOnDemandTask task)
Adds a sod-task to the singleton instance's queue. |
void |
queueTask(ScanOnDemandTask task)
Adds a task to the queue. |
static void |
shutdown()
Shuts down the executor(s). |
protected void |
startQueue()
Starts the executor if it hasn't started yet, or updates the thread-pool size if it is started. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ScanOnDemandQueue getInstance()
public static int getQueueSize()
public static void queue(ScanOnDemandTask task)
task
- the task to do.protected void startQueue()
public void queueTask(ScanOnDemandTask task)
task
- the task to do.AbstractExecutorService.submit(Runnable)
public static void shutdown()
#WAIT_FOR_JOBS_SHUTDOWN_TIMEOUT
seconds for all jobs to finish
before forcefully shutting them down.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |