Package com.foundationdb.server.service.monitor

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


        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

        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

    }

    @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

Related Classes of com.foundationdb.server.service.monitor.MonitorService

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.