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 boolean
myIncludeBuildLogs
protected boolean
myIncludeConfiguration
protected boolean
myIncludeDatabase
protected boolean
myIncludePersonalChanges
protected boolean
myIncludeSupplementaryData
-
Constructor Summary
Constructors Constructor Description OperationConfig()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract String
getFileName()
The backup file name (defined by user).Set<String>
getOnlyTableNames()
abstract String
getResultFileName()
The backup file name (after preprocessing).Set<String>
getSkipTableNames()
int
hashCode()
boolean
isIncludeBuildLogs()
Determines whether build logs are included to backup/restore.boolean
isIncludeConfiguration()
Determines whether the server configuration is included to backup/restore.boolean
isIncludeDatabase()
Determines whether the database is included to backup/restore.boolean
isIncludePersonalChanges()
Determines whether personal changes are included to backup/restore.boolean
isIncludeSupplementaryData()
Determines whether the supplementary data (plugins' data) is included to backup/restore.boolean
isSkipCreateIndices()
void
setIncludeBuildLogs(boolean includeBuildLogs)
Specifies whether to backup/restore build logs.void
setIncludeConfiguration(boolean includeConfiguration)
Specifies whether to backup/restore server configuration.void
setIncludeDatabase(boolean includeDatabase)
Specifies whether to backup/restore the database.void
setIncludePersonalChanges(boolean includePersonalChanges)
Specifies whether to backup/restore personal changes.void
setIncludeSupplementaryData(boolean includeSupplementaryData)
Specifies whether to backup/restore the supplementary data (plugins' data).void
setOnlyTableNames(String onlyTableNames)
void
setOnlyTableNames(Set<String> onlyTableNames)
void
setSkipCreateIndices(boolean skipCreateIndices)
void
setSkipTableNames(String skipTableNames)
void
setSkipTableNames(Set<String> skipTableNames)
String
toString()
-
-
-
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)
-
-