Package org.jenkinsci.plugins.cloudstats
Class TrackedPlannedNode
java.lang.Object
hudson.slaves.NodeProvisioner.PlannedNode
org.jenkinsci.plugins.cloudstats.TrackedPlannedNode
- All Implemented Interfaces:
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:
-
Field Summary
Fields inherited from class hudson.slaves.NodeProvisioner.PlannedNode
displayName, future, numExecutors
-
Constructor Summary
ConstructorsConstructorDescriptionTrackedPlannedNode
(ProvisioningActivity.Id id, int numExecutors, Future<Node> future) -
Method Summary
Methods inherited from class hudson.slaves.NodeProvisioner.PlannedNode
spent
-
Constructor Details
-
TrackedPlannedNode
public TrackedPlannedNode(@NonNull ProvisioningActivity.Id id, int numExecutors, @NonNull Future<Node> future)
-
-
Method Details
-
getId
Description copied from interface:TrackedItem
Get unique identifier of the provisioning item.- Specified by:
getId
in interfaceTrackedItem
- 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.
-