Package eu.scape_project.planning.utils

Examples of eu.scape_project.planning.utils.ConfigurationLoader


    /**
     * Reloads registry data, at the moment from an XML file
     */
    public void reload() throws MiniMeeException {
        ConfigurationLoader configurationLoader = new ConfigurationLoader();
        Configuration configuration = configurationLoader.load();
        if (configuration == null) {
            log.error("An error occurred while reading the properties file.");
            return;
        }
        String home = configuration.getString(MINIMEE_HOME);
View Full Code Here


        tools.add(t);
    }

    public void reload() {
        clear();
        ConfigurationLoader configurationLoader = new ConfigurationLoader();
        Configuration configuration = configurationLoader.load();
        if (configuration == null) {
            log.error("An error occurred while reading the properties file.");
            return;
        }
        String home = configuration.getString(MINIMEE_HOME);
View Full Code Here

    private Map<String, String> loadConfig() {
        if (this.config != null) {
            return this.config;
        }

        ConfigurationLoader configurationLoader = new ConfigurationLoader();
        Configuration configuration = configurationLoader.load();
        if (configuration == null) {
            LOGGER.warn("An error occurred while reading the properties file.");
            return new HashMap<String, String>();
        }
View Full Code Here

      TriggerGenerator triggerGen = new TriggerGenerator();
      List<Trigger> triggers = triggerGen.generateTriggers(user.getEmail(), 24*3600*1000, plan);
     
      if (triggers.size() > 0) {
          try {
              ConfigurationLoader configurationLoader = new ConfigurationLoader();
              Configuration config = configurationLoader.load();
              String watchEndpoint = config.getString("watch.rest.uri");
              String watchUser = config.getString("watch.rest.user");
              String watchPassword = config.getString("watch.rest.password");
           
        final ClientConfig cc = new DefaultClientConfig();
View Full Code Here

                    String userPwd[] = encodedStr.split(":");
                    if ((userPwd != null) &&
                        (userPwd.length == 2) &&
                        StringUtils.isNotEmpty(userPwd[0]) &&
                        StringUtils.isNotEmpty(userPwd[1])) {
                        ConfigurationLoader configurationLoader = new ConfigurationLoader();
                        Configuration config = configurationLoader.load();
                        String path = request.getPreprocessedPath().replaceAll("/", ".").substring(1);
                       
                        String user = config.getString(path + ".rest.user", "");
                        String passwd = config.getString(path + ".rest.pass", "");
                       
View Full Code Here

    /**
     * Initializes the Executor.
     */
    public void init() {
        ConfigurationLoader configurationLoader = new ConfigurationLoader();
        sshConfig = configurationLoader.load();
        commandTimeout = sshConfig.getInt("tavernaserver.ssh.command.timeout");
        tavernaCommand = sshConfig.getString("tavernaserver.ssh.command");

        clear();
    }
View Full Code Here

    /**
     * Creates a new rest client for myExperiment.
     */
    public MyExperimentRESTClient() {
        ConfigurationLoader configurationLoader = new ConfigurationLoader();
        Configuration config = configurationLoader.load();
        myExperimentUri = config.getString("myexperiment.rest.uri");

        ClientConfig cc = new DefaultClientConfig();
        Client client = Client.create(cc);

View Full Code Here

    /**
     * Initializes class.
     */
    @PostConstruct
    public void init() {
        ConfigurationLoader configurationLoader = new ConfigurationLoader();

        Configuration config = configurationLoader.load();
        storagePath = config.getString("filestorage.path");

        if (storagePath != null) {
            storagePathFile = new File(storagePath);
            if (!storagePathFile.exists()) {
View Full Code Here

TOP

Related Classes of eu.scape_project.planning.utils.ConfigurationLoader

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.