Package it.geosolutions.unredd.stats.model.config.util

Examples of it.geosolutions.unredd.stats.model.config.util.TokenResolver


  public void executeStatistics(String cfgdata, Map<Tokens, String> layerUpdateProperties, String destFileName) throws JAXBException, IOException {
        LOGGER.debug("Statistics input properties"+layerUpdateProperties.toString());   
    StatisticConfiguration cfg = (StatisticConfiguration) unmarshaller.unmarshal(new StringReader(cfgdata));

    TokenResolver<StatisticConfiguration, Tokens> resolver =
                new TokenResolver(cfg, StatisticConfiguration.class);

    resolver.putAll(layerUpdateProperties);
   
    cfg = (StatisticConfiguration)resolver.resolve();

    // initialize the file when saving statistics
   
    cfg.getOutput().setFile(destFileName);
    StatsRunner runner = new StatsRunner(cfg);
View Full Code Here

TOP

Related Classes of it.geosolutions.unredd.stats.model.config.util.TokenResolver

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.