Package com.springsource.insight.intercept.trace

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


        httpOp.createMap("request").put(OperationFields.URI, "/foo");

        Trace trace = mock(Trace.class);
        SimpleFrameBuilder builder = new SimpleFrameBuilder();
        builder.enter(httpOp);
        Frame root = builder.exit();
        when(trace.getRootFrame()).thenReturn(root);
        when(trace.getAppName()).thenReturn(ApplicationName.valueOf("app"));

        EndPointAnalysis analysis = analyzer.locateEndPoint(trace);
        assertNull("Unexpected result: " + analysis, analysis);
View Full Code Here


                .put(OperationFields.URI, TEST_PATH)
                .put("method", TEST_VERB);
        builder.enter(httpOp);
        builder.enter(createControllerOperation(legacy));
        builder.exit();
        Frame httpFrame = builder.exit();
        return Trace.newInstance(ApplicationName.valueOf("app"), TraceId.valueOf("0"), httpFrame);
    }
View Full Code Here

    public static final CollapsingFrameHelper getInstance() {
        return INSTANCE;
    }

    public boolean shouldCollapse(final Frame currentFrame) {
        final Frame parentFrame = currentFrame.getParent();
        final List<Frame> children = parentFrame.getChildren();
        if (ListUtil.size(children) < 2) {
            return false;
        }
        final Frame lastChildFrame = children.get(children.size() - 2);
        return sameMethod(currentFrame, lastChildFrame);
    }
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

        builder.exit();
        builder.enter(dummyOp);
        builder.enter(op1);
        builder.exit();
        builder.exit();
        Frame frame = builder.exit();
        Trace trace = Trace.newInstance(ApplicationName.valueOf("app"), TraceId.valueOf("0"), frame);

        AbstractMongoDBExternalResourceAnalyzer analyzer = createMongoAnalyzer();
        List<ExternalResourceDescriptor> externalResourceDescriptors =
                (List<ExternalResourceDescriptor>) analyzer.locateExternalResourceName(trace);
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

TOP

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

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.