Package com.espertech.esper.client

Examples of com.espertech.esper.client.ConfigurationEventTypeXMLDOM


    public static Object[] getPOJOEvents() {
        return new Object[] {new MyEvent(1.1d, 1, "one"), new MyEvent(2.2d, 2, "two")};
    }

    private static ConfigurationEventTypeXMLDOM getConfig() {
        ConfigurationEventTypeXMLDOM eventTypeMeta = new ConfigurationEventTypeXMLDOM();
        eventTypeMeta.setRootElementName("rootelement");
        InputStream schemaStream = DefaultSupportGraphEventUtil.class.getClassLoader().getResourceAsStream(CLASSLOADER_SCHEMA_URI);
        if (schemaStream == null) {
            throw new IllegalStateException("Failed to load schema '" + CLASSLOADER_SCHEMA_URI + "'");
        }
        String schemaText = FileUtil.linesToText(FileUtil.readFile(schemaStream));
        eventTypeMeta.setSchemaText(schemaText);
        return eventTypeMeta;
    }
View Full Code Here


    public static Object[] getPOJOEvents() {
        return new Object[] {new MyEvent(1.1d, 1, "one"), new MyEvent(2.2d, 2, "two")};
    }

    private static ConfigurationEventTypeXMLDOM getConfig() {
        ConfigurationEventTypeXMLDOM eventTypeMeta = new ConfigurationEventTypeXMLDOM();
        eventTypeMeta.setRootElementName("rootelement");
        InputStream schemaStream = DefaultSupportGraphEventUtil.class.getClassLoader().getResourceAsStream(CLASSLOADER_SCHEMA_URI);
        if (schemaStream == null) {
            throw new IllegalStateException("Failed to load schema '" + CLASSLOADER_SCHEMA_URI + "'");
        }
        String schemaText = ParserTool.linesToText(ParserTool.readFile(schemaStream));
        eventTypeMeta.setSchemaText(schemaText);
        return eventTypeMeta;
    }
View Full Code Here

TOP

Related Classes of com.espertech.esper.client.ConfigurationEventTypeXMLDOM

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.