Examples of MJobForms


Examples of org.apache.sqoop.model.MJobForms

      MJob job = new MJob(
        connectorId,
        connectionId,
        type,
        new MJobForms(type, connectorForms),
        new MJobForms(type, frameworkForms)
      );

      job.setPersistenceId((Long) object.get(ID));
      job.setName((String) object.get(NAME));
      job.setCreationDate(new Date((Long) object.get(CREATED)));
View Full Code Here

Examples of org.apache.sqoop.model.MJobForms

    // Initialize Metadata
    List<MJobForms> jobForms = new LinkedList<MJobForms>();
    for(MJob.Type type : MJob.Type.values()) {
      Class klass = connector.getJobConfigurationClass(type);
      if(klass != null) {
        jobForms.add(new MJobForms(type, FormUtils.toForms(klass)));
      }
    }

    MConnectionForms connectionForms = new MConnectionForms(
      FormUtils.toForms(connector.getConnectionConfigurationClass()));
View Full Code Here

Examples of org.apache.sqoop.model.MJobForms

  public FrameworkManager() {
    MConnectionForms connectionForms = new MConnectionForms(
      FormUtils.toForms(getConnectionConfigurationClass())
    );
    List<MJobForms> jobForms = new LinkedList<MJobForms>();
    jobForms.add(new MJobForms(MJob.Type.IMPORT,
      FormUtils.toForms(getJobConfigurationClass(MJob.Type.IMPORT))));
    jobForms.add(new MJobForms(MJob.Type.EXPORT,
      FormUtils.toForms(getJobConfigurationClass(MJob.Type.EXPORT))));
    mFramework = new MFramework(connectionForms, jobForms);

    // Build validator
    validator = new FrameworkValidator();
View Full Code Here

Examples of org.apache.sqoop.model.MJobForms

      // that client do not know (server do have newer version than client)
      MJob.Type type = MJob.Type.valueOf((String) entry.getKey());

      List<MForm> job = restoreForms((JSONArray) entry.getValue());

      jobs.add(new MJobForms(type, job));
    }

    framework = new MFramework(new MConnectionForms(connForms), jobs);
    framework.setPersistenceId(id);
View Full Code Here

Examples of org.apache.sqoop.model.MJobForms

        MJob.Type type = MJob.Type.valueOf((String) entry.getKey());

        List<MForm> jobForms =
          restoreForms((JSONArray) jobJson.get(entry.getKey()));

        jobs.add(new MJobForms(type, jobForms));
      }

      MConnector connector = new MConnector(uniqueName, className, version, new MConnectionForms(connForms), jobs);
      connector.setPersistenceId(connectorId);
View Full Code Here

Examples of org.apache.sqoop.model.MJobForms

    // Job object
    MJob job = jobs.get(0);

    // Verify that user is not trying to spoof us
    MJobForms connectorForms
      = ConnectorManager.getInstance().getConnectorMetadata(job.getConnectorId())
      .getJobForms(job.getType());
    MJobForms frameworkForms = FrameworkManager.getInstance().getFramework()
      .getJobForms(job.getType());

    if(!connectorForms.equals(job.getConnectorPart())
      || !frameworkForms.equals(job.getFrameworkPart())) {
      throw new SqoopException(ServerError.SERVER_0003,
        "Detected incorrect form structure");
    }

    // Responsible connector for this session
View Full Code Here

Examples of org.apache.sqoop.model.MJobForms

    ((MStringInput)forms.get(1).getInputs().get(0)).setValue("Value15");
  }

  protected List<MJobForms> getJobForms() {
    List <MJobForms> jobForms = new LinkedList<MJobForms>();
    jobForms.add(new MJobForms(MJob.Type.IMPORT, getForms()));
    jobForms.add(new MJobForms(MJob.Type.EXPORT, getForms()));
    return jobForms;
  }
View Full Code Here

Examples of org.apache.sqoop.model.MJobForms

          formConnectorFetchStmt, inputFetchStmt, 2);
        loadForms(frameworkConnForms, frameworkJobForms,
          formFrameworkFetchStmt, inputFetchStmt, 2);

        MJob job = new MJob(connectorId, connectionId, type,
          new MJobForms(type, connectorJobForms.get(type)),
          new MJobForms(type, frameworkJobForms.get(type)));

        job.setPersistenceId(id);
        job.setName(name);
        job.setCreationDate(creationDate);
        job.setLastUpdateDate(lastUpdateDate);
View Full Code Here

Examples of org.apache.sqoop.model.MJobForms

    for (Map.Entry<MJob.Type, List<MForm>> entry : l.entrySet()) {
      MJob.Type type = entry.getKey();
      List<MForm> forms = entry.getValue();

      ret.add(new MJobForms(type, forms));
    }

    return ret;
  }
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.