Examples of JobData


Examples of com.cloudera.sqoop.metastore.JobData

      try {
        // Save the 'parent' SqoopOptions; this does not contain the mutations
        // to the SqoopOptions state that occurred over the course of this
        // execution, except for the one we specifically want to memorize:
        // the latest value of the check column.
        JobData data = new JobData(options.getParent(), this);
        storage.update(jobName, data);
        LOG.info("Updated data for job: " + jobName);
      } finally {
        storage.close();
      }
View Full Code Here

Examples of com.cloudera.sqoop.metastore.JobData

   * @return true on success, false on failure.
   */
  protected boolean init(SqoopOptions sqoopOpts) {
    // Get the connection to the database.
    try {
      JobData data = new JobData(sqoopOpts, this);
      this.manager = new ConnFactory(sqoopOpts.getConf()).getManager(data);
      return true;
    } catch (Exception e) {
      LOG.error("Got error creating database manager: "
          + StringUtils.stringifyException(e));
View Full Code Here

Examples of com.cloudera.sqoop.metastore.JobData

    opts.setTableName("dummy.pds");
    opts.setConnManagerClassName("org.apache.sqoop.manager.MainframeManager");
    context = new ImportJobContext(getTableName(), null, opts, null);
    ConnFactory f = new ConnFactory(conf);
    try {
      this.manager = f.getManager(new JobData(opts, new MainframeImportTool()));
    } catch (IOException ioe) {
      fail("IOException instantiating manager: "
          + StringUtils.stringifyException(ioe));
    }
  }
View Full Code Here

Examples of com.cloudera.sqoop.metastore.JobData

      try {
        // Save the 'parent' SqoopOptions; this does not contain the mutations
        // to the SqoopOptions state that occurred over the course of this
        // execution, except for the one we specifically want to memorize:
        // the latest value of the check column.
        JobData data = new JobData(options.getParent(), this);
        storage.update(jobName, data);
        LOG.info("Updated data for job: " + jobName);
      } finally {
        storage.close();
      }
View Full Code Here

Examples of com.cloudera.sqoop.metastore.JobData

   * @return true on success, false on failure.
   */
  protected boolean init(SqoopOptions sqoopOpts) {
    // Get the connection to the database.
    try {
      JobData data = new JobData(sqoopOpts, this);
      this.manager = new ConnFactory(sqoopOpts.getConf()).getManager(data);
      return true;
    } catch (Exception e) {
      LOG.error("Got error creating database manager: "
          + StringUtils.stringifyException(e));
View Full Code Here

Examples of com.cloudera.sqoop.metastore.JobData

   * @return true on success, false on failure.
   */
  protected boolean init(SqoopOptions sqoopOpts) {
    // Get the connection to the database.
    try {
      JobData data = new JobData(sqoopOpts, this);
      this.manager = new ConnFactory(sqoopOpts.getConf()).getManager(data);
      return true;
    } catch (Exception e) {
      LOG.error("Got error creating database manager: "
          + StringUtils.stringifyException(e));
View Full Code Here

Examples of com.cloudera.sqoop.metastore.JobData

      try {
        // Save the 'parent' SqoopOptions; this does not contain the mutations
        // to the SqoopOptions state that occurred over the course of this
        // execution, except for the one we specifically want to memorize:
        // the latest value of the check column.
        JobData data = new JobData(options.getParent(), this);
        storage.update(jobName, data);
        LOG.info("Updated data for job: " + jobName);
      } finally {
        storage.close();
      }
View Full Code Here

Examples of org.apache.airavata.gfac.core.persistence.JobData

            while (resultSet.next()) {

                String jobId = resultSet.getString("job_id");
                int state = resultSet.getInt("status");

                jobs.add(new JobData(jobId, state));
            }

        } catch (SQLException e) {
            throw new GFacException(e);
        } finally {
View Full Code Here

Examples of org.apache.sling.bgservlets.JobData

        // Get JobData, defines path and used to save servlet output to the repository
        final Session s = resourceResolver.adaptTo(Session.class);
        if(s == null) {
            throw new IOException("Unable to get Session from ResourceResolver " + resourceResolver);
        }
        final JobData d = storage.createJobData(s);
        final String ext = request.getRequestPathInfo().getExtension();
        if(ext != null) {
            d.setProperty(JobData.PROP_EXTENSION, ext);
        }
        path = d.getPath();
        creationTime = d.getCreationTime();
        streamPath = d.getPath() + STREAM_PATH_SUFFIX + (ext == null ? "" : "." + ext);
        stream = new SuspendableOutputStream(d.getOutputStream());
        response = new BackgroundHttpServletResponse(hsr, stream);
    }
View Full Code Here

Examples of org.apache.sling.bgservlets.JobData

                    "Resource does not adapt to a Node: " + request.getResource().getPath());
        }

        // The stream is a child of the job node
        try {
            final JobData d = jobStorage.getJobData(n.getParent());
            final InputStream is = d.getInputStream();
            try {
                response.setContentType(request.getResponseContentType());
                final OutputStream os = response.getOutputStream();
                final byte [] buffer = new byte[32768];
                int count = 0;
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.