use of com.yahoo.ycsb.DBException in project YCSB by brianfrankcooper.
the class RadosClientTest method setupClass.
@BeforeClass
public static void setupClass() throws DBException {
radosclient = new RadosClient();
Properties p = new Properties();
p.setProperty(POOL_PROPERTY, POOL_TEST);
try {
radosclient.setProperties(p);
radosclient.init();
} catch (DBException | UnsatisfiedLinkError e) {
assumeNoException("Ceph cluster is not running. Skipping tests.", e);
}
}
use of com.yahoo.ycsb.DBException in project voltdb by VoltDB.
the class VoltClient4 method init.
@Override
public void init() throws DBException {
Properties props = getProperties();
String servers = props.getProperty("voltdb.servers", "localhost");
String user = props.getProperty("voltdb.user", "");
String password = props.getProperty("voltdb.password", "");
String strLimit = props.getProperty("voltdb.ratelimit");
int ratelimit = strLimit != null ? Integer.parseInt(strLimit) : Integer.MAX_VALUE;
try {
m_client = ConnectionHelper.createConnection(Thread.currentThread().getId(), servers, user, password, ratelimit);
} catch (Exception e) {
e.printStackTrace();
throw new DBException(e.getMessage());
}
m_workingData = new byte[1024 * 1024];
m_writeBuf = ByteBuffer.wrap(m_workingData);
}
Aggregations