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-2012 Pentaho
008// All Rights Reserved.
009*/
010package mondrian.server.monitor;
011
012/**
013 * Event concerning the execution of an MDX statement.
014 */
015public abstract class ExecutionEvent extends Event {
016    /**
017     * Identifier of the server.
018     */
019    public final int serverId;
020
021    /**
022     * Identifier of the connection.
023     */
024    public final int connectionId;
025
026    /**
027     * Identifier of the statement. Unique for the lifetime of the JVM.
028     */
029    public final long statementId;
030
031    /**
032     * Identifier of the execution. Unique for the lifetime of the JVM.
033     */
034    public final long executionId;
035
036    /**
037     * Creates an ExecutionEvent.
038     *
039     * @param timestamp Timestamp
040     * @param serverId Server id
041     * @param connectionId Connection id
042     * @param statementId Statement id
043     * @param executionId Execution id
044     */
045    public ExecutionEvent(
046        long timestamp,
047        int serverId,
048        int connectionId,
049        long statementId,
050        long executionId)
051    {
052        super(timestamp);
053        this.serverId = serverId;
054        this.connectionId = connectionId;
055        this.statementId = statementId;
056        this.executionId = executionId;
057    }
058}
059
060// End ExecutionEvent.java