Class CloudStatistics.ProvisioningListener

  • All Implemented Interfaces:
    ExtensionPoint
    Enclosing class:
    CloudStatistics

    @Extension
    public static class CloudStatistics.ProvisioningListener
    extends CloudProvisioningListener
    Listen to ongoing provisioning activities.

    All activities that are triggered by Jenkins queue load (those that goes through NodeProvisioner) are reported by Jenkins core. This api needs to be called by plugin if and only if the agents are provisioned differently.

    Implementation note: onComplete and onFailure are being called while holding the queue lock from NodeProvisioner, so the work is extracted to separate thread.