Commit | Line | Data |
---|---|---|
698fde87 GB |
1 | /******************************************************************************* |
2 | * Copyright (c) 2016 École Polytechnique de Montréal | |
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 | ||
10 | package org.eclipse.tracecompass.analysis.os.linux.core.tests.stubs.trace; | |
11 | ||
12 | import org.eclipse.tracecompass.analysis.os.linux.core.trace.DefaultEventLayout; | |
13 | import org.eclipse.tracecompass.analysis.os.linux.core.trace.IKernelAnalysisEventLayout; | |
14 | ||
15 | /** | |
16 | * Class to extend to be able to set the event names for the os unit tests. | |
17 | * | |
18 | * @author Geneviève Bastien | |
19 | */ | |
20 | public class KernelEventLayoutStub extends DefaultEventLayout { | |
21 | ||
22 | /** | |
23 | * Protected constructor | |
24 | */ | |
25 | protected KernelEventLayoutStub() { | |
26 | super(); | |
27 | } | |
28 | ||
29 | private static final IKernelAnalysisEventLayout INSTANCE = new KernelEventLayoutStub(); | |
30 | ||
31 | /** | |
32 | * Get an instance of this event layout | |
33 | * | |
34 | * This object is completely immutable, so no need to create additional | |
35 | * instances via the constructor. | |
36 | * | |
37 | * @return The instance | |
38 | */ | |
39 | public static IKernelAnalysisEventLayout getInstance() { | |
40 | return INSTANCE; | |
41 | } | |
42 | ||
43 | } |