Package be.isencia.passerelle.domain.cap

Examples of be.isencia.passerelle.domain.cap.Director


     * @throws Exception
     */
    public void createBatchDirector(Flow flow) throws Exception {
        if (batch.getBatchDirector() == null) {
            Workspace wspace = (flow == null) ? null : flow.workspace();
            Director director = DirectorFactory.createNewDirector(
                    (useNexusStorage) ? DirectorType.RECORDING
                    : DirectorType.SOLEILSTD, wspace);
            batch.setBatchDirector(director);
        }
        if (flow != null) {
View Full Code Here


            listener.executionFinished(null);
        }
    }

    public Director getBatchDirector() {
        Director result = batch.getBatchDirector();
        if (result == null) {
            try {
                createBatchDirector();
            } catch (Exception e) {
                return null;
View Full Code Here

            try {
                if (StepType.ACTOR.equals(step.getType())
                        || useBossaNovaDirector) {
                    flow.setDirector(batch.getBatchDirector());
                } else {
                    Director dir = originalDirectors.get(step);
                    flow.setDirector(dir);
                }
                for (int i = 0; i < step.getIterationCount(); i++) {
                    BossaNovaData.getSingleton().getApplication().getTraceComponent().trace(
                            this.getBatchDirector(),
View Full Code Here

     * @throws Exception
     */
    public void createBatchDirector(Flow flow) throws Exception {
        if (batch.getBatchDirector() == null) {
            Workspace wspace = (flow == null) ? null : flow.workspace();
            Director director = DirectorFactory.createNewDirector(
                    (useNexusStorage) ? DirectorType.RECORDING
                    : DirectorType.SOLEILSTD, wspace);
            batch.setBatchDirector(director);
        }
        if (flow != null) {
View Full Code Here

            listener.executionFinished(null);
        }
    }

    public Director getBatchDirector() {
        Director result = batch.getBatchDirector();
        if (result == null) {
            try {
                createBatchDirector();
            } catch (Exception e) {
                return null;
View Full Code Here

         * flow.setDirector(batch.getBatchDirector()); } else { Director
         * dir = originalDirectors.get(step); flow.setDirector(dir); }
         */
        Flow flow = step.getFlow();
        if (flow == null) {
          Director director = null;
          if (StepType.ACTOR.equals(step.getType())
              || useBossaNovaDirector) {
            director = batch.getBatchDirector();
          } else {
            director = originalDirectors.get(step);
View Full Code Here

   * @throws Exception
   */
  public void createBatchDirector(Flow flow) throws Exception {
    if (batch.getBatchDirector() == null) {
      Workspace wspace = (flow == null) ? null : flow.workspace();
      Director director = DirectorFactory.createNewDirector(
          (useNexusStorage) ? DirectorType.RECORDING
              : DirectorType.SOLEILSTD, wspace);
      batch.setBatchDirector(director);
    }
    if (flow != null) {
View Full Code Here

      listener.executionFinished(null);
    }
  }

  public Director getBatchDirector() {
    Director result = batch.getBatchDirector();
    if (result == null) {
      try {
        createBatchDirector();
      } catch (Exception e) {
        return null;
View Full Code Here

  private DirectorFactory() {
    // DO NOT USE
  }
  public static Director createNewDirector(DirectorType dType, Workspace wspace) throws Exception {
    Director result = null;
    if (DirectorType.RECORDING.equals(dType)) {
      result = new RecordingDirector(wspace);
    } else if (DirectorType.SOLEILSTD.equals(dType)) {
      result = new BasicDirector(wspace);
    }
    // Added to avoid FindBugs bug JC Pret Jan 2011
    else
    {
      throw new IllegalArgumentException("Unknown director type");
    }
    // End JCP
    // Erwin DL : this is not right. Class name has a specific purpose.
    // result.setClassName("Bossanova Director");
    result.setName("Bossanova Director");
    // no longer done. System properties must be set elsewhere, e.g. in a hmi.ini file.
//    Parameter directorParam = (Parameter) result.getAttribute("Properties File", Parameter.class);
//    directorParam.setExpression(Configuration.getPasserelleConfDirectory() + "systemproperties.txt");
    return result;
  }
View Full Code Here

            try {
                if (StepType.ACTOR.equals(step.getType())
                        || useBossaNovaDirector) {
                    flow.setDirector(batch.getBatchDirector());
                } else {
                    Director dir = originalDirectors.get(step);
                    flow.setDirector(dir);
                }
                for (int i = 0; i < step.getIterationCount(); i++) {
                    BossaNovaData.getSingleton().getApplication().getTraceComponent().trace(
                            this.getBatchDirector(),
View Full Code Here

TOP

Related Classes of be.isencia.passerelle.domain.cap.Director

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.