Re-structure LTTng sub-project as per the Linux Tools guidelines
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / statistics / evProcessor / StatsTracesetEndHandler.java
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.core.event.LttngEvent;
16 import org.eclipse.linuxtools.lttng.core.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 @Override
35 public boolean process(LttngEvent event, LttngTraceState traceState) {
36 StatisticsData tree = getStatisticsTree(traceState);
37 tree.endTraceset(event, traceState);
38 return false;
39 }
40
41 }
This page took 0.032806 seconds and 5 git commands to generate.