Class UpgradeJob

  • All Implemented Interfaces:
    java.lang.Runnable, Job

    public class UpgradeJob
    extends java.lang.Object
    implements Job
    Author:
    Alex
    • Constructor Detail

      • UpgradeJob

        public UpgradeJob​(java.util.UUID id,
                          BagQueryUpgrade upgrade)
        Parameters:
        id - uuid
        upgrade - upgrade
    • Method Detail

      • run

        public void run()
        Description copied from interface: Job
        run job
        Specified by:
        run in interface Job
        Specified by:
        run in interface java.lang.Runnable
      • wasSuccessful

        public boolean wasSuccessful()
        Specified by:
        wasSuccessful in interface Job
        Returns:
        true if successful
      • getError

        public java.lang.Exception getError()
        Specified by:
        getError in interface Job
        Returns:
        error
      • getUid

        public java.lang.String getUid()
        Specified by:
        getUid in interface Job
        Returns:
        the uid
      • getType

        public java.lang.String getType()
        Specified by:
        getType in interface Job
        Returns:
        type
      • getStartedAt

        public java.util.Date getStartedAt()
        Specified by:
        getStartedAt in interface Job
        Returns:
        date started at