Class OperationConfig
- java.lang.Object
-
- jetbrains.buildServer.serverSide.maintenance.OperationConfig
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
BackupConfig
public abstract class OperationConfig extends java.lang.Object implements java.io.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 java.lang.String
getFileName()
The backup file name (defined by user).java.util.Set<java.lang.String>
getOnlyTableNames()
abstract java.lang.String
getResultFileName()
The backup file name (after preprocessing).java.util.Set<java.lang.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(java.lang.String onlyTableNames)
void
setOnlyTableNames(java.util.Set<java.lang.String> onlyTableNames)
void
setSkipCreateIndices(boolean skipCreateIndices)
void
setSkipTableNames(java.lang.String skipTableNames)
void
setSkipTableNames(java.util.Set<java.lang.String> skipTableNames)
java.lang.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 java.lang.String getFileName()
The backup file name (defined by user).- Returns:
- file name.
-
getResultFileName
public abstract java.lang.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.
-
getOnlyTableNames
@Nullable public java.util.Set<java.lang.String> getOnlyTableNames()
-
setOnlyTableNames
public void setOnlyTableNames(@Nullable java.lang.String onlyTableNames)
-
setOnlyTableNames
public void setOnlyTableNames(@Nullable java.util.Set<java.lang.String> onlyTableNames)
-
getSkipTableNames
@Nullable public java.util.Set<java.lang.String> getSkipTableNames()
-
setSkipTableNames
public void setSkipTableNames(@Nullable java.lang.String skipTableNames)
-
setSkipTableNames
public void setSkipTableNames(@Nullable java.util.Set<java.lang.String> skipTableNames)
-
isSkipCreateIndices
public boolean isSkipCreateIndices()
-
setSkipCreateIndices
public void setSkipCreateIndices(boolean skipCreateIndices)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-