Package com.springsource.insight.intercept.operation

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


    }

    @Test
    public void testUnknownHost() throws Exception {
        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,
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 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),
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

    }

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

    }

    @Test
    public void testWithoutRemoteFrame() throws Exception {
        Operation op = new Operation();
        op.type(analyzer.getOperationType());

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

    }

    @Test
    public void testWithRemoteFrame() throws Exception {
        Operation op = new Operation();
        op.type(analyzer.getOperationType());

        Frame remoteFrame = new SimpleFrame(FrameId.valueOf("1"),
                null,
                new Operation().type(GemFireDefenitions.TYPE_REMOTE.getType()),
                TimeRange.milliTimeRange(0, 1),
View Full Code Here

    }

    @Test
    public void testLocateDatabaseURI() throws Exception {
        Operation op = new Operation();
        op.type(RedisExternalResourceAnalyzer.TYPE);
        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(RedisExternalResourceAnalyzer.TYPE);
        op1.putAnyNonEmpty("host", "127.0.0.1");
        op1.put("port", 6379);
        op1.put("dbName", "dbName");

        Operation op2 = new Operation();
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.