throw new TitanException(e);
}
}
public void waitForClusterSize(int minSize) throws InterruptedException, StorageException {
CTConnectionFactory f = new CTConnectionFactory(new String[]{ address }, port,
null, null, // username, password
GraphDatabaseConfiguration.CONNECTION_TIMEOUT_DEFAULT,
AbstractCassandraStoreManager.THRIFT_DEFAULT_FRAME_SIZE);
CTConnection conn = null;
try {
conn = f.makeRawConnection();
CTConnectionFactory.waitForClusterSize(conn.getClient(), minSize);
} catch (TTransportException e) {
throw new TemporaryStorageException(e);
} finally {
if (null != conn)