Package tv.ustream.yolo.config

Examples of tv.ustream.yolo.config.ConfigMap


    }

    @Override
    public ConfigMap getModuleConfig()
    {
        ConfigMap config = new ConfigMap();
        config.addConfigValue("flatten", Boolean.class, false, true);

        ConfigMap filterConfig = new ConfigMap();

        filterConfig.addConfigEntry("key", ConfigValue.createString());
        filterConfig.addConfigEntry("value", new ConfigValue<>(Object.class, false, Filter.NONE));

        ConfigList filters = new ConfigList(filterConfig, false, new ArrayList());

        config.addConfigEntry("filters", filters);
View Full Code Here


        this.moduleFactory = moduleFactory;
    }

    private ConfigMap getMainConfig()
    {
        ConfigMap mainConfig = new ConfigMap();
        mainConfig.addConfigValue("processors", Map.class);
        mainConfig.addConfigValue("parsers", Map.class);
        return mainConfig;
    }
View Full Code Here

    }

    @SuppressWarnings("unchecked")
    private void addTransition(String parserName, String processorName, Object params) throws ConfigException
    {
        ConfigMap processParamsConfig = processors.get(processorName).getProcessParamsConfig();
        if (processParamsConfig != null)
        {
            processParamsConfig.parse(parserName + ".processors." + processorName, params);
        }

        transitions.get(parserName).put(
                processorName,
                (Map<String, Object>) ConfigPattern.replacePatterns(params, parsers.get(parserName).getOutputKeys())
View Full Code Here

    }

    @Override
    public ConfigMap getModuleConfig()
    {
        ConfigMap config = new ConfigMap();
        config.addConfigValue("regex", String.class);
        return config;
    }
View Full Code Here

    private static final ConfigMap PARSER_MODULE_CONFIG = getDefaultParserModuleConfig();

    private static ConfigMap getDefaultProcessorModuleConfig()
    {
        ConfigMap config = new ConfigMap();
        config.addConfigValue("class", String.class);
        return config;
    }
View Full Code Here

TOP

Related Classes of tv.ustream.yolo.config.ConfigMap

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.