Class 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
    • 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 be null cloud stats plugin will update it once it will be known.
      • Id

        public Id​(@NonNull
                  String cloudName,
                  @CheckForNull
                  String templateName)
      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object