Examples of MonitorService


Examples of com.alibaba.dubbo.monitor.MonitorService

            filter = filter + ",";
        }
        url = url.addParameters(Constants.CLUSTER_KEY, "failsafe", Constants.CHECK_KEY, String.valueOf(false),
                Constants.REFERENCE_FILTER_KEY, filter + "-monitor");
        Invoker<MonitorService> monitorInvoker = protocol.refer(MonitorService.class, url);
        MonitorService monitorService = proxyFactory.getProxy(monitorInvoker);
        return new DubboMonitor(monitorInvoker, monitorService);
    }
View Full Code Here

Examples of com.alibaba.dubbo.monitor.MonitorService

            filter = filter + ",";
        }
        url = url.addParameters(Constants.CLUSTER_KEY, "failsafe", Constants.CHECK_KEY, String.valueOf(false),
                Constants.REFERENCE_FILTER_KEY, filter + "-monitor");
        Invoker<MonitorService> monitorInvoker = protocol.refer(MonitorService.class, url);
        MonitorService monitorService = proxyFactory.getProxy(monitorInvoker);
        return new DubboMonitor(monitorInvoker, monitorService);
    }
View Full Code Here

Examples of com.alibaba.dubbo.monitor.MonitorService

            filter = filter + ",";
        }
        url = url.addParameters(Constants.CLUSTER_KEY, "failsafe", Constants.CHECK_KEY, String.valueOf(false),
                Constants.REFERENCE_FILTER_KEY, filter + "-monitor");
        Invoker<MonitorService> monitorInvoker = protocol.refer(MonitorService.class, url);
        MonitorService monitorService = proxyFactory.getProxy(monitorInvoker);
        return new DubboMonitor(monitorInvoker, monitorService);
    }
View Full Code Here

Examples of com.alibaba.dubbo.monitor.MonitorService

            filter = filter + ",";
        }
        url = url.addParameters(Constants.CLUSTER_KEY, "failsafe", Constants.CHECK_KEY, String.valueOf(false),
                Constants.REFERENCE_FILTER_KEY, filter + "-monitor");
        Invoker<MonitorService> monitorInvoker = protocol.refer(MonitorService.class, url);
        MonitorService monitorService = proxyFactory.getProxy(monitorInvoker);
        return new DubboMonitor(monitorInvoker, monitorService);
    }
View Full Code Here

Examples of com.alibaba.dubbo.monitor.MonitorService

            filter = filter + ",";
        }
        url = url.addParameters(Constants.CLUSTER_KEY, "failsafe", Constants.CHECK_KEY, String.valueOf(false),
                Constants.REFERENCE_FILTER_KEY, filter + "-monitor");
        Invoker<MonitorService> monitorInvoker = protocol.refer(MonitorService.class, url);
        MonitorService monitorService = proxyFactory.getProxy(monitorInvoker);
        return new DubboMonitor(monitorInvoker, monitorService);
    }
View Full Code Here

Examples of com.alibaba.rocketmq.tools.monitor.MonitorService


    @Override
    public void execute(CommandLine commandLine, Options options, RPCHook rpcHook) {
        try {
            MonitorService monitorService =
                    new MonitorService(new MonitorConfig(), new DefaultMonitorListener(), rpcHook);

            monitorService.start();
        }
        catch (Exception e) {
            e.printStackTrace();
        }
        finally {
View Full Code Here

Examples of com.foundationdb.server.service.monitor.MonitorService

        }
    }

    // Note that this needs to work even if services didn't start properly.
    protected int getPostgresPort() {
        MonitorService service = serviceManager.getMonitorService();
        if (service != null) {
            ServerMonitor monitor = service.getServerMonitors().get("Postgres");
            if (monitor != null) {
                int port = monitor.getLocalPort();
                if (port > 0)
                    return port;
            }
View Full Code Here

Examples of com.foundationdb.server.service.monitor.MonitorService

        return 15432;
    }

    // Note that this needs to work even if services didn't start properly.
    protected String getPostgresHost() {
        MonitorService service = serviceManager.getMonitorService();
        if (service != null) {
            ServerMonitor monitor = service.getServerMonitors().get("Postgres");
            if (monitor != null) {
                String host = monitor.getLocalHost();
                if (host != null)
                    return host;
            }
View Full Code Here

Examples of com.foundationdb.server.service.monitor.MonitorService

        return code;
    }

    @Test
    public void runTest () throws Exception {
        MonitorService monitor = monitorService();
       
        CloseableHttpClient client = HttpClientBuilder.create().build();
        openRestURL(client, "user1:password", httpConductor().getPort(), "/version");
        assertEquals(monitor.getSessionMonitors().size(), 1);
       
        client.close();
    }
View Full Code Here

Examples of com.foundationdb.server.service.monitor.MonitorService

    }

    @Ignore ("need setup")
    @Test
    public void runTest () throws Exception {
        MonitorService monitor = monitorService();
       
        CloseableHttpClient client = createClient();
       
        openRestURL(client, "user1:password", httpConductor().getPort(), "/version");
       
        assertEquals(monitor.getSessionMonitors().size(), 1);
       
        client.close();
    }
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.