Search in sources :

Example 1 with BackupType

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;
}
Also used : BackupType(org.apache.asterix.event.model.BackupInfo.BackupType) Patterns(org.apache.asterix.event.schema.pattern.Patterns)

Example 2 with BackupType

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;
}
Also used : BackupType(org.apache.asterix.event.model.BackupInfo.BackupType) Patterns(org.apache.asterix.event.schema.pattern.Patterns)

Aggregations

BackupType (org.apache.asterix.event.model.BackupInfo.BackupType)2 Patterns (org.apache.asterix.event.schema.pattern.Patterns)2