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 created just after a statement has been created.
014 */
015public class StatementStartEvent extends StatementEvent {
016    /**
017     * Creates a StatementStartEvent.
018     *
019     * @param timestamp Timestamp
020     * @param serverId Server id
021     * @param connectionId Connection id
022     * @param statementId Statement id
023     */
024    public StatementStartEvent(
025        long timestamp,
026        int serverId,
027        int connectionId,
028        long statementId)
029    {
030        super(timestamp, serverId, connectionId, statementId);
031    }
032
033    public String toString() {
034        return "StatementStartEvent(" + statementId + ")";
035    }
036
037    public <T> T accept(Visitor<T> visitor) {
038        return visitor.visit(this);
039    }
040}
041
042// End StatementStartEvent.java