Package org.jenkinsci.plugins.cloudstats
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 ofNodeProvisioner.PlannedNode
to simplify tracking the activity.Cloud.provision(Label, int)
needs to returnNodeProvisioner.PlannedNode
implementingTrackedItem
to have the provisioning activity tracked.- Author:
- ogondza.
- See Also:
TrackedItem
-
-
Field Summary
-
Fields inherited from class hudson.slaves.NodeProvisioner.PlannedNode
displayName, future, numExecutors
-
-
Constructor Summary
Constructors Constructor Description TrackedPlannedNode(ProvisioningActivity.Id id, int numExecutors, Future<Node> future)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProvisioningActivity.Id
getId()
Get unique identifier of the provisioning item.-
Methods inherited from class hudson.slaves.NodeProvisioner.PlannedNode
spent
-
-
-
-
Constructor Detail
-
TrackedPlannedNode
public TrackedPlannedNode(@NonNull ProvisioningActivity.Id id, int numExecutors, @NonNull Future<Node> future)
-
-
Method Detail
-
getId
@NonNull public ProvisioningActivity.Id 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.
-
-