Commit | Line | Data |
---|---|---|
0152140d | 1 | package org.eclipse.linuxtools.lttng.jni_v2_6; |
3b7509b0 WB |
2 | /******************************************************************************* |
3 | * Copyright (c) 2009 Ericsson | |
4 | * | |
5 | * All rights reserved. This program and the accompanying materials are | |
6 | * made available under the terms of the Eclipse Public License v1.0 which | |
7 | * accompanies this distribution, and is available at | |
8 | * http://www.eclipse.org/legal/epl-v10.html | |
9 | * | |
10 | * Contributors: | |
11 | * William Bourque (wbourque@gmail.com) - Initial API and implementation | |
12 | *******************************************************************************/ | |
0152140d ASL |
13 | |
14 | import java.util.HashMap; | |
15 | ||
16 | import org.eclipse.linuxtools.lttng.jni.JniEvent; | |
17 | import org.eclipse.linuxtools.lttng.jni.JniMarker; | |
18 | import org.eclipse.linuxtools.lttng.jni.JniTrace; | |
19 | import org.eclipse.linuxtools.lttng.jni.JniTracefile; | |
c85e8cb2 | 20 | import org.eclipse.linuxtools.lttng.jni.common.Jni_C_Pointer_And_Library_Id; |
0152140d ASL |
21 | import org.eclipse.linuxtools.lttng.jni.exception.JniException; |
22 | ||
3b7509b0 WB |
23 | /** |
24 | * <b><u>JniTracefile_v2_6</u></b> | |
25 | * <p> | |
26 | * JniTracefile version to support Lttng traceformat of version 2.6<br> | |
27 | * This class extend abstract class JniTracefile with (possibly) version specific implementation.<br> | |
28 | * <p> | |
29 | */ | |
0152140d ASL |
30 | public class JniTracefile_v2_6 extends JniTracefile { |
31 | ||
3b7509b0 WB |
32 | /* |
33 | * Forbid access to the default constructor | |
34 | */ | |
0152140d ASL |
35 | protected JniTracefile_v2_6() { |
36 | super(); | |
37 | } | |
38 | ||
3b7509b0 | 39 | |
0152140d ASL |
40 | public JniTracefile_v2_6(JniTracefile_v2_6 oldTracefile) { |
41 | super(oldTracefile); | |
42 | } | |
43 | ||
c85e8cb2 | 44 | public JniTracefile_v2_6(Jni_C_Pointer_And_Library_Id newPtr, JniTrace newParentTrace) throws JniException { |
0152140d ASL |
45 | super(newPtr, newParentTrace); |
46 | } | |
47 | ||
48 | ||
3b7509b0 WB |
49 | /** |
50 | * Allocate (call constructor for) a new JniEvent.<p> | |
51 | * | |
52 | * This method is made to bypass limitation related to abstract class, see comment in JniTracefile | |
53 | * | |
54 | * @return JniEvent a newly allocated JniEvent | |
55 | * | |
56 | * @see org.eclipse.linuxtools.lttng.jni.JniTracefile | |
57 | */ | |
b9fb2d51 | 58 | @Override |
c85e8cb2 | 59 | public JniEvent allocateNewJniEvent(Jni_C_Pointer_And_Library_Id newEventPtr, HashMap<Integer, JniMarker> newMarkersMap, JniTracefile newParentTracefile) throws JniException { |
0152140d ASL |
60 | return new JniEvent_v2_6(newEventPtr, newMarkersMap, newParentTracefile); |
61 | } | |
62 | ||
63 | ||
3b7509b0 WB |
64 | /** |
65 | * Allocate (call constructor for) a new JniMarker.<p> | |
66 | * | |
67 | * This method is made to bypass limitation related to abstract class, see comment in JniTracefile | |
68 | * | |
69 | * @return JniMarker a newly allocated JniMarker | |
70 | * | |
71 | * @see org.eclipse.linuxtools.lttng.jni.JniTracefile | |
72 | */ | |
b9fb2d51 | 73 | @Override |
c85e8cb2 | 74 | public JniMarker allocateNewJniMarker(Jni_C_Pointer_And_Library_Id newMarkerPtr) throws JniException { |
0152140d ASL |
75 | return new JniMarker_v2_6(newMarkerPtr); |
76 | } | |
77 | ||
78 | } |