Class RestoreConfig
- java.lang.Object
-
- jetbrains.buildServer.serverSide.maintenance.OperationConfig
-
- jetbrains.buildServer.serverSide.maintenance.RestoreConfig
-
- All Implemented Interfaces:
Serializable
public final class RestoreConfig extends OperationConfig implements Serializable
Restoring configuration.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.serverSide.maintenance.OperationConfig
myIncludeBuildLogs, myIncludeConfiguration, myIncludeDatabase, myIncludePersonalChanges, myIncludeSupplementaryData
-
-
Constructor Summary
Constructors Constructor Description RestoreConfig()
Empty constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFileName()
The path and name of an existent backup file to restore data from.String
getResultFileName()
The backup file name (after preprocessing).TableImportTuning
getTuning()
boolean
isMissingOnly()
boolean
isPre81Import()
boolean
isToRestoreDatabasePropertiesFile()
Restore also the 'database.properties' file if one exists.void
setFileName(String fileName)
Sets thegetFileName()
.void
setMissingOnly(boolean missingOnly)
void
setPre81Import(boolean pre81Import)
void
setToRestoreDatabasePropertiesFile(boolean toRestoreDatabasePropertiesFile)
Should restore also the 'database.properties' file if one exists.void
setTuning(TableImportTuning tuning)
-
Methods inherited from class jetbrains.buildServer.serverSide.maintenance.OperationConfig
getOnlyTableNames, getSkipTableNames, hashCode, isIncludeBuildLogs, isIncludeConfiguration, isIncludeDatabase, isIncludePersonalChanges, isIncludeSupplementaryData, isSkipCreateIndices, setIncludeBuildLogs, setIncludeConfiguration, setIncludeDatabase, setIncludePersonalChanges, setIncludeSupplementaryData, setOnlyTableNames, setOnlyTableNames, setSkipCreateIndices, setSkipTableNames, setSkipTableNames, toString
-
-
-
-
Method Detail
-
getFileName
@NotNull public String getFileName()
The path and name of an existent backup file to restore data from. Optionally without '.zip' extension.- Specified by:
getFileName
in classOperationConfig
- Returns:
- the name of backup file.
-
setFileName
public void setFileName(String fileName)
Sets thegetFileName()
.
-
getResultFileName
@NotNull public String getResultFileName()
Description copied from class:OperationConfig
The backup file name (after preprocessing).- Specified by:
getResultFileName
in classOperationConfig
- Returns:
- file name (absolute).
-
isPre81Import
public boolean isPre81Import()
-
setPre81Import
public void setPre81Import(boolean pre81Import)
-
isMissingOnly
public boolean isMissingOnly()
-
setMissingOnly
public void setMissingOnly(boolean missingOnly)
-
isToRestoreDatabasePropertiesFile
public boolean isToRestoreDatabasePropertiesFile()
Restore also the 'database.properties' file if one exists.- Returns:
- restore it.
- See Also:
DatabasePropertiesFile.DATABASE_PROPERTIES_FILE_NAME
-
setToRestoreDatabasePropertiesFile
public void setToRestoreDatabasePropertiesFile(boolean toRestoreDatabasePropertiesFile)
Should restore also the 'database.properties' file if one exists.- Parameters:
toRestoreDatabasePropertiesFile
- restore it.- See Also:
DatabasePropertiesFile.DATABASE_PROPERTIES_FILE_NAME
-
getTuning
@Nullable public TableImportTuning getTuning()
-
setTuning
public void setTuning(@Nullable TableImportTuning tuning)
-
-