Package org.saiku.olap.query

Examples of org.saiku.olap.query.IQuery.cancel()


  public void cancel(String queryName) {
    try {
      //System.out.println("Cancel: ID " + Thread.currentThread().getId() + " Name: " +
      // Thread.currentThread().getName());
      IQuery q = getIQuery(queryName);
      q.cancel();
    } catch (Exception e) {
      throw new SaikuServiceException("Error cancelling query: " + queryName, e);
    }
  }
View Full Code Here



  void closeQuery(String queryName) {
    try {
      IQuery q = getIQuery(queryName);
      q.cancel();
      removeIQuery(queryName);
    } catch (Exception e) {
      throw new SaikuServiceException("Error closing query: " + queryName, e);
    }
  }
View Full Code Here

  private void removeIQuery(String queryName) {
    if (queries.containsKey(queryName)) {
      IQuery q = queries.remove(queryName);
      try {
        q.cancel();
      } catch (Exception e) {
        LOG.error("Cannot remove query", e);
      }
      q = null;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.