use of org.pentaho.metaverse.impl.MetaverseCompletionService in project pentaho-metaverse by pentaho.
the class IntegrationTestUtil method buildMetaverseGraph.
public static synchronized Graph buildMetaverseGraph(IDocumentLocatorProvider provider) throws Exception {
IDocumentLocatorProvider documentLocatorProvider = provider;
IMetaverseReader reader = PentahoSystem.get(IMetaverseReader.class);
Set<IDocumentLocator> locators = documentLocatorProvider.getDocumentLocators();
MetaverseCompletionService mcs = MetaverseCompletionService.getInstance();
// Run a scan for each locator
for (IDocumentLocator locator : locators) {
locator.startScan();
}
mcs.waitTillEmpty();
return reader.getMetaverse();
}
Aggregations