Force check remote updates when checking for new plugin versions
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.core / src / org / eclipse / tracecompass / internal / analysis / os / linux / core / kernel / handlers / KernelEventHandler.java
1 /*******************************************************************************
2 * Copyright (c) 2015 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Matthew Khouzam - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.tracecompass.internal.analysis.os.linux.core.kernel.handlers;
14
15 import org.eclipse.tracecompass.analysis.os.linux.core.trace.IKernelAnalysisEventLayout;
16 import org.eclipse.tracecompass.statesystem.core.ITmfStateSystemBuilder;
17 import org.eclipse.tracecompass.statesystem.core.exceptions.AttributeNotFoundException;
18 import org.eclipse.tracecompass.tmf.core.event.ITmfEvent;
19
20 /**
21 * Base class for all kernel event handlers.
22 */
23 public abstract class KernelEventHandler {
24
25 private final IKernelAnalysisEventLayout fLayout;
26
27 /**
28 * Constructor
29 *
30 * @param layout
31 * the analysis layout
32 */
33 public KernelEventHandler(IKernelAnalysisEventLayout layout) {
34 fLayout = layout;
35 }
36
37 /**
38 * Get the analysis layout
39 *
40 * @return the analysis layout
41 */
42 protected IKernelAnalysisEventLayout getLayout() {
43 return fLayout;
44 }
45
46 /**
47 * Handle a specific kernel event.
48 *
49 * @param ss
50 * the state system to write to
51 * @param event
52 * the event
53 * @throws AttributeNotFoundException
54 * if the attribute is not yet create
55 */
56 public abstract void handleEvent(ITmfStateSystemBuilder ss, ITmfEvent event) throws AttributeNotFoundException;
57
58 }
This page took 0.038018 seconds and 5 git commands to generate.