1 /*******************************************************************************
2 * Copyright (c) 2015 Ericsson
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
10 * Matthew Khouzam - Initial API and implementation
11 *******************************************************************************/
13 package org
.lttng
.scope
.lttng
.kernel
.core
.analysis
.os
.handlers
.internal
;
15 import org
.eclipse
.tracecompass
.tmf
.core
.event
.ITmfEvent
;
16 import org
.lttng
.scope
.lttng
.kernel
.core
.trace
.layout
.ILttngKernelEventLayout
;
18 import ca
.polymtl
.dorsal
.libdelorean
.ITmfStateSystemBuilder
;
19 import ca
.polymtl
.dorsal
.libdelorean
.exceptions
.AttributeNotFoundException
;
22 * Base class for all kernel event handlers.
24 public abstract class KernelEventHandler
{
26 private final ILttngKernelEventLayout fLayout
;
34 public KernelEventHandler(ILttngKernelEventLayout layout
) {
39 * Get the analysis layout
41 * @return the analysis layout
43 protected ILttngKernelEventLayout
getLayout() {
48 * Handle a specific kernel event.
51 * the state system to write to
54 * @throws AttributeNotFoundException
55 * if the attribute is not yet create
57 public abstract void handleEvent(ITmfStateSystemBuilder ss
, ITmfEvent event
) throws AttributeNotFoundException
;