Class MirrorTask

java.lang.Object
com.linecorp.centraldogma.server.mirror.MirrorTask

public final class MirrorTask extends Object
A task to mirror a repository.
  • Constructor Details

    • MirrorTask

      public MirrorTask(Mirror mirror, User triggeredBy, Instant triggeredTime, @Nullable String currentZone, boolean scheduled)
      Creates a new instance.
  • Method Details

    • mirror

      public Mirror mirror()
      Returns the Mirror to be executed.
    • project

      public Project project()
      Returns the Project where the Mirror belongs to.
    • triggeredBy

      public User triggeredBy()
      Returns the user who triggered the Mirror.
    • triggeredTime

      public Instant triggeredTime()
      Returns the time when the Mirror was triggered.
    • currentZone

      @Nullable public String currentZone()
      Returns the current zone where the Mirror is running. This value is null if the ZoneConfig is not available.
    • scheduled

      public boolean scheduled()
      Returns whether the Mirror is triggered by a scheduler.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object