Examples of PropertiesReader


Examples of com.linkedin.helix.tools.PropertiesReader

    _handlers = new ArrayList<CallbackHandler>();

    _messagingService = new DefaultMessagingService(this);

    _version =
        new PropertiesReader("cluster-manager-version.properties").getProperty("clustermanager.version");

    _stateMachEngine = new HelixStateMachineEngine(this);

    // add all timer tasks
    _controllerTimerTasks = new ArrayList<HelixTimerTask>();
View Full Code Here

Examples of com.linkedin.helix.tools.PropertiesReader

    {
      addLiveInstance();
      addMessageListener(_messagingService.getExecutor(), _instanceName);
    }

    _version = new PropertiesReader("cluster-manager-version.properties")
        .getProperty("clustermanager.version");

    _stateMachEngine = new HelixStateMachineEngine(this);

    _messagingService.registerMessageHandlerFactory(MessageType.STATE_TRANSITION.toString(),
View Full Code Here

Examples of com.linkedin.helix.tools.PropertiesReader

    // ArrayList<CallbackHandler>();

    _messagingService = new DefaultMessagingService(this);

    _version =
        new PropertiesReader("cluster-manager-version.properties").getProperty("clustermanager.version");

    _stateMachEngine = new HelixStateMachineEngine(this);

    // add all timer tasks
    _controllerTimerTasks = new ArrayList<HelixTimerTask>();
View Full Code Here

Examples of com.linkedin.helix.tools.PropertiesReader

    {
      addLiveInstance();
      addMessageListener(_messagingService.getExecutor(), _instanceName);
    }

    _version = new PropertiesReader("cluster-manager-version.properties")
        .getProperty("clustermanager.version");

    _stateMachEngine = new HelixStateMachineEngine(this);

    _messagingService.registerMessageHandlerFactory(MessageType.STATE_TRANSITION.toString(),
View Full Code Here

Examples of com.opensymphony.xwork2.util.PropertiesReader

    }

    @Override
    public void load(InputStream in) throws IOException {
        Reader reader = new InputStreamReader(in);
        PropertiesReader pr = new PropertiesReader(reader);
        while (pr.nextProperty()) {
            String name = pr.getPropertyName();
            String val = pr.getPropertyValue();
            int line = pr.getLineNumber();
            String desc = convertCommentsToString(pr.getCommentLines());

            Location loc = new LocationImpl(desc, location.getURI(), line, 0);
            setProperty(name, val, loc);
        }
    }
View Full Code Here

Examples of com.opensymphony.xwork2.util.PropertiesReader

    }
   
    @Override
    public void load(InputStream in) throws IOException {
        Reader reader = new InputStreamReader(in);
        PropertiesReader pr = new PropertiesReader(reader);
        while (pr.nextProperty()) {
            String name = pr.getPropertyName();
            String val = pr.getPropertyValue();
            int line = pr.getLineNumber();
            String desc = convertCommentsToString(pr.getCommentLines());
           
            Location loc = new LocationImpl(desc, location.getURI(), line, 0);
            setProperty(name, val, loc);
        }
    }
View Full Code Here

Examples of org.apache.helix.tools.PropertiesReader

    _handlers = new ArrayList<CallbackHandler>();

    _messagingService = new DefaultMessagingService(this);

    _version =
        new PropertiesReader("cluster-manager-version.properties").getProperty("clustermanager.version");

    _stateMachEngine = new HelixStateMachineEngine(this);

    // add all timer tasks
    _controllerTimerTasks = new ArrayList<HelixTimerTask>();
View Full Code Here

Examples of org.jitterbit.util.properties.PropertiesReader

        return file.exists() ? readPropertiesFromFile(file) : new Properties();
    }

    private static Properties readPropertiesFromFile(File file) {
        try {
            return new PropertiesReader(file).read();
        } catch (Exception ex) {
            ErrorLog.log(KnownServerFileStorage.class,
                            "Failed to read local server information: " + ex.getMessage(), ex);
            return new Properties();
        }
View Full Code Here

Examples of org.jitterbit.util.properties.PropertiesReader

        }

        private Properties loadProperties() {
            try {
                File file = getPropertiesFile();
                return file.canRead() ? new PropertiesReader(file).read() : new Properties();
            } catch (IOException ex) {
                ex.printStackTrace();
                return new Properties();
            }
        }
View Full Code Here

Examples of org.jitterbit.util.properties.PropertiesReader

        return Version.UNKNOWN;
    }
   
    private Properties loadProjectProperties() {
        try {
            return new PropertiesReader(file).read();
        } catch (IOException e) {
            return null;
        }
    }
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.