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 signalling the start of executing an MDX statement. 014 */ 015public class ExecutionStartEvent extends ExecutionEvent { 016 public final String mdx; 017 018 /** 019 * Creates an ExecutionStartEvent. 020 * 021 * @param timestamp Timestamp 022 * @param serverId Server id 023 * @param connectionId Connection id 024 * @param statementId Statement id 025 * @param executionId Execution id 026 * @param mdx MDX string 027 */ 028 public ExecutionStartEvent( 029 long timestamp, 030 int serverId, 031 int connectionId, 032 long statementId, 033 long executionId, 034 String mdx) 035 { 036 super(timestamp, serverId, connectionId, statementId, executionId); 037 this.mdx = mdx; 038 } 039 040 @Override 041 public String toString() { 042 return "ExecutionStartEvent(" + executionId + ")"; 043 } 044 045 public <T> T accept(Visitor<T> visitor) { 046 return visitor.visit(this); 047 } 048} 049 050// End ExecutionStartEvent.java