Internalize lttng.ui Activator
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.jni / src / org / eclipse / linuxtools / lttng / jni_v2_6 / JniTracefile_v2_6.java
CommitLineData
0152140d 1package 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
14import java.util.HashMap;
15
16import org.eclipse.linuxtools.lttng.jni.JniEvent;
17import org.eclipse.linuxtools.lttng.jni.JniMarker;
18import org.eclipse.linuxtools.lttng.jni.JniTrace;
19import org.eclipse.linuxtools.lttng.jni.JniTracefile;
c85e8cb2 20import org.eclipse.linuxtools.lttng.jni.common.Jni_C_Pointer_And_Library_Id;
0152140d
ASL
21import 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
30public 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}
This page took 0.029897 seconds and 5 git commands to generate.