Package com.springsource.insight.intercept.trace

Examples of com.springsource.insight.intercept.trace.SimpleFrame


    }

    @Test
    public void testAnalyzeNoHttpFrame() {
        Operation op = createControllerOperation(false);
        Frame frame = new SimpleFrame(FrameId.valueOf("3777347"), null, op, new TimeRange(1L, 10L), Collections.<Frame>emptyList());
        Trace trace = Trace.newInstance(ApplicationName.valueOf("app"), TraceId.valueOf("0"), frame);
        EndPointAnalysis analysis = analyzer.locateEndPoint(trace);
        assertNotNull("No analysis result", analysis);
        assertEquals("Mismatched example", op.getLabel(), analysis.getExample());
    }
View Full Code Here


    static Frame createFrame(Frame parent, String uri) {
        Operation op = new Operation().type(HttpClientDefinitions.TYPE);
        op.createMap("request").put(OperationFields.URI, uri);

        return new SimpleFrame(FrameId.valueOf(String.valueOf(frameIdGenerator.incrementAndGet())),
                parent,
                op,
                TimeRange.milliTimeRange(0, 1),
                Collections.<Frame>emptyList());
    }
View Full Code Here

        Operation op = new Operation();
        op.type(getType());
        op.put("host", "localhost");
        op.put("port", 6379);
        op.put("dbName", "dbName");
        Frame frame = new SimpleFrame(FrameId.valueOf("0"),
                null,
                op,
                TimeRange.milliTimeRange(0, 1),
                Collections.<Frame>emptyList());
View Full Code Here

        String host = "localhost";
        int port = 12345;
        op.put(GemFireDefenitions.FIELD_HOST, host);
        op.put(GemFireDefenitions.FIELD_PORT, 12345);

        Frame frame = new SimpleFrame(FrameId.valueOf("0"),
                null,
                op,
                TimeRange.milliTimeRange(0, 1),
                Collections.<Frame>emptyList());
View Full Code Here

        Operation op = new Operation();
        op.type(GemFireDefenitions.TYPE_REMOTE.getType());
        String host = "localhost";
        op.put(GemFireDefenitions.FIELD_HOST, host);

        Frame frame = new SimpleFrame(FrameId.valueOf("0"),
                null,
                op,
                TimeRange.milliTimeRange(0, 1),
                Collections.<Frame>emptyList());
View Full Code Here

        Operation op = new Operation();
        op.type(GemFireDefenitions.TYPE_REMOTE.getType());
        int port = 12345;
        op.put(GemFireDefenitions.FIELD_PORT, port);

        Frame frame = new SimpleFrame(FrameId.valueOf("0"),
                null,
                op,
                TimeRange.milliTimeRange(0, 1),
                Collections.<Frame>emptyList());
View Full Code Here

    @Test
    public void testNoRemoteFrame() throws Exception {
        Operation op = new Operation();
        op.type(GemFireDefenitions.TYPE_REGION.getType());

        Frame frame = new SimpleFrame(FrameId.valueOf("0"),
                null,
                op,
                TimeRange.milliTimeRange(0, 1),
                Collections.<Frame>emptyList());
View Full Code Here

        String host = "localhost";
        int port = 12345;
        op.put(GemFireDefenitions.FIELD_HOST, host);
        op.put(GemFireDefenitions.FIELD_PORT, 12345);

        Frame frame = new SimpleFrame(FrameId.valueOf("0"),
                null,
                op,
                TimeRange.milliTimeRange(0, 1),
                Collections.<Frame>emptyList());
View Full Code Here

        Operation op = new Operation();
        op.type(GemFireDefenitions.TYPE_REMOTE.getType());
        String host = "localhost";
        op.put(GemFireDefenitions.FIELD_HOST, host);

        Frame frame = new SimpleFrame(FrameId.valueOf("0"),
                null,
                op,
                TimeRange.milliTimeRange(0, 1),
                Collections.<Frame>emptyList());
View Full Code Here

        Operation op = new Operation();
        op.type(GemFireDefenitions.TYPE_REMOTE.getType());
        int port = 12345;
        op.put(GemFireDefenitions.FIELD_PORT, port);

        Frame frame = new SimpleFrame(FrameId.valueOf("0"),
                null,
                op,
                TimeRange.milliTimeRange(0, 1),
                Collections.<Frame>emptyList());
View Full Code Here

TOP

Related Classes of com.springsource.insight.intercept.trace.SimpleFrame

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.