private void readParamsFromFile ( ) { PropertiesParam pps = initParams . getPropertiesParam ( BACKUP_PROPERTIES ) ; backupDir = pps . getProperty ( BACKUP_DIR ) ; // full backup type can be not defined. Using default. fullBackupType = pps . getProperty ( FULL_BACKUP_TYPE ) == null ? DEFAULT_VALUE_FULL_BACKUP_TYPE : pps . getProperty ( FULL_BACKUP_TYPE ) ; // incremental backup can be not configured. Using default values. defIncrPeriod = pps . getProperty ( DEFAULT_INCREMENTAL_JOB_PERIOD ) == null ? DEFAULT_VALUE_INCREMENTAL_JOB_PERIOD : pps . getProperty ( DEFAULT_INCREMENTAL_JOB_PERIOD ) ; incrementalBackupType = pps . getProperty ( INCREMENTAL_BACKUP_TYPE ) == null ? DEFAULT_VALUE_INCREMENTAL_BACKUP_TYPE : pps . getProperty ( INCREMENTAL_BACKUP_TYPE ) ; LOG . info ( "Backup dir from configuration file: " + backupDir ) ; LOG . info ( "Full backup type from configuration file: " + fullBackupType ) ; LOG . info ( "(Experimental) Incremental backup type from configuration file: " + incrementalBackupType ) ; LOG . info ( "(Experimental) Default incremental job period from configuration file: " + defIncrPeriod ) ; checkParams ( ) ; }
Get parameters which passed from the file .