Examples of Conf


Examples of com.alexecollins.docker.orchestration.model.Conf

    if (src.isDirectory()) {
      for (File file : src.listFiles()) {
        final File confFile = new File(file, "conf.yml");
                try {
                    confs.put(new Id(file.getName()), confFile.length() > 0 ? MAPPER.readValue(confFile, Conf.class) : new Conf());
                } catch (IOException e) {
                   throw new OrchestrationException(e);
                }
            }
    }
View Full Code Here

Examples of com.alexecollins.docker.orchestration.model.Conf

    if (src.isDirectory()) {
      for (File file : src.listFiles()) {
        final File confFile = new File(file, "conf.yml");
                try {
                    confs.put(new Id(file.getName()), confFile.length() > 0 ? MAPPER.readValue(confFile, Conf.class) : new Conf());
                } catch (IOException e) {
                   throw new OrchestrationException(e);
                }
            }
    }
View Full Code Here

Examples of com.alexecollins.docker.orchestration.model.Conf

            }
    }
  }

  String imageName(Id id) {
    Conf conf = conf(id);
    if (conf != null && conf.hasTag()) {
      return conf.getTag();
    }
    return prefix + "_" + id;
  }
View Full Code Here

Examples of com.alexecollins.docker.orchestration.model.Conf

    if (src.isDirectory()) {
      for (File file : src.listFiles()) {
        final File confFile = new File(file, "conf.yml");
                try {
                    confs.put(new Id(file.getName()), confFile.length() > 0 ? MAPPER.readValue(confFile, Conf.class) : new Conf());
                } catch (IOException e) {
                   throw new OrchestrationException(e);
                }
            }
    }
View Full Code Here

Examples of com.alexecollins.docker.orchestration.model.Conf

            }
    }
  }

  String imageName(Id id) {
    Conf conf = conf(id);
    return Filters.filter(
                (conf != null && conf.hasTag())
                        ? conf.getTag()
                        : prefix + "_" + id,
                properties
        );
  }
View Full Code Here

Examples of com.alexecollins.docker.orchestration.model.Conf

        return l;
    }

    public static Conf filter(Conf conf, Properties properties) {

        final Conf out = new Conf();

        out.getHealthChecks().getPings().addAll(conf.getHealthChecks().getPings());
        out.getLinks().addAll(conf.getLinks());
        for (String add : conf.getPackaging().getAdd()) {
            out.getPackaging().getAdd().add(Filters.filter(add, properties));
        }
        out.getPorts().addAll(conf.getPorts());
        if (conf.getTag() != null) {
            out.setTag(Filters.filter(conf.getTag(), properties));
        }
        out.getVolumesFrom().addAll(conf.getVolumesFrom());

        return out;
    }
View Full Code Here

Examples of com.alexecollins.docker.orchestration.model.Conf

    this.src = src;

    if (src.isDirectory()) {
      for (File file : src.listFiles()) {
        final File confFile = new File(file, "conf.yml");
        confs.put(new Id(file.getName()), confFile.length() > 0 ? MAPPER.readValue(confFile, Conf.class) : new Conf());
      }
    }
  }
View Full Code Here

Examples of com.dotcms.repackage.org.tuckey.web.filters.urlrewrite.Conf

     * @return
     * @throws Exception
     */
    public List<Rule> getRules () throws Exception {

        Conf conf = getConf();
        return conf.getRules();
    }
View Full Code Here

Examples of com.dotcms.repackage.org.tuckey.web.filters.urlrewrite.Conf

        //Initialise the rule, if success add it to the filter
        Boolean initialized = rule.initialise( Config.CONTEXT );
        if ( initialized ) {

            //Adding it the rule to the current filter configuration
            Conf conf = getConf();
            conf.addRule( rule );

            //Apply the rules changes
            reload();
        } else {
            throw new RuntimeException( "Error initializing Rewrite Rule!" );
View Full Code Here

Examples of com.dotcms.repackage.org.tuckey.web.filters.urlrewrite.Conf

     * @throws Exception
     */
    public void reload () throws Exception {

        //Checks and apply the current filter configuration
        Conf conf = getConf();
        checkConf( conf );
    }
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.