1 /*******************************************************************************
2 * Copyright (c) 2010 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Francois Godin (copelnug@gmail.com) - Initial design and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.lttng
.ui
.views
.statistics
.evProcessor
;
15 import org
.eclipse
.linuxtools
.internal
.lttng
.core
.event
.LttngEvent
;
16 import org
.eclipse
.linuxtools
.internal
.lttng
.core
.state
.model
.LttngTraceState
;
17 import org
.eclipse
.linuxtools
.lttng
.ui
.views
.statistics
.model
.StatisticsData
;
20 * <h4>Handler for the traceset end</h4>
21 * <p>This class allow to react to the end of the traceset.</p>
23 public class StatsTracesetEndHandler
extends AbstractStatsEventHandler
{
25 * <h4>Constructor</h4>
27 public StatsTracesetEndHandler() {
32 * @see org.eclipse.linuxtools.lttng.state.evProcessor.ILttngEventProcessor#process(org.eclipse.linuxtools.lttng.event.LttngEvent, org.eclipse.linuxtools.lttng.state.model.LttngTraceState)
35 public boolean process(LttngEvent event
, LttngTraceState traceState
) {
36 StatisticsData tree
= getStatisticsTree(traceState
);
37 tree
.endTraceset(event
, traceState
);