use of io.prestosql.metadata.InternalNodeManager in project hetu-core by openlookeng.
the class TestTransactionManager method registerConnector.
private static void registerConnector(CatalogManager catalogManager, TransactionManager transactionManager, String catalogName, CatalogName catalog, Connector connector) {
CatalogName systemId = createSystemTablesCatalogName(catalog);
InternalNodeManager nodeManager = new InMemoryNodeManager();
Metadata metadata = createTestMetadataManager(catalogManager);
catalogManager.registerCatalog(new Catalog(catalogName, catalog, connector, createInformationSchemaCatalogName(catalog), new InformationSchemaConnector(catalogName, nodeManager, metadata, new AllowAllAccessControl()), systemId, new SystemConnector(nodeManager, connector.getSystemTables(), transactionId -> transactionManager.getConnectorTransaction(transactionId, catalog))));
}
use of io.prestosql.metadata.InternalNodeManager in project hetu-core by openlookeng.
the class TestAnalyzer method createTestingCatalog.
private Catalog createTestingCatalog(String catalogName, CatalogName catalog) {
CatalogName systemId = createSystemTablesCatalogName(catalog);
Connector connector = createTestingConnector();
InternalNodeManager nodeManager = new InMemoryNodeManager();
return new Catalog(catalogName, catalog, connector, createInformationSchemaCatalogName(catalog), new InformationSchemaConnector(catalogName, nodeManager, metadata, accessControl), systemId, new SystemConnector(nodeManager, connector.getSystemTables(), transactionId -> transactionManager.getConnectorTransaction(transactionId, catalog)));
}
use of io.prestosql.metadata.InternalNodeManager in project hetu-core by openlookeng.
the class TestDistributedResourceGroup method setup.
@BeforeClass
public void setup() {
statestore = Mockito.mock(StateStore.class);
when(statestore.getLock(anyString())).then(new Returns(new ReentrantLock()));
internalNodeManager = Mockito.mock(InternalNodeManager.class);
}
Aggregations