001/*
002// This software is subject to the terms of the Eclipse Public License v1.0
003// Agreement, available at the following URL:
004// http://www.eclipse.org/legal/epl-v10.html.
005// You must accept the terms of that agreement to use this software.
006//
007// Copyright (C) 2011-2011 Pentaho
008// All Rights Reserved.
009*/
010package mondrian.server.monitor;
011
012/**
013 * Information about a Mondrian connection.
014 */
015public class ConnectionInfo extends Info {
016    public final int cellCacheHitCount;
017    public final int cellCacheRequestCount;
018    public final int cellCacheMissCount;
019    public final int cellCachePendingCount;
020    public final int statementStartCount;
021    public final int statementEndCount;
022    public final int executeStartCount;
023    public final int executeEndCount;
024
025    public ConnectionInfo(
026        String stack,
027        int cellCacheHitCount,
028        int cellCacheRequestCount,
029        int cellCacheMissCount,
030        int cellCachePendingCount,
031        int statementStartCount,
032        int statementEndCount,
033        int executeStartCount,
034        int executeEndCount)
035    {
036        super(stack);
037        this.cellCacheHitCount = cellCacheHitCount;
038        this.cellCacheRequestCount = cellCacheRequestCount;
039        this.cellCacheMissCount = cellCacheMissCount;
040        this.cellCachePendingCount = cellCachePendingCount;
041        this.statementStartCount = statementStartCount;
042        this.statementEndCount = statementEndCount;
043        this.executeStartCount = executeStartCount;
044        this.executeEndCount = executeEndCount;
045    }
046}
047
048// End ConnectionInfo.java