Class OperationConfig
- java.lang.Object
-
- jetbrains.buildServer.serverSide.maintenance.OperationConfig
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BackupConfig,RepairConfig,RestoreConfig
public abstract class OperationConfig extends Object implements Serializable
Common settings for both backup and restore.- Since:
- 8.1
- Author:
- Leonid Bushuev from JetBrains
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanmyIncludeBuildLogsprotected booleanmyIncludeConfigurationprotected booleanmyIncludeDatabaseprotected booleanmyIncludePersonalChangesprotected booleanmyIncludeSupplementaryData
-
Constructor Summary
Constructors Constructor Description OperationConfig()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetFileName()The backup file name (defined by user).Set<String>getOnlyTableNames()abstract StringgetResultFileName()The backup file name (after preprocessing).Set<String>getSkipTableNames()inthashCode()booleanisIncludeBuildLogs()Determines whether build logs are included to backup/restore.booleanisIncludeConfiguration()Determines whether the server configuration is included to backup/restore.booleanisIncludeDatabase()Determines whether the database is included to backup/restore.booleanisIncludePersonalChanges()Determines whether personal changes are included to backup/restore.booleanisIncludeSupplementaryData()Determines whether the supplementary data (plugins' data) is included to backup/restore.booleanisSkipCreateIndices()voidsetIncludeBuildLogs(boolean includeBuildLogs)Specifies whether to backup/restore build logs.voidsetIncludeConfiguration(boolean includeConfiguration)Specifies whether to backup/restore server configuration.voidsetIncludeDatabase(boolean includeDatabase)Specifies whether to backup/restore the database.voidsetIncludePersonalChanges(boolean includePersonalChanges)Specifies whether to backup/restore personal changes.voidsetIncludeSupplementaryData(boolean includeSupplementaryData)Specifies whether to backup/restore the supplementary data (plugins' data).voidsetOnlyTableNames(String onlyTableNames)voidsetOnlyTableNames(Set<String> onlyTableNames)voidsetSkipCreateIndices(boolean skipCreateIndices)voidsetSkipTableNames(String skipTableNames)voidsetSkipTableNames(Set<String> skipTableNames)StringtoString()
-
-
-
Field Detail
-
myIncludeDatabase
protected boolean myIncludeDatabase
-
myIncludeConfiguration
protected boolean myIncludeConfiguration
-
myIncludeSupplementaryData
protected boolean myIncludeSupplementaryData
-
myIncludeBuildLogs
protected boolean myIncludeBuildLogs
-
myIncludePersonalChanges
protected boolean myIncludePersonalChanges
-
-
Method Detail
-
getFileName
public abstract String getFileName()
The backup file name (defined by user).- Returns:
- file name.
-
getResultFileName
public abstract String getResultFileName()
The backup file name (after preprocessing).- Returns:
- file name (absolute).
-
isIncludeDatabase
public boolean isIncludeDatabase()
Determines whether the database is included to backup/restore.- Returns:
- the database is included.
-
setIncludeDatabase
public void setIncludeDatabase(boolean includeDatabase)
Specifies whether to backup/restore the database.
-
isIncludeConfiguration
public boolean isIncludeConfiguration()
Determines whether the server configuration is included to backup/restore.- Returns:
- the server configuration is included.
-
setIncludeConfiguration
public void setIncludeConfiguration(boolean includeConfiguration)
Specifies whether to backup/restore server configuration.
-
isIncludeSupplementaryData
public boolean isIncludeSupplementaryData()
Determines whether the supplementary data (plugins' data) is included to backup/restore.- Returns:
- the supplementary data (plugins' data) is included.
- Since:
- 8.1
-
setIncludeSupplementaryData
public void setIncludeSupplementaryData(boolean includeSupplementaryData)
Specifies whether to backup/restore the supplementary data (plugins' data).- Since:
- 8.1
-
isIncludeBuildLogs
public boolean isIncludeBuildLogs()
Determines whether build logs are included to backup/restore.- Returns:
- build logs are included.
-
setIncludeBuildLogs
public void setIncludeBuildLogs(boolean includeBuildLogs)
Specifies whether to backup/restore build logs.
-
isIncludePersonalChanges
public boolean isIncludePersonalChanges()
Determines whether personal changes are included to backup/restore.- Returns:
- personal changes are included.
-
setIncludePersonalChanges
public void setIncludePersonalChanges(boolean includePersonalChanges)
Specifies whether to backup/restore personal changes.
-
setOnlyTableNames
public void setOnlyTableNames(@Nullable String onlyTableNames)
-
setSkipTableNames
public void setSkipTableNames(@Nullable String skipTableNames)
-
isSkipCreateIndices
public boolean isSkipCreateIndices()
-
setSkipCreateIndices
public void setSkipCreateIndices(boolean skipCreateIndices)
-
-