public static class MigrationService.MigrationStatus extends Object
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).
Modifier and Type | Field and Description |
---|---|
protected long |
pingTime |
protected String |
progressMessage |
protected long |
progressNum |
protected long |
progressTotal |
protected long |
startTime |
protected String |
state |
protected String |
step |
Constructor and Description |
---|
MigrationStatus(String state) |
MigrationStatus(String step,
long startTime,
long pingTime,
String progressMessage,
long progressNum,
long progressTotal) |
Modifier and Type | Method and Description |
---|---|
long |
getPingTime()
Gets the ping time of the migration, if it's running.
|
String |
getProgressMessage()
Gets the progress message of the migration, if it's running.
|
long |
getProgressNum()
Gets the progress "num" of the migration, if it's running.
|
long |
getProgressTotal()
Gets the progress "total" of the migration, if it's running.
|
long |
getStartTime()
Gets the start time of the migration, if it's running.
|
String |
getState()
Gets the state of the migration, if it's not running.
|
String |
getStep()
Gets the step of the migration, if it's running.
|
boolean |
isRunning()
Checks whether the migration is running.
|
protected final long startTime
protected final long pingTime
protected final String progressMessage
protected final long progressNum
protected final long progressTotal
public MigrationStatus(String state)
public MigrationStatus(String step, long startTime, long pingTime, String progressMessage, long progressNum, long progressTotal)
public boolean isRunning()
true
if a migration is running, or false
otherwisepublic long getStartTime()
public long getPingTime()
public String getProgressMessage()
public long getProgressNum()
public long getProgressTotal()
Copyright © 2018 Nuxeo. All rights reserved.