public class BackupJobConfiguration extends BaseManager
BackupJob.getJobConfiguration()
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
Modifier and Type | Field and Description |
---|---|
static int |
BACKUP_COLLECTION_DELETE_EMPTY_FLAG |
static int |
BACKUP_COLLECTION_DELETE_OLDER_THAN_DAYS_FLAG |
static int |
BACKUP_MODE_OPTION_ALL_CATALOGS |
static int |
BACKUP_MODE_OPTION_CONFIGURATION |
static int |
BACKUP_MODE_OPTION_SPECIFIED_CATALOGS |
static int |
TIME_SPECIFICATION_MODE_OPTION_CRON |
static int |
TIME_SPECIFICATION_MODE_OPTION_SIMPLE |
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
boolean |
deleteCollectionsAfterDays()
Returns whether the backup should delete collections that are older than a number of days, see
getCollectionAgeDays() . |
boolean |
deleteEmptyCollections()
Returns whether the backup should delete empty collections.
|
boolean |
getAppendBackupTimeToFilename()
Returns whether the backup destination filename should always contain the time of backup.
|
int |
getBackupMode()
Returns the backup mode.
|
CatalogList |
getCatalogList()
Returns the list of catalogs that the job should work on if
getBackupMode() returns BACKUP_MODE_OPTION_SPECIFIED_CATALOGS . |
int |
getCollectionAgeDays()
Returns the age in days for collections, see
deleteCollectionsAfterDays() . |
java.lang.String |
getCronText()
Returns the current CRON mode configuration string.
|
java.lang.String |
getDestinationFolder()
Returns the destination folder for the created backups.
|
int |
getSimpleModeNthWeekRepetition()
Returns the number of weeks between backups configured for simple mode backup.
|
int |
getSimpleSpecDaysOfWeek()
Returns an int representing the days the job should run.
|
int |
getStartTime()
Returns the start date for this job.
|
int |
getTimeSpecificationMode()
Returns the mode this backup job uses for determining the next start date.
|
boolean |
isActive()
Returns whether this backup job is active.
|
boolean |
isExecuteNow()
Returns true if this job should be started immediately by the server ignoring the currently stored start date.
|
boolean |
sameConfiguration(BackupJobConfiguration jobConfiguration)
Returns whether the given jobs configuration equals this jobs configuration.
|
void |
setActive(boolean active)
Sets whether this backup job should be active.
|
void |
setAppendBackupTimeToFilename(boolean value)
Sets whether the backup destination filename should always contain the time of backup.
|
void |
setBackupMode(int value)
Sets the backup mode.
|
void |
setCollectionAgeDays(int collectionAgeDays)
Sets the age in days for collections, see
deleteCollectionsAfterDays() . |
void |
setCronText(java.lang.String text)
Sets a new CRON mode configuration string.
|
void |
setDeleteCollectionsAfterDays(boolean deleteCollectionsAfterDays)
Sets whether the backup should delete collections that are older than a number of days, see
getCollectionAgeDays() . |
void |
setDeleteEmptyCollections(boolean deleteEmptyCollections)
Sets whether the backup should delete empty collections.
|
void |
setDestinationFolder(java.lang.String value)
Sets the destination folder for the created backups.
|
void |
setExecuteNow(boolean start)
Configures whether this job should be started immediately by the server ignoring the currently stored start date.
|
void |
setSimpleModeNthWeekRepetition(int value)
Sets the number of weeks between backups to use for simple mode backup.
|
void |
setSimpleSpecDaysOfWeek(int val)
Sets the days the job should run.
|
void |
setStartTime(int time)
Sets the start time this job should run the first time.
|
void |
setTimeSpecificationMode(int mode)
Sets the mode this backup job uses for determining the next start date.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public static final int BACKUP_MODE_OPTION_CONFIGURATION
public static final int BACKUP_MODE_OPTION_ALL_CATALOGS
public static final int BACKUP_MODE_OPTION_SPECIFIED_CATALOGS
public static final int TIME_SPECIFICATION_MODE_OPTION_SIMPLE
public static final int TIME_SPECIFICATION_MODE_OPTION_CRON
public static final int BACKUP_COLLECTION_DELETE_OLDER_THAN_DAYS_FLAG
public static final int BACKUP_COLLECTION_DELETE_EMPTY_FLAG
public int getBackupMode()
BACKUP_MODE_OPTION_ALL_CATALOGS
, BACKUP_MODE_OPTION_CONFIGURATION
and BACKUP_MODE_OPTION_SPECIFIED_CATALOGS
.public void setBackupMode(int value)
BACKUP_MODE_OPTION_ALL_CATALOGS
, BACKUP_MODE_OPTION_CONFIGURATION
and BACKUP_MODE_OPTION_SPECIFIED_CATALOGS
.value
- backup modepublic boolean isActive()
public void setActive(boolean active)
active
- set to true if this job is activepublic boolean isExecuteNow()
public void setExecuteNow(boolean start)
start
- specify true to make this job start immediatelypublic int getTimeSpecificationMode()
TIME_SPECIFICATION_MODE_OPTION_SIMPLE
and
TIME_SPECIFICATION_MODE_OPTION_CRON
. Defaults to TIME_SPECIFICATION_MODE_OPTION_SIMPLE
.public void setTimeSpecificationMode(int mode)
TIME_SPECIFICATION_MODE_OPTION_SIMPLE
and TIME_SPECIFICATION_MODE_OPTION_CRON
.mode
- mode this backup job uses for determining the next start datepublic java.lang.String getCronText()
public void setCronText(java.lang.String text)
text
- new CRON configurationpublic CatalogList getCatalogList()
getBackupMode()
returns BACKUP_MODE_OPTION_SPECIFIED_CATALOGS
.public int getSimpleSpecDaysOfWeek()
public void setSimpleSpecDaysOfWeek(int val)
val
- the days the job should runpublic int getStartTime()
public void setStartTime(int time)
time
- the time to start this jobpublic java.lang.String getDestinationFolder()
public void setDestinationFolder(java.lang.String value)
value
- destination folder for the backupspublic boolean getAppendBackupTimeToFilename()
public void setAppendBackupTimeToFilename(boolean value)
value
- true if the backup filename should contain the time of backuppublic int getSimpleModeNthWeekRepetition()
public void setSimpleModeNthWeekRepetition(int value)
value
- number of weekspublic boolean deleteEmptyCollections()
public void setDeleteEmptyCollections(boolean deleteEmptyCollections)
deleteEmptyCollections
- public boolean deleteCollectionsAfterDays()
getCollectionAgeDays()
.public void setDeleteCollectionsAfterDays(boolean deleteCollectionsAfterDays)
getCollectionAgeDays()
.deleteCollectionsAfterDays
- public void setCollectionAgeDays(int collectionAgeDays)
deleteCollectionsAfterDays()
.collectionAgeDays
- age in days for collectionspublic int getCollectionAgeDays()
deleteCollectionsAfterDays()
.public boolean sameConfiguration(BackupJobConfiguration jobConfiguration)
jobConfiguration
- the configuration to check for equalitywww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.