Package org.nuxeo.runtime.migration
Class MigrationService.MigrationStatus
- java.lang.Object
-
- org.nuxeo.runtime.migration.MigrationService.MigrationStatus
-
- Enclosing interface:
- MigrationService
public static class MigrationService.MigrationStatus extends Object
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
Fields Modifier and Type Field Description protected longpingTimeprotected StringprogressMessageprotected longprogressNumprotected longprogressTotalprotected longstartTimeprotected Stringstateprotected Stringstep
-
Constructor Summary
Constructors Constructor Description MigrationStatus(String state)MigrationStatus(String step, long startTime, long pingTime, String progressMessage, long progressNum, long progressTotal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetPingTime()Gets the ping time of the migration, if it's running.StringgetProgressMessage()Gets the progress message of the migration, if it's running.longgetProgressNum()Gets the progress "num" of the migration, if it's running.longgetProgressTotal()Gets the progress "total" of the migration, if it's running.longgetStartTime()Gets the start time of the migration, if it's running.StringgetState()Gets the state of the migration, if it's not running.StringgetStep()Gets the step of the migration, if it's running.booleanisRunning()Checks whether the migration is running.
-
-
-
Field Detail
-
startTime
protected final long startTime
-
pingTime
protected final long pingTime
-
progressMessage
protected final String progressMessage
-
progressNum
protected final long progressNum
-
progressTotal
protected final long progressTotal
-
-
Constructor Detail
-
MigrationStatus
public MigrationStatus(String state)
-
MigrationStatus
public MigrationStatus(String step, long startTime, long pingTime, String progressMessage, long progressNum, long progressTotal)
-
-
Method Detail
-
isRunning
public boolean isRunning()
Checks whether the migration is running.- Returns:
trueif a migration is running, orfalseotherwise
-
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
public String 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.
-
-