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 * Deletion of a segment from the cell cache. 014 */ 015public class CellCacheSegmentDeleteEvent extends CellCacheEvent { 016 017 public final int coordinateCount; 018 019 /** 020 * Creates a CellCacheSegmentCreateEvent. 021 * 022 * @param timestamp Timestamp 023 * @param serverId ID of the server from which the event originates. 024 * @param connectionId ID of the connection from which the event 025 * originates. 026 * @param statementId ID of the statement from which the event originates. 027 * @param executionId ID of the execution from which the event originates. 028 * @param coordinateCount Number of coordinates of segment header 029 * @param source Source of segment 030 */ 031 public CellCacheSegmentDeleteEvent( 032 long timestamp, 033 int serverId, 034 int connectionId, 035 long statementId, 036 long executionId, 037 int coordinateCount, 038 Source source) 039 { 040 super( 041 timestamp, serverId, connectionId, 042 statementId, executionId, source); 043 this.coordinateCount = coordinateCount; 044 } 045 046 public <T> T accept(Visitor<T> visitor) { 047 return visitor.visit(this); 048 } 049} 050 051// End CellCacheSegmentDeleteEvent.java