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 * Event concerning a connection.
014 */
015public abstract class ConnectionEvent extends Event {
016    /**
017     * Server identifier; corresponds to
018     * {@link mondrian.olap.MondrianServer#getId()}.
019     */
020    public final int serverId;
021
022    /**
023     * Connection identifier. To retrieve the connection, call
024     * {@link mondrian.olap.MondrianServer#getConnection(int)}
025     */
026    public final int connectionId;
027
028    /**
029     * Creates a ConnectionEvent.
030     *
031     * @param timestamp Timestamp
032     * @param serverId Server id
033     * @param connectionId Connection id
034     */
035    public ConnectionEvent(
036        long timestamp,
037        int serverId,
038        int connectionId)
039    {
040        super(timestamp);
041        this.serverId = serverId;
042        this.connectionId = connectionId;
043    }
044}
045
046// End ConnectionEvent.java