use of org.apache.hadoop.ozone.recon.ReconTestInjector in project ozone by apache.
the class TestReconNamespaceSummaryManagerImpl method setupOnce.
@BeforeClass
public static void setupOnce() throws Exception {
ReconTestInjector reconTestInjector = new ReconTestInjector.Builder(TEMP_FOLDER).withReconSqlDb().withContainerDB().build();
reconNamespaceSummaryManager = reconTestInjector.getInstance(ReconNamespaceSummaryManagerImpl.class);
testBucket = new int[40];
for (int i = 0; i < 40; ++i) {
testBucket[i] = i + 1;
}
}
use of org.apache.hadoop.ozone.recon.ReconTestInjector in project ozone by apache.
the class TestContainerKeyMapperTask method setUp.
@Before
public void setUp() throws Exception {
omMetadataManager = initializeNewOmMetadataManager(temporaryFolder.newFolder());
ozoneManagerServiceProvider = getMockOzoneManagerServiceProvider();
reconOMMetadataManager = getTestReconOmMetadataManager(omMetadataManager, temporaryFolder.newFolder());
ReconTestInjector reconTestInjector = new ReconTestInjector.Builder(temporaryFolder).withReconSqlDb().withReconOm(reconOMMetadataManager).withOmServiceProvider(ozoneManagerServiceProvider).withContainerDB().build();
reconContainerMetadataManager = reconTestInjector.getInstance(ReconContainerMetadataManager.class);
}
use of org.apache.hadoop.ozone.recon.ReconTestInjector in project ozone by apache.
the class TestNSSummaryTask method setUp.
@Before
public void setUp() throws Exception {
omMetadataManager = initializeNewOmMetadataManager(temporaryFolder.newFolder());
ozoneManagerServiceProvider = getMockOzoneManagerServiceProviderWithFSO();
reconOMMetadataManager = getTestReconOmMetadataManager(omMetadataManager, temporaryFolder.newFolder());
ReconTestInjector reconTestInjector = new ReconTestInjector.Builder(temporaryFolder).withReconOm(reconOMMetadataManager).withOmServiceProvider(ozoneManagerServiceProvider).withReconSqlDb().withContainerDB().build();
reconNamespaceSummaryManager = reconTestInjector.getInstance(ReconNamespaceSummaryManager.class);
}
Aggregations