Class ProjectMovePass
java.lang.Object
org.exoplatform.processes.model.ProjectMovePass
What one pass of a project move did, counted as it runs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe failing task ids a pass names at most -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcountFailed(long taskId) Counts a request that failed to move, naming the first 20 ones.voidCounts a request moved by the pass.intlongintgetMoved()voidsetLastRenewal(long lastRenewal)
-
Field Details
-
LOGGED_FAILURES
public static final int LOGGED_FAILURESThe 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
-
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
-