Package com.springsource.insight.intercept.color

Examples of com.springsource.insight.intercept.color.ColorManager


        if (ListUtil.size(queueFrames) <= 0) {
            return Collections.emptyList();
        }

        List<ExternalResourceDescriptor> queueDescriptors = new ArrayList<ExternalResourceDescriptor>(queueFrames.size());
        ColorManager colorManager = ColorManager.getInstance();
        for (Frame queueFrame : queueFrames) {
            Operation op = queueFrame.getOperation();
            String host = op.get("host", String.class);
            int port = op.getInt("port", (-1));
            String color = colorManager.getColor(op);

            String finalExchange = getFinalExchangeName(getExchange(op));
            String finalRoutingKey = getFinalRoutingKey(getRoutingKey(op));
            String exchangeResourceName = buildExternalResourceName(finalExchange, finalRoutingKey, false, host, port);
View Full Code Here


                .put("host", INTTEST_HOST)
                .put("port", INTTEST_PORT);

        final Frame TEST_FRAME = new SimpleFrame(FrameId.valueOf("7365"), null, BASE_OP, new TimeRange(1L, 10L), Collections.<Frame>emptyList());
        //final Trace TEST_TRACE = new Trace(ServerName.valueOf("7.3.6.5"), INTTEST_APP, new Date(System.currentTimeMillis()), TraceId.valueOf("3777347"), TEST_FRAME);
        final ColorManager colorManager = ColorManager.getInstance();

        for (DestinationType destType : DestinationType.values()) {
            String destName = DESTS_NAMES.get(destType);
            if (StringUtil.isEmpty(destName)) {
                continue;
View Full Code Here

        if (ListUtil.size(queueFrames) <= 0) {
            return Collections.emptyList();
        }

        List<ExternalResourceDescriptor> queueDescriptors = new ArrayList<ExternalResourceDescriptor>(queueFrames.size());
        ColorManager colorManager = ColorManager.getInstance();
        for (Frame queueFrame : queueFrames) {
            ExternalResourceDescriptor descriptor = createExternalResourceDescriptor(colorManager, queueFrame);
            queueDescriptors.add(descriptor);
        }
View Full Code Here

        if (uri != null) {
            host = uri.getHost();
            port = uri.getPort();
        }

        ColorManager colorManager = ColorManager.getInstance();
        Operation op = frame.getOperation();
        String color = colorManager.getColor(op);

        // for  Non-URI based and special cases the host and port remain default
        ExternalResourceDescriptor hashed =
                new ExternalResourceDescriptor(frame, jdbcScheme + ":1:" + jdbcHash, "", ExternalResourceType.DATABASE.name(), jdbcScheme, host, port, color, false);
        return Collections.singletonList(hashed);
View Full Code Here

            return Collections.emptyList();
        }

        List<ExternalResourceDescriptor> externalResourceDescriptors = new ArrayList<ExternalResourceDescriptor>(urlMetaDataList.size());
        int instance = 1;
        ColorManager colorManager = ColorManager.getInstance();
        Operation op = frame.getOperation();
        String color = colorManager.getColor(op);
        for (JdbcUrlMetaData urlMetaData : urlMetaDataList) {
            String databaseName = urlMetaData.getDatabaseName();
            String vendor = urlMetaData.getVendorName();
            String host = urlMetaData.getHost();
            int port = urlMetaData.getPort();
View Full Code Here

TOP

Related Classes of com.springsource.insight.intercept.color.ColorManager

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.