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 / StatsProcessExitHandler.java
CommitLineData
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
13package org.eclipse.linuxtools.lttng.ui.views.statistics.evProcessor;
14
6c13869b
FC
15import org.eclipse.linuxtools.lttng.core.event.LttngEvent;
16import org.eclipse.linuxtools.lttng.core.state.StateStrings.Events;
17import org.eclipse.linuxtools.lttng.core.state.model.LttngTraceState;
9dbeec54
FC
18import org.eclipse.linuxtools.lttng.ui.views.statistics.model.StatisticsData;
19
20/**
21 * <h4>Handler for process exit event statistics</h4>
22 */
23public class StatsProcessExitHandler extends AbstractStatsEventHandler {
24 /**
25 * <h4>Constructor</h4>
26 * <p>
27 * Define the LTT_EVENT_PROCESS_EXIT type.
28 * </p>
29 */
30 public StatsProcessExitHandler() {
31 super(Events.LTT_EVENT_PROCESS_EXIT);
32 }
33
34 /* (non-Javadoc)
35 * @see org.eclipse.linuxtools.lttng.state.evProcessor.ILttngEventProcessor#process(org.eclipse.linuxtools.lttng.event.LttngEvent, org.eclipse.linuxtools.lttng.state.model.LttngTraceState)
36 */
d4011df2 37 @Override
9dbeec54
FC
38 public boolean process(LttngEvent event, LttngTraceState traceState) {
39 StatisticsData tree = getStatisticsTree(traceState);
40 tree.process_exit(event, traceState);
41
42 return false;
43 }
44}
This page took 0.026758 seconds and 5 git commands to generate.