use of org.apache.rya.export.accumulo.util.AccumuloInstanceDriver in project incubator-rya by apache.
the class StoreToStoreIT method clearDBS.
@Before
public void clearDBS() throws Exception {
for (final AccumuloInstanceDriver driver : drivers) {
driver.setUpInstance();
driver.setUpTables();
driver.setUpDao();
driver.setUpConfig();
}
}
use of org.apache.rya.export.accumulo.util.AccumuloInstanceDriver in project incubator-rya by apache.
the class StoreToStoreIT method getChildAccumulo.
private static AccumuloRyaStatementStore getChildAccumulo() throws Exception {
final AccumuloInstanceDriver driver = new AccumuloInstanceDriver(RYA_INSTANCE, type, true, false, false, "TEST2", PASSWORD, RYA_INSTANCE + "_child", tablePrefix, auths, "");
driver.setUp();
drivers.add(driver);
return new AccumuloRyaStatementStore(driver.getDao(), tablePrefix, RYA_INSTANCE);
}
use of org.apache.rya.export.accumulo.util.AccumuloInstanceDriver in project incubator-rya by apache.
the class AccumuloParentMetadataRepositoryAdapterTest method setUp.
@BeforeClass
public static void setUp() throws Exception {
accumuloInstanceDriver = new AccumuloInstanceDriver("Test Repository", INSTANCE_TYPE, false, false, true, USER_NAME, PASSWORD, INSTANCE_NAME, RYA_TABLE_PREFIX, AUTHS, ZOOKEEPERS);
accumuloInstanceDriver.setUp();
accumuloParentMetadataRepository = new AccumuloParentMetadataRepository(accumuloInstanceDriver.getDao());
}
use of org.apache.rya.export.accumulo.util.AccumuloInstanceDriver in project incubator-rya by apache.
the class AccumuloRyaStatementStoreTest method startAccumuloInstanceDriver.
/**
* Setup a Accumulo instance driver to run the test. Establishes the
* connector to the Accumulo instance.
* @return an {@link AccumuloInstanceDriver}.
* @throws Exception
*/
private static AccumuloInstanceDriver startAccumuloInstanceDriver() throws Exception {
final AccumuloInstanceDriver accumuloInstanceDriver = new AccumuloInstanceDriver("Test Driver", INSTANCE_TYPE, true, false, true, USER_NAME, PASSWORD, INSTANCE_NAME, RYA_TABLE_PREFIX, AUTHS, ZOOKEEPERS);
accumuloInstanceDriver.setUp();
return accumuloInstanceDriver;
}
use of org.apache.rya.export.accumulo.util.AccumuloInstanceDriver in project incubator-rya by apache.
the class StatementStoreFactory method getBaseAccumuloStore.
private AccumuloRyaStatementStore getBaseAccumuloStore(final String ryaInstanceName, final InstanceType type, final boolean isParent, final String username, final String password, final String tablePrefix, final String auths, final String zookeepers) throws Exception {
final AccumuloInstanceDriver aInstance = new AccumuloInstanceDriver(ryaInstanceName + "_driver", type, true, false, isParent, username, password, ryaInstanceName, tablePrefix, auths, zookeepers);
aInstance.setUp();
final AccumuloRyaDAO dao = aInstance.getDao();
return new AccumuloRyaStatementStore(dao, tablePrefix, ryaInstanceName);
}
Aggregations