Package org.jenkinsci.plugins.cloudstats
Class ProvisioningActivity.Id
- java.lang.Object
-
- org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ProvisioningActivity
public static final class ProvisioningActivity.Id extends Object implements Serializable
Activity identifier.Used to a) uniquely identify the activity throughout the lifecycle and b) map Computer/Node/PlannedNode to its cloud/template.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getCloudName()
Name of the cloud that initiated this activity.int
getFingerprint()
Unique fingerprint of this activity.String
getNodeName()
Name of the agent to be provisioned by this activity.String
getTemplateName()
Name of the template used to provision this agent.int
hashCode()
ProvisioningActivity.Id
named(String name)
Clone the Id with different name set.String
toString()
-
-
-
Constructor Detail
-
Id
public Id(@NonNull String cloudName, @CheckForNull String templateName, @CheckForNull String nodeName)
- Parameters:
cloudName
- Name of the cloud that initiated this activity.templateName
- Name of the template that initiated this activity.nodeName
- Name of the agent to be provisioned. Of the name of the agent is not known ahead, it can benull
cloud stats plugin will update it once it will be known.
-
Id
public Id(@NonNull String cloudName)
-
-
Method Detail
-
named
@NonNull public ProvisioningActivity.Id named(@NonNull String name)
Clone the Id with different name set.The created Id is equal to this one.
-
getCloudName
@NonNull public String getCloudName()
Name of the cloud that initiated this activity.
-
getTemplateName
@CheckForNull public String getTemplateName()
Name of the template used to provision this agent.null
if no further distinction is needed except for cloud name.
-
getNodeName
@CheckForNull public String getNodeName()
Name of the agent to be provisioned by this activity.null
if not known ahead.
-
getFingerprint
public int getFingerprint()
Unique fingerprint of this activity.
-
-