Interface MaintenanceProcess
-
public interface MaintenanceProcess
Deprecated.since 2023.05, useBackupProcess
instead
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
cancel()
Deprecated.Request the process to cancel.java.lang.Exception[]
getExceptions()
Deprecated.Returns exceptions that occurred during process performing.int
getProcessId()
Deprecated.Returns the maintenance process identifier.MaintenanceProcessKind
getProcessKind()
Deprecated.Returns kind of this process.ProgressInfo
getProgressInfo()
Deprecated.Returns the progress in percents and a name of phase.ProgressStatus
getProgressStatus()
Deprecated.Returns the progress status of the process.boolean
hasExceptions()
Deprecated.Determines whether exceptions occurred during process performing.boolean
isFinished()
Deprecated.Determines whether the process has already performed its operations or has been stopped.
-
-
-
Method Detail
-
getProcessKind
@NotNull MaintenanceProcessKind getProcessKind()
Deprecated.Returns kind of this process.
-
getProcessId
int getProcessId()
Deprecated.Returns the maintenance process identifier. This identifier is an internal identified of the maintenance process, it doesn't relate to operating system process identifiers or something else.- Returns:
- the maintenance process identifier.
-
getProgressStatus
@NotNull ProgressStatus getProgressStatus()
Deprecated.Returns the progress status of the process.- Returns:
- the progress status.
-
getProgressInfo
@NotNull ProgressInfo getProgressInfo()
Deprecated.Returns the progress in percents and a name of phase.- Returns:
- the progress in percents and a name of phase.
-
cancel
void cancel()
Deprecated.Request the process to cancel.
-
hasExceptions
boolean hasExceptions()
Deprecated.Determines whether exceptions occurred during process performing.- Returns:
- true if there are exceptions.
-
getExceptions
java.lang.Exception[] getExceptions()
Deprecated.Returns exceptions that occurred during process performing.- Returns:
- occurred exceptions in time order.
-
isFinished
boolean isFinished()
Deprecated.Determines whether the process has already performed its operations or has been stopped. If this functions has returned true, then this process will never do something more. And, the result is not depended on whether the process has ended successfully or with errors.- Returns:
- true means all possible works have already done.
- Since:
- 7.1
-
-