Package com.asakusafw.yaess.tools.log.util

Examples of com.asakusafw.yaess.tools.log.util.LogCodeRegexFilter


        YaessJobId id1 = provider.copy();
        append(0, "YS-CORE-I00000", id1);
        append(100, "YS-CORE-I00999", id1);
        append(500, "YS-UNKNOWN-I00000", id1);

        Map<YaessJobId, List<String>> results = summarize(new LogCodeRegexFilter(Pattern.compile("YS-CORE-.*")));
        assertThat(results.size(), is(1));

        List<String> r1 = results.get(id1);
        assertThat(r1, is(notNullValue()));
        assertThat(r1.get(0), is("0"));
View Full Code Here


                    "Invalid output encoding \"{1}\" ({0})",
                    KEY_ENCODING, encodingString), e);
        }
        Filter<YaessLogRecord> filter;
        try {
            filter = new LogCodeRegexFilter(Pattern.compile(codeString));
        } catch (IllegalArgumentException e) {
            throw new IllegalArgumentException(MessageFormat.format(
                    "Invalid log code pattern \"{1}\" ({0})",
                    KEY_CODE, codeString));
        }
View Full Code Here

TOP

Related Classes of com.asakusafw.yaess.tools.log.util.LogCodeRegexFilter

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.