Search in sources :

Example 1 with AccumuloInstanceDriver

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();
    }
}
Also used : AccumuloInstanceDriver(org.apache.rya.export.accumulo.util.AccumuloInstanceDriver) Before(org.junit.Before)

Example 2 with AccumuloInstanceDriver

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);
}
Also used : AccumuloInstanceDriver(org.apache.rya.export.accumulo.util.AccumuloInstanceDriver) AccumuloRyaStatementStore(org.apache.rya.export.accumulo.AccumuloRyaStatementStore) TimestampPolicyAccumuloRyaStatementStore(org.apache.rya.export.accumulo.policy.TimestampPolicyAccumuloRyaStatementStore)

Example 3 with AccumuloInstanceDriver

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());
}
Also used : AccumuloInstanceDriver(org.apache.rya.export.accumulo.util.AccumuloInstanceDriver) BeforeClass(org.junit.BeforeClass)

Example 4 with AccumuloInstanceDriver

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;
}
Also used : AccumuloInstanceDriver(org.apache.rya.export.accumulo.util.AccumuloInstanceDriver)

Example 5 with 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);
}
Also used : AccumuloInstanceDriver(org.apache.rya.export.accumulo.util.AccumuloInstanceDriver) AccumuloRyaDAO(org.apache.rya.accumulo.AccumuloRyaDAO) AccumuloRyaStatementStore(org.apache.rya.export.accumulo.AccumuloRyaStatementStore) TimestampPolicyAccumuloRyaStatementStore(org.apache.rya.export.accumulo.policy.TimestampPolicyAccumuloRyaStatementStore)

Aggregations

AccumuloInstanceDriver (org.apache.rya.export.accumulo.util.AccumuloInstanceDriver)6 AccumuloRyaStatementStore (org.apache.rya.export.accumulo.AccumuloRyaStatementStore)3 TimestampPolicyAccumuloRyaStatementStore (org.apache.rya.export.accumulo.policy.TimestampPolicyAccumuloRyaStatementStore)3 AccumuloRyaDAO (org.apache.rya.accumulo.AccumuloRyaDAO)1 Before (org.junit.Before)1 BeforeClass (org.junit.BeforeClass)1