Package com.foundationdb.server.service.monitor

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


    // 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;
            }
        }
        return 15432;
View Full Code Here


    // 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;
            }
        }
        return "localhost";
View Full Code Here

            @Override
            public Row next() {
                if (!servers.hasNext()) {
                    return null;
                }
                ServerMonitor server = servers.next();
                ValuesRow row = new ValuesRow(rowType,
                                              server.getServerType(),
                                              (server.getLocalPort() < 0) ? null : Long.valueOf(server.getLocalPort()),
                                              server.getStartTimeMillis()/1000,
                                              Long.valueOf(server.getSessionCount()),
                                              ++rowCounter);
                return row;
            }
View Full Code Here

TOP

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

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.