use of org.apache.asterix.event.model.BackupInfo.BackupType in project asterixdb by apache.
the class PatternCreator method getBackUpAsterixPattern.
public Patterns getBackUpAsterixPattern(AsterixInstance instance, Backup backupConf) throws Exception {
BackupType backupType = BackupInfo.getBackupType(backupConf);
Patterns patterns = null;
switch(backupType) {
case HDFS:
patterns = getHDFSBackUpAsterixPattern(instance, backupConf);
break;
case LOCAL:
patterns = getLocalBackUpAsterixPattern(instance, backupConf);
break;
}
return patterns;
}
use of org.apache.asterix.event.model.BackupInfo.BackupType in project asterixdb by apache.
the class PatternCreator method getRestoreAsterixPattern.
public Patterns getRestoreAsterixPattern(AsterixInstance instance, BackupInfo backupInfo) throws Exception {
BackupType backupType = backupInfo.getBackupType();
Patterns patterns = null;
switch(backupType) {
case HDFS:
patterns = getHDFSRestoreAsterixPattern(instance, backupInfo);
break;
case LOCAL:
patterns = getLocalRestoreAsterixPattern(instance, backupInfo);
break;
}
return patterns;
}
Aggregations