Package com.asakusafw.trace.model

Examples of com.asakusafw.trace.model.TraceSetting


            throw new IllegalArgumentException("methodName must not be null"); //$NON-NLS-1$
        }
        if (portName == null) {
            throw new IllegalArgumentException("portName must not be null"); //$NON-NLS-1$
        }
        TraceSetting setting = createTraceSetting(
                operatorClass, methodName,
                PortKind.INPUT, portName,
                Collections.<String, String>emptyMap());
        appendTrace(setting);
    }
View Full Code Here


            throw new IllegalArgumentException("methodName must not be null"); //$NON-NLS-1$
        }
        if (portName == null) {
            throw new IllegalArgumentException("portName must not be null"); //$NON-NLS-1$
        }
        TraceSetting setting = createTraceSetting(
                operatorClass, methodName,
                PortKind.OUTPUT, portName,
                Collections.<String, String>emptyMap());
        appendTrace(setting);
    }
View Full Code Here

        if (flowpartClass.isAnnotationPresent(FlowPart.class) == false) {
            throw new IllegalArgumentException(MessageFormat.format(
                    "The \"flowpartClass\" must be a flow-part: {0}",
                    flowpartClass.getName()));
        }
        TraceSetting setting = createTraceSetting(
                flowpartClass, FLOW_OPERATOR_FACTORY_METHOD_NAME,
                PortKind.INPUT, portName,
                Collections.<String, String>emptyMap());
        appendTrace(setting);
    }
View Full Code Here

        if (flowpartClass.isAnnotationPresent(FlowPart.class) == false) {
            throw new IllegalArgumentException(MessageFormat.format(
                    "The \"flowpartClass\" must be a flow-part: {0}",
                    flowpartClass.getName()));
        }
        TraceSetting setting = createTraceSetting(
                flowpartClass, FLOW_OPERATOR_FACTORY_METHOD_NAME,
                PortKind.OUTPUT, portName,
                Collections.<String, String>emptyMap());
        appendTrace(setting);
    }
View Full Code Here

        assert operatorClass != null;
        assert methodName != null;
        assert portKind != null;
        assert portName != null;
        assert attributes != null;
        return new TraceSetting(
                new Tracepoint(operatorClass.getName(), methodName, portKind, portName),
                Mode.STRICT, attributes);
    }
View Full Code Here

                        orig.getOperatorClassName()), e);
            }
            Tracepoint normalized = createTracepoint(
                    operatorClass, orig.getOperatorMethodName(),
                    orig.getPortKind(), orig.getPortName());
            results.add(new TraceSetting(normalized, setting.getMode(), setting.getAttributes()));
        }
        return results;
    }
View Full Code Here

        FlowElement weave = succ(gen.get("simple"));
        assertThat(weave, is(pred(gen.get("out"))));
    }

    private TraceSetting in_trace(Class<?> operatorClass, String operatorMethodName, String portName, Mode mode) {
        return new TraceSetting(
                new Tracepoint(operatorClass.getName(), operatorMethodName, PortKind.INPUT, portName),
                mode, attr());
    }
View Full Code Here

                new Tracepoint(operatorClass.getName(), operatorMethodName, PortKind.INPUT, portName),
                mode, attr());
    }

    private TraceSetting out_trace(Class<?> operatorClass, String operatorMethodName, String portName, Mode mode) {
        return new TraceSetting(
                new Tracepoint(operatorClass.getName(), operatorMethodName, PortKind.OUTPUT, portName),
                mode, attr());
    }
View Full Code Here

     * @throws Exception if failed
     */
    @Test
    public void simple_in() throws Exception {
        trace(new TraceSetting[] {
                new TraceSetting(
                        new Tracepoint(SimpleOperator.class.getName(), "line", PortKind.INPUT, "model"),
                        mode, attr()),
        });
        TestInput<Model> in = tester.input(Model.class, "in");
        prepare(in);
View Full Code Here

     * @throws Exception if failed
     */
    @Test
    public void simple_out() throws Exception {
        trace(new TraceSetting[] {
                new TraceSetting(
                        new Tracepoint(SimpleOperator.class.getName(), "line", PortKind.OUTPUT, "out"),
                        mode, attr()),
        });
        TestInput<Model> in = tester.input(Model.class, "in");
        prepare(in);
View Full Code Here

TOP

Related Classes of com.asakusafw.trace.model.TraceSetting

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.