Commit | Line | Data |
---|---|---|
9dbeec54 FC |
1 | /******************************************************************************* |
2 | * Copyright (c) 2010 Ericsson | |
3 | * | |
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 | |
8 | * | |
9 | * Contributors: | |
10 | * Francois Godin (copelnug@gmail.com) - Initial design and implementation | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.linuxtools.lttng.ui.views.statistics.evProcessor; | |
14 | ||
15 | import org.eclipse.linuxtools.lttng.event.LttngEvent; | |
16 | import org.eclipse.linuxtools.lttng.state.model.LttngTraceState; | |
17 | import org.eclipse.linuxtools.lttng.ui.views.statistics.model.StatisticsData; | |
18 | ||
19 | /** | |
20 | * <h4>Handler for the traceset end</h4> | |
21 | * <p>This class allow to react to the end of the traceset.</p> | |
22 | */ | |
23 | public class StatsTracesetEndHandler extends AbstractStatsEventHandler { | |
24 | /** | |
25 | * <h4>Constructor</h4> | |
26 | */ | |
27 | public StatsTracesetEndHandler() { | |
28 | super(null); | |
29 | } | |
30 | /* | |
31 | * (non-Javadoc) | |
32 | * @see org.eclipse.linuxtools.lttng.state.evProcessor.ILttngEventProcessor#process(org.eclipse.linuxtools.lttng.event.LttngEvent, org.eclipse.linuxtools.lttng.state.model.LttngTraceState) | |
33 | */ | |
34 | public boolean process(LttngEvent event, LttngTraceState traceState) { | |
35 | StatisticsData tree = getStatisticsTree(traceState); | |
36 | tree.endTraceset(event, traceState); | |
37 | return false; | |
38 | } | |
39 | ||
40 | } |