|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.serverSide.maintenance.BackupConfig
public class BackupConfig
Backup configuration.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_BACKUP_CHARSET_NAME
Default backup character set. |
static java.lang.String |
DEFAULT_BACKUP_FILE_NAME
Default short file name fo backup. |
static java.text.SimpleDateFormat |
TIMESTAMP_SUFFIX_FORMATTER
|
| Constructor Summary | |
|---|---|
BackupConfig()
Empty constructor. |
|
BackupConfig(BackupConfig config)
Copy constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getCharsetName()
Returns the character set in which text from database will be saved. |
java.lang.String |
getFileName()
Returns the path and name of file to backup to; without automatically added timestamp and without suffix/extension. |
java.lang.String |
getResultFileName()
Returns the result file name, with timestamp suffix if appicable and file name extension. |
java.util.Date |
getTimestamp()
Timestamp when the file name has been specified; this timestamp is used for generate timestamp suffix. |
int |
hashCode()
|
boolean |
isAddTimestampSuffix()
Determines whether the backup process will add the timestamp suffix to the file name. |
boolean |
isCharsetSpecified()
Determines whether the character set is specified. |
boolean |
isIncludeBuildLogs()
Determines whether build logs are included into backup. |
boolean |
isIncludeConfiguration()
Determines whether the server configuration is included into backup. |
boolean |
isIncludeDatabase()
Determines whether the database is included into backup. |
boolean |
isIncludePersonalChanges()
Determines whether personal changes are included into backup. |
boolean |
isIncludeRunningBuilds()
Determines whether the running builds should be included. |
void |
setAddTimestampSuffix(boolean addTimestampSuffix)
Sets whether a timestamp suffux should be added. |
void |
setCharsetName(java.lang.String charsetName)
Specifies the character set. |
void |
setFileName(java.lang.String fileName)
Sets the file name. |
void |
setFileName(java.lang.String fileName,
boolean addTimestampSuffix)
Specifies a file where the system should backup their data. |
void |
setIncludeBuildLogs(boolean includeBuildLogs)
Specifies whether to include build logs into backup or not. |
void |
setIncludeConfiguration(boolean includeConfiguration)
Specifies whether to include server configuration into backup or not. |
void |
setIncludeDatabase(boolean includeDatabase)
Specifies whether to include database into backup or not. |
void |
setIncludePersonalChanges(boolean includePersonalChanges)
Specifies whether to include personal changes into backup or not. |
void |
setIncludeRunningBuilds(boolean includeRunningBuilds)
Specifies whether the running builds should be included. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_BACKUP_FILE_NAME
public static final java.text.SimpleDateFormat TIMESTAMP_SUFFIX_FORMATTER
public static final java.lang.String DEFAULT_BACKUP_CHARSET_NAME
| Constructor Detail |
|---|
public BackupConfig()
public BackupConfig(@NotNull
BackupConfig config)
| Method Detail |
|---|
public void setFileName(@Nullable
java.lang.String fileName,
boolean addTimestampSuffix)
fileName - name of file where to backup, without file name extension.
This name can be relative to the [TeamCity_data_dir/backup] or absolute.
Null or an empty string mean default file name.addTimestampSuffix - whether to add timestamp suffix.getResultFileName()
public void setFileName(@NotNull
java.lang.String fileName)
getFileName() and setFileName(String, boolean).
fileName - @NotNull public java.lang.String getFileName()
The name can be absolute or relative. In case of relative it will be relative the TeamCity_Data_Dir/backup directory.
public boolean isAddTimestampSuffix()
public void setAddTimestampSuffix(boolean addTimestampSuffix)
addTimestampSuffix - whether a timestamp suffux should be added.@NotNull public java.lang.String getResultFileName()
public boolean isIncludeDatabase()
public void setIncludeDatabase(boolean includeDatabase)
public boolean isIncludeConfiguration()
public void setIncludeConfiguration(boolean includeConfiguration)
public boolean isIncludePersonalChanges()
public void setIncludePersonalChanges(boolean includePersonalChanges)
public boolean isIncludeBuildLogs()
public void setIncludeBuildLogs(boolean includeBuildLogs)
public boolean isIncludeRunningBuilds()
public void setIncludeRunningBuilds(boolean includeRunningBuilds)
includeRunningBuilds - see above.@Nullable public java.lang.String getCharsetName()
This character set affects on database text only; all files (including text ones) are backed up as is.
public void setCharsetName(@Nullable
java.lang.String charsetName)
getCharsetName().
charsetName - name of character set (@see Charset),
or null to use the default character set.public boolean isCharsetSpecified()
getCharsetName(),
setCharsetName(java.lang.String)@NotNull public java.util.Date getTimestamp()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||