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 an MDX statement. 014 */ 015public abstract class StatementEvent 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 * Creates a StatementEvent. 033 * 034 * @param timestamp Timestamp 035 * @param serverId Server id 036 * @param connectionId Connection id 037 * @param statementId Statement id 038 */ 039 public StatementEvent( 040 long timestamp, 041 int serverId, 042 int connectionId, 043 long statementId) 044 { 045 super(timestamp); 046 this.serverId = serverId; 047 this.connectionId = connectionId; 048 this.statementId = statementId; 049 } 050} 051 052// End StatementEvent.java