Package org.jenkinsci.plugins.cloudstats
Class ProvisioningActivity.Id
java.lang.Object
org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ProvisioningActivity
Activity identifier.
Used to a) uniquely identify the activity throughout the lifecycle and b) map Computer/Node/PlannedNode to its cloud/template.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Name of the cloud that initiated this activity.int
Unique fingerprint of this activity.Name of the agent to be provisioned by this activity.Name of the template used to provision this agent.int
hashCode()
Clone the Id with different name set.toString()
-
Constructor Details
-
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
-
Id
-
-
Method Details
-
named
Clone the Id with different name set.The created Id is equal to this one.
-
getCloudName
Name of the cloud that initiated this activity. -
getTemplateName
Name of the template used to provision this agent.null
if no further distinction is needed except for cloud name. -
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. -
equals
-
hashCode
public int hashCode() -
toString
-