Package com.springsource.insight.intercept.operation

Examples of com.springsource.insight.intercept.operation.Operation.type()


    @Test
    public void testLocateExternalResourceNameWhenDisabled() {
        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);
View Full Code Here


        // enable query external resources creation
        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);
View Full Code Here

        // enable query external resources creation
        registry.set(CollectionSettingNames.CS_QUERY_EXRTERNAL_RESOURCE_NAME, Boolean.TRUE);

        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

        // enable query external resources creation
        registry.set(CollectionSettingNames.CS_QUERY_EXRTERNAL_RESOURCE_NAME, Boolean.TRUE);

        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);

View Full Code Here

        // enable query external resources creation
        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);
View Full Code Here

    protected abstract AbstractMongoDBExternalResourceAnalyzer createMongoAnalyzer();

    @Test
    public void testLocateDatabaseURI() throws Exception {
        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,
View Full Code Here

    }

    @Test
    public void testExactlyTwoDifferentExternalResourceNames() {
        Operation op1 = new Operation();
        op1.type(getType());
        op1.put("host", "127.0.0.1");
        op1.put("port", 6379);
        op1.put("dbName", "dbName");

        Operation op2 = new Operation();
View Full Code Here

        op1.put("host", "127.0.0.1");
        op1.put("port", 6379);
        op1.put("dbName", "dbName");

        Operation op2 = new Operation();
        op2.type(getType());

        op2.put("port", 6379);
        op2.put("dbName", "dbName2");

        Operation dummyOp = new Operation();
View Full Code Here

    }

    @Test
    public void testValidData() throws Exception {
        Operation op = new Operation();
        op.type(GemFireDefenitions.TYPE_REMOTE.getType());
        String host = "localhost";
        int port = 12345;
        op.put(GemFireDefenitions.FIELD_HOST, host);
        op.put(GemFireDefenitions.FIELD_PORT, 12345);
View Full Code Here

    }

    @Test
    public void testUnknownPort() throws Exception {
        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,
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.