Package com.dp.nebula.wormhole.common

Examples of com.dp.nebula.wormhole.common.WormholeException


    if (fs.mkdirs(absolutePath)) {
      LOG.info("create data temp directory successfully "
          + absolutePath.toString());
    } else {
      LOG.error("Failed to mkdir " + absolutePath.toString());
      throw new WormholeException(JobStatus.READ_FAILED.getStatus());
    }
    return absolutePath.toString();
  }
View Full Code Here


        .toLowerCase();
    analyzeColumns();
    String operation = getParam().getValue(ParamKey.OPERATION, "").trim();
    if (!"insert".equalsIgnoreCase(operation)
        && !"replace".equalsIgnoreCase(operation)) {
      throw new WormholeException("operation " + operation
          + " not supported when using mysqlloader",
          JobStatus.WRITE_FAILED.getStatus());
    }

    this.replace = "replace".equalsIgnoreCase(operation) ? "replace" : "";
View Full Code Here

  public void connection() {
    try {
      conn = DBSource.getConnection(MysqlWriter.class, ip, writerID,
          dbname);
    } catch (Exception e) {
      throw new WormholeException(e,
          JobStatus.WRITE_CONNECTION_FAILED.getStatus()
              + errorCodeAdd);
    }
  }
View Full Code Here

    } catch (WormholeException e) {
      e.setStatusCode(e.getStatusCode() + errorCodeAdd);
      throw e;
    } catch (Exception e) {
      logger.error(writerID + " write failed");
      throw new WormholeException(e, JobStatus.WRITE_FAILED.getStatus()
          + errorCodeAdd, writerID);
    } finally {
      try {
        conn.close();
      } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.dp.nebula.wormhole.common.WormholeException

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.