Package com.pardot.rhombus

Examples of com.pardot.rhombus.RhombusTimeoutException


    if(cql.isPreparable()) {
      BoundStatement bs = getBoundStatement(session, cql);
      try {
        return session.execute(bs);
      } catch(NoHostAvailableException e) {
        throw new RhombusTimeoutException(e);
      } catch(QueryExecutionException e2) {
        throw new RhombusTimeoutException(e2);
      }
    } else {
      //just run a normal execute without a prepared statement
      try {
        return session.execute(cql.getQuery());
      } catch(NoHostAvailableException e) {
        throw new RhombusTimeoutException(e);
      } catch(QueryExecutionException e2) {
        throw new RhombusTimeoutException(e2);
      }
    }
  }
View Full Code Here


    }
    //just run a normal execute without a prepared statement
    try {
      return session.execute(cql);
    } catch(NoHostAvailableException e) {
      throw new RhombusTimeoutException(e);
    } catch(QueryExecutionException e2) {
      throw new RhombusTimeoutException(e2);
    }
  }
View Full Code Here

        batchStatement.add(getBoundStatement(session, statement));
      }
    } try {
      session.execute(batchStatement);
    } catch(NoHostAvailableException e) {
      throw new RhombusTimeoutException(e);
    } catch(QueryExecutionException e2) {
      throw new RhombusTimeoutException(e2);
    }
  }
View Full Code Here

        Metrics.defaultRegistry().newMeter(StatementIteratorConsumer.class, "asyncTimeout", "asyncTimeout", TimeUnit.SECONDS).mark();
        cancelFutures();
        for(Throwable t : this.executionExceptions) {
          logger.warn("Timeout executing statements. Found future failure: ", t);
        }
        throw new RhombusTimeoutException("Timout executing statements asynch");
      }
      for(Throwable t : this.executionExceptions) {
        logger.warn("Completed executing statements, but found future failure: ", t);
      }
    } catch (InterruptedException e) {
View Full Code Here

TOP

Related Classes of com.pardot.rhombus.RhombusTimeoutException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.