Package com.springsource.insight.intercept.trace

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


        SimpleFrameBuilder builder = new SimpleFrameBuilder();
        Operation op = createOperation(param);

        builder.enter(op);

        Frame frame = builder.exit();
        return Trace.newInstance(ApplicationName.valueOf("app"), TraceId.valueOf("0"), frame);
    }
View Full Code Here


        assertInitialState();

        Operation op = createJdbcOperation("jdbc:foobar://huh:8080");
        op.type(JdbcOperationExternalResourceAnalyzer.TYPE);

        Frame frame = createJdbcFrame(op);
        Trace trace = createJdbcTrace(frame);

        Collection<ExternalResourceDescriptor> resources = locateExternalResourceName(trace);

        // make sure that no query external resources were created
View Full Code Here

        registry.set(CollectionSettingNames.CS_QUERY_EXRTERNAL_RESOURCE_NAME, Boolean.TRUE);

        Operation op = createJdbcOperation("jdbc:foobar://huh:8080");
        op.type(JdbcOperationExternalResourceAnalyzer.TYPE);

        Frame frame = createJdbcFrame(op);
        Trace trace = createJdbcTrace(frame);

        Collection<ExternalResourceDescriptor> resources = locateExternalResourceName(trace);

        // make sure that no query external resources were created
View Full Code Here

        Operation op = createJdbcOperation("jdbc:foobar://huh:8080");
        op.label("test-label");
        op.type(JdbcDriverExternalResourceAnalyzer.TYPE);

        Frame frame = createJdbcFrame(op);
        Trace trace = createJdbcTrace(frame);

        assertQueryExternalResources(trace, op.getLabel());
    }
View Full Code Here

        Operation op = createJdbcOperation("jdbc:foobar://huh:8080");
        op.type(JdbcOperationExternalResourceAnalyzer.TYPE);
        op.put("sql", "selct * from all");

        Frame frame = createJdbcFrame(op);
        Trace trace = createJdbcTrace(frame);

        assertQueryExternalResources(trace);
    }
View Full Code Here

        registry.set(CollectionSettingNames.CS_QUERY_EXRTERNAL_RESOURCE_NAME, Boolean.TRUE);

        Operation op = createJdbcOperation("jdbc:foobar://huh:8080");
        op.type(JdbcOperationExternalResourceAnalyzer.TYPE);

        Frame frame = createJdbcFrame(op);
        Trace trace = createJdbcTrace(frame);

        registry.set(CollectionSettingNames.createApplicationCollectionSettingName(trace.getAppName()), Boolean.FALSE);

        Collection<ExternalResourceDescriptor> resources = locateExternalResourceName(trace);
View Full Code Here

        ExternalResourceDescriptor firstChild = children.get(0);
        assertNotNull("QUERY ExternalResourceDescriptor parent first child", firstChild);
        assertSame("QUERY ExternalResourceDescriptor parent first child", desc, firstChild);

        Frame frame = desc.getFrame();
        assertNotNull("QUERY ExternalResourceDescriptor frame", frame);

        Operation op = frame.getOperation();
        assertNotNull("QUERY ExternalResourceDescriptor frame operation", frame);

        String sql = oSql != null ? oSql : op.get("sql", String.class);
        assertEquals("QUERY ExternalResourceDescriptor label", sql, desc.getLabel());
View Full Code Here

    }

    @Test
    public void testDefaultAnalysis() {
        Trace trace = createValidTrace(false);
        Frame scoreFrame = analyzer.getScoringFrame(trace);
        assertEndPointAnalysis("traceAnalysis", analyzer.locateEndPoint(trace), scoreFrame);
        assertEndPointAnalysis("frameAnalysis", analyzer.locateEndPoint(scoreFrame, FrameUtil.getDepth(scoreFrame)), scoreFrame);
    }
View Full Code Here

    }

    @Test
    public void testLegacyAnalysis() {
        Trace trace = createValidTrace(false);
        Frame scoreFrame = analyzer.getScoringFrame(trace);
        assertEndPointAnalysis("traceAnalysis", analyzer.locateEndPoint(trace), scoreFrame);
        assertEndPointAnalysis("frameAnalysis", analyzer.locateEndPoint(scoreFrame, FrameUtil.getDepth(scoreFrame)), scoreFrame);
    }
View Full Code Here

    }

    @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

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.