Class ProjectMovePass

java.lang.Object
org.exoplatform.processes.model.ProjectMovePass

public class ProjectMovePass extends Object
What one pass of a project move did, counted as it runs.
  • Field Details

    • LOGGED_FAILURES

      public static final int LOGGED_FAILURES
      The failing task ids a pass names at most
      See Also:
  • Constructor Details

    • ProjectMovePass

      public ProjectMovePass()
  • Method Details

    • countMoved

      public void countMoved()
      Counts a request moved by the pass.
    • countFailed

      public void countFailed(long taskId)
      Counts a request that failed to move, naming the first 20 ones.
      Parameters:
      taskId - the request's task id
    • getMoved

      public int getMoved()
      Returns:
      the requests the pass moved
    • getFailed

      public int getFailed()
      Returns:
      the requests that failed to move
    • getFailedIds

      public List<Long> getFailedIds()
      Returns:
      the first ids of the requests that failed to move
    • getLastRenewal

      public long getLastRenewal()
      Returns:
      when the pass last renewed its claim, on a monotonic clock in nanoseconds
    • setLastRenewal

      public void setLastRenewal(long lastRenewal)
      Parameters:
      lastRenewal - when the pass last renewed its claim, on a monotonic clock in nanoseconds