Class LegacyMonitorData.LegacyBuildStorage

  • Enclosing class:
    LegacyMonitorData

    public static class LegacyMonitorData.LegacyBuildStorage
    extends Object
    Data stored in the monitor Information about the build that would fail in Production mode.
    • Constructor Detail

      • LegacyBuildStorage

        public LegacyBuildStorage​(@NonNull
                                  String jobFullNameFrom,
                                  @NonNull
                                  String jobFullNameTo,
                                  @NonNull
                                  String username,
                                  @NonNull
                                  Date lastBuildDate)
        ctor.
        Parameters:
        jobFullNameFrom - the name of the source job.
        jobFullNameTo - the name of the destination job.
        username - the user name that the destination job ran as.
        lastBuildDate - the build timestamp.
    • Method Detail

      • getJobFullNameFrom

        @NonNull
        public String getJobFullNameFrom()
        Returns:
        the name of the source job.
      • getJobFullNameTo

        @NonNull
        public String getJobFullNameTo()
        Returns:
        the name of the destination job.
      • getUsername

        @NonNull
        public String getUsername()
        Returns:
        the user name that the destination job ran as.
      • getLastBuildDate

        @NonNull
        public Date getLastBuildDate()
        Returns:
        the build timestamp.
      • getNumOfBuild

        public int getNumOfBuild()
        Returns:
        the number of builds that would fail in Production mode.
      • addNewBuild

        @NonNull
        public LegacyMonitorData.LegacyBuildStorage addNewBuild​(String username,
                                                                Date lastBuildDate)
        Create a new build information.
        Parameters:
        username - the user name that the destination job ran as.
        lastBuildDate - the build timestamp.
        Returns:
        data to store in the monitor.
      • renameJobFrom

        public LegacyMonitorData.LegacyBuildStorage renameJobFrom​(String newJobFullName)
        Create a new build information renaming the source job.
        Parameters:
        newJobFullName - the new name of the source job.
        Returns:
        data to store in the monitor.
      • renameJobTo

        public LegacyMonitorData.LegacyBuildStorage renameJobTo​(String newJobFullName)
        Create a new build information renaming the destination job.
        Parameters:
        newJobFullName - the new name of the destination job.
        Returns:
        data to store in the monitor.