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