public abstract class QueueItemMetricsListener extends Object implements ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
QueueItemMetricsListener() |
Modifier and Type | Method and Description |
---|---|
static ExtensionList<QueueItemMetricsListener> |
all()
All the registered
QueueItemMetricsListener instances. |
static void |
notifyCancelled(QueueItemMetricsEvent event)
Notify all listeners about the cancellation of an item.
|
static void |
notifyFinished(QueueItemMetricsEvent event)
Notify all listeners about an item having finished execution.
|
static void |
notifyQueued(QueueItemMetricsEvent event)
Notify all listeners about the enqueuing of an item.
|
static void |
notifyStarted(QueueItemMetricsEvent event)
Notify all listeners about an item having started execution.
|
void |
onCancelled(QueueItemMetricsEvent event)
Called at most once for each
Queue.Item some time after it is cancelled from the queue. |
void |
onFinished(QueueItemMetricsEvent event)
Called at most once for each
Queue.Item some time after it finishes executing. |
void |
onQueued(QueueItemMetricsEvent event)
Called at most once for each
Queue.Item some time after it enters the queue. |
void |
onStarted(QueueItemMetricsEvent event)
Called at most once for each
Queue.Item some time after it leaves the queue and starts executing. |
public void onQueued(QueueItemMetricsEvent event)
Queue.Item
some time after it enters the queue.event
- the event.public void onCancelled(QueueItemMetricsEvent event)
Queue.Item
some time after it is cancelled from the queue.event
- the event.public void onStarted(QueueItemMetricsEvent event)
Queue.Item
some time after it leaves the queue and starts executing.event
- the event.public void onFinished(QueueItemMetricsEvent event)
Queue.Item
some time after it finishes executing.event
- the event.public static ExtensionList<QueueItemMetricsListener> all()
QueueItemMetricsListener
instances.QueueItemMetricsListener
instances.public static void notifyQueued(QueueItemMetricsEvent event)
event
- the event.public static void notifyCancelled(QueueItemMetricsEvent event)
event
- the event.public static void notifyStarted(QueueItemMetricsEvent event)
event
- the event.public static void notifyFinished(QueueItemMetricsEvent event)
event
- the event.Copyright © 2016–2019. All rights reserved.