Package org.nuxeo.runtime.migration
Class MigrationService.MigrationStatus
java.lang.Object
org.nuxeo.runtime.migration.MigrationService.MigrationStatus
- Enclosing interface:
- MigrationService
The status of a migration.
A migration is either running or not. When not running, it just has a state.
When running, it has a step, start time, and progress information (message, num, total, last ping time).
- Since:
- 9.3
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMigrationStatus
(String state) MigrationStatus
(String step, long startTime, long pingTime, String progressMessage, long progressNum, long progressTotal) MigrationStatus
(String step, long startTime, long pingTime, String progressMessage, long progressNum, long progressTotal, String errorMessage, int errorCode) MigrationStatus
(String state, String errorMessage, int errorCode) -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the error code if any.Gets the error message if any.long
Gets the ping time of the migration, if it's running.Gets the progress message of the migration, if it's running.long
Gets the progress "num" of the migration, if it's running.long
Gets the progress "total" of the migration, if it's running.long
Gets the start time of the migration, if it's running.getState()
Gets the state of the migration, if it's not running.getStep()
Gets the step of the migration, if it's running.boolean
hasError()
Is there any error ?boolean
Checks whether the migration is running.toString()
-
Field Details
-
state
-
step
-
startTime
protected final long startTime -
pingTime
protected final long pingTime -
progressMessage
-
progressNum
protected final long progressNum -
progressTotal
protected final long progressTotal -
errorMessage
- Since:
- 2023.3
-
errorCode
protected final int errorCode- Since:
- 2023.3
-
-
Constructor Details
-
MigrationStatus
-
MigrationStatus
-
MigrationStatus
-
MigrationStatus
-
-
Method Details
-
toString
-
isRunning
public boolean isRunning()Checks whether the migration is running.- Returns:
true
if a migration is running, orfalse
otherwise
-
getState
Gets the state of the migration, if it's not running. -
getStep
Gets the step of the migration, if it's running. -
getStartTime
public long getStartTime()Gets the start time of the migration, if it's running. -
getPingTime
public long getPingTime()Gets the ping time of the migration, if it's running. -
getProgressMessage
Gets the progress message of the migration, if it's running. -
getProgressNum
public long getProgressNum()Gets the progress "num" of the migration, if it's running. -
getProgressTotal
public long getProgressTotal()Gets the progress "total" of the migration, if it's running. -
getErrorMessage
Gets the error message if any.- Since:
- 2023.3
-
getErrorCode
public int getErrorCode()Gets the error code if any.- Since:
- 2023.3
-
hasError
public boolean hasError()Is there any error ?- Since:
- 2023.3
-