Class TrackedPlannedNode

java.lang.Object
hudson.slaves.NodeProvisioner.PlannedNode
org.jenkinsci.plugins.cloudstats.TrackedPlannedNode
All Implemented Interfaces:
TrackedItem

public class TrackedPlannedNode extends NodeProvisioner.PlannedNode implements TrackedItem
Convenient subclass of NodeProvisioner.PlannedNode to simplify tracking the activity.

Cloud.provision(Label, int) needs to return NodeProvisioner.PlannedNode implementing TrackedItem to have the provisioning activity tracked.

Author:
ogondza.
See Also:
  • Constructor Details

  • Method Details

    • getId

      @NonNull public ProvisioningActivity.Id getId()
      Description copied from interface: TrackedItem
      Get unique identifier of the provisioning item.
      Specified by:
      getId in interface TrackedItem
      Returns:
      The identifier. Can be null in case the item that is generally tracked opts-out of tracking. Primary use is to allow null for items that serialized before plugin was integrated and have no id to provide. Implementations can use this disable tracking selectively on per-item basis.