@Test public void testGetMetaProxy() { IMetaProxy metaProxy = backupVerification.getMetaProxy(BackupVersion.SNAPSHOT_META_SERVICE); Assert.assertTrue(metaProxy != null); }
public IMetaProxy getMetaProxy(BackupVersion backupVersion) { switch (backupVersion) { case SNAPSHOT_BACKUP: return metaV1Proxy; case SNAPSHOT_META_SERVICE: return metaV2Proxy; } return null; }
BackupVerification { public IMetaProxy getMetaProxy(BackupVersion backupVersion) { switch (backupVersion) { case SNAPSHOT_BACKUP: return metaV1Proxy; case SNAPSHOT_META_SERVICE: return metaV2Proxy; } return null; } }
BackupVerification { public IMetaProxy getMetaProxy(BackupVersion backupVersion) { switch (backupVersion) { case SNAPSHOT_BACKUP: return metaV1Proxy; case SNAPSHOT_META_SERVICE: return metaV2Proxy; } return null; } @Inject  BackupVerification(
            @Named("v1") IMetaProxy metaV1Proxy,
            @Named("v2") IMetaProxy metaV2Proxy,
            IBackupStatusMgr backupStatusMgr,
            Provider<AbstractBackupPath> abstractBackupPathProvider); }
BackupVerification { public IMetaProxy getMetaProxy(BackupVersion backupVersion) { switch (backupVersion) { case SNAPSHOT_BACKUP: return metaV1Proxy; case SNAPSHOT_META_SERVICE: return metaV2Proxy; } return null; } @Inject  BackupVerification(
            @Named("v1") IMetaProxy metaV1Proxy,
            @Named("v2") IMetaProxy metaV2Proxy,
            IBackupStatusMgr backupStatusMgr,
            Provider<AbstractBackupPath> abstractBackupPathProvider); IMetaProxy getMetaProxy(BackupVersion backupVersion); Optional<BackupVerificationResult> verifyBackup(
            BackupVersion backupVersion, boolean force, DateRange dateRange); List<BackupVerificationResult> verifyAllBackups(
            BackupVersion backupVersion, DateRange dateRange); }
BackupVerification { public IMetaProxy getMetaProxy(BackupVersion backupVersion) { switch (backupVersion) { case SNAPSHOT_BACKUP: return metaV1Proxy; case SNAPSHOT_META_SERVICE: return metaV2Proxy; } return null; } @Inject  BackupVerification(
            @Named("v1") IMetaProxy metaV1Proxy,
            @Named("v2") IMetaProxy metaV2Proxy,
            IBackupStatusMgr backupStatusMgr,
            Provider<AbstractBackupPath> abstractBackupPathProvider); IMetaProxy getMetaProxy(BackupVersion backupVersion); Optional<BackupVerificationResult> verifyBackup(
            BackupVersion backupVersion, boolean force, DateRange dateRange); List<BackupVerificationResult> verifyAllBackups(
            BackupVersion backupVersion, DateRange dateRange);  }