Package tv.ustream.yolo.module

Examples of tv.ustream.yolo.module.ModuleFactory


        Map<String, Object> config = new HashMap<String, Object>();
        config.put("class", RegexpParser.class.getCanonicalName());
        config.put("regex", regex);
        config.put("processors", processors);
        return new ModuleFactory().createParser("x", config);
    }
View Full Code Here


        Map<String, Object> config = new HashMap<String, Object>();
        config.put("class", JsonParser.class.getCanonicalName());
        config.put("processors", processors);
        config.put("flatten", flatten);
        return new ModuleFactory().createParser("x", config);
    }
View Full Code Here

        Map<String, Object> config = new HashMap<String, Object>();
        config.put("class", JsonParser.class.getCanonicalName());
        config.put("processors", processors);
        config.put("flatten", true);
        config.put("filters", Arrays.asList(filter1, filter2));
        return new ModuleFactory().createParser("x", config);
    }
View Full Code Here

        Map<String, Object> config = new HashMap<String, Object>();
        config.put("class", ScriptEngineParser.class.getCanonicalName());
        config.put("file", file);
        config.put("engine", engine);
        config.put("processors", processors);
        return new ModuleFactory().createParser("x", config);
    }
View Full Code Here

        config.put("class", StatsDProcessor.class.getCanonicalName());
        config.put("prefix", prefix);
        config.put("host", host);
        config.put("port", port.doubleValue());

        return (StatsDProcessor) new ModuleFactory().createProcessor("x", config);
    }
View Full Code Here

    {
        Map<String, Object> config = new HashMap<String, Object>();
        config.put("class", CompositeProcessor.class.getCanonicalName());
        config.put("processors", Arrays.asList("x"));

        return (CompositeProcessor) new ModuleFactory().createProcessor("x", config);
    }
View Full Code Here

        config.put("class", GraphiteProcessor.class.getCanonicalName());
        config.put("host", host);
        config.put("port", port.doubleValue());
        config.put("flushTimeMs", 1000);

        return (GraphiteProcessor) new ModuleFactory().createProcessor("x", config);
    }
View Full Code Here

TOP

Related Classes of tv.ustream.yolo.module.ModuleFactory

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.