Class RestoreProcessor
- java.lang.Object
-
- jetbrains.buildServer.serverSide.maintenance.RestoreProcessor
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Exception[]
getExceptions()
Returns exceptions that occurred during process performing.int
getProcessId()
Returns the maintenance process identifier.ProgressStatus
getProgressStatus()
boolean
hasExceptions()
Determines whether errors occurred during process performing.boolean
isFinished()
Determines that the process already has finished or has been stopped or never will run.static int
readBackupDatabaseVersion(ZipReader zip)
static SchemaDef
readBackupSchema(ZipReader zip)
static int
readBackupZipVersion(ZipReader zip)
void
run()
-
-
-
Method Detail
-
readBackupSchema
@NotNull public static SchemaDef readBackupSchema(@NotNull ZipReader zip) throws IOException
- Throws:
IOException
-
readBackupZipVersion
public static int readBackupZipVersion(ZipReader zip)
-
readBackupDatabaseVersion
public static int readBackupDatabaseVersion(ZipReader zip)
-
getProgressStatus
@NotNull public ProgressStatus getProgressStatus()
-
getProcessId
public final int getProcessId()
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.
-
isFinished
public boolean isFinished()
Determines that the process already has finished or has been stopped or never will run. In other words, the associated thread (if it was) already has completed its work.- Returns:
- is stopped.
-
getExceptions
@NotNull public final Exception[] getExceptions()
Returns exceptions that occurred during process performing.- Returns:
- occurred exceptions in time order.
-
hasExceptions
public final boolean hasExceptions()
Determines whether errors occurred during process performing.- Returns:
- true if there are exceptions.
-
cancel
public final void cancel()
-
-