44254572b4056828ff2e8ec48322a0b98ef78c43
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.jni / src / org / eclipse / linuxtools / lttng / jni_v2_3 / JniTracefile_v2_3.java
1 package org.eclipse.linuxtools.lttng.jni_v2_3;
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 *******************************************************************************/
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;
20 import org.eclipse.linuxtools.lttng.jni.common.Jni_C_Pointer_And_Library_Id;
21 import org.eclipse.linuxtools.lttng.jni.exception.JniException;
22
23 /**
24 * <b><u>JniTracefile_v2_3</u></b>
25 * <p>
26 * JniTracefile version to support Lttng traceformat of version 2.3<br>
27 * This class extend abstract class JniTracefile with (possibly) version specific implementation.<br>
28 * <p>
29 */
30 public class JniTracefile_v2_3 extends JniTracefile {
31
32 /*
33 * Forbid access to the default constructor
34 */
35 protected JniTracefile_v2_3() {
36 super();
37 }
38
39
40 public JniTracefile_v2_3(JniTracefile_v2_3 oldTracefile) {
41 super(oldTracefile);
42 }
43
44 public JniTracefile_v2_3(Jni_C_Pointer_And_Library_Id newPtr, JniTrace newParentTrace) throws JniException {
45 super(newPtr, newParentTrace);
46 }
47
48
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 */
58 @Override
59 public JniEvent allocateNewJniEvent(Jni_C_Pointer_And_Library_Id newEventPtr, HashMap<Integer, JniMarker> newMarkersMap, JniTracefile newParentTracefile) throws JniException {
60 return new JniEvent_v2_3(newEventPtr, newMarkersMap, newParentTracefile);
61 }
62
63
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 */
73 @Override
74 public JniMarker allocateNewJniMarker(Jni_C_Pointer_And_Library_Id newMarkerPtr) throws JniException {
75 return new JniMarker_v2_3(newMarkerPtr);
76 }
77 }
This page took 0.031352 seconds and 4 git commands to generate.