Package com.foundationdb.server.service.monitor

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


    protected Collection<SessionMonitor> getAccessibleSessions(Session session) {
        if (securityService.hasRestrictedAccess(session)) {
            return monitor.getSessionMonitors();
        }
        else {
            SessionMonitor sm = monitor.getSessionMonitor(session);
            if (sm == null) {
                return Collections.emptyList();
            }
            else {
                return Collections.singletonList(sm);
View Full Code Here


            @Override
            public Row next() {
                if (!sessions.hasNext()) {
                    return null;
                }
                SessionMonitor session = sessions.next();
                MonitorStage stage = session.getCurrentStage();
                ValuesRow row = new ValuesRow(rowType,
                                              (long)session.getSessionId(),
                                              session.getCallerSessionId() < 0 ? null : (long)session.getCallerSessionId(),
                                              (int)(session.getStartTimeMillis()/1000),
                                              session.getServerType(),
                                              session.getRemoteAddress(),
                                              (stage == null) ? null : stage.name(),
                                              (long)session.getStatementCount(),
                                              session.getCurrentStatement(),
                                              session.getCurrentStatementStartTimeMillis() > 0 ? (int)(session.getCurrentStatementStartTimeMillis() / 1000) : null,
                                              session.getCurrentStatementEndTimeMillis() > 0 ? (int)(session.getCurrentStatementEndTimeMillis()/1000) : null,
                                              session.getRowsProcessed() < 0 ? null : (long)session.getRowsProcessed(),
                                              session.getCurrentStatementPreparedName(),
                                              ++rowCounter);
                return row;
            }
View Full Code Here

TOP

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

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.