1 package org
.eclipse
.linuxtools
.internal
.lttng
.jni_v2_3
;
2 /*******************************************************************************
3 * Copyright (c) 2009 Ericsson
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
11 * William Bourque (wbourque@gmail.com) - Initial API and implementation
12 *******************************************************************************/
14 import java
.util
.HashMap
;
16 import org
.eclipse
.linuxtools
.internal
.lttng
.jni
.common
.Jni_C_Pointer_And_Library_Id
;
17 import org
.eclipse
.linuxtools
.internal
.lttng
.jni
.exception
.JniException
;
18 import org
.eclipse
.linuxtools
.lttng
.jni
.JniEvent
;
19 import org
.eclipse
.linuxtools
.lttng
.jni
.JniMarker
;
20 import org
.eclipse
.linuxtools
.lttng
.jni
.JniTrace
;
21 import org
.eclipse
.linuxtools
.lttng
.jni
.JniTracefile
;
24 * <b><u>JniTracefile_v2_3</u></b>
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>
30 public class JniTracefile_v2_3
extends JniTracefile
{
33 * Forbid access to the default constructor
35 protected JniTracefile_v2_3() {
40 public JniTracefile_v2_3(JniTracefile_v2_3 oldTracefile
) {
44 public JniTracefile_v2_3(Jni_C_Pointer_And_Library_Id newPtr
, JniTrace newParentTrace
) throws JniException
{
45 super(newPtr
, newParentTrace
);
50 * Allocate (call constructor for) a new JniEvent.<p>
52 * This method is made to bypass limitation related to abstract class, see comment in JniTracefile
54 * @return JniEvent a newly allocated JniEvent
56 * @see org.eclipse.linuxtools.lttng.jni.JniTracefile
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
);
65 * Allocate (call constructor for) a new JniMarker.<p>
67 * This method is made to bypass limitation related to abstract class, see comment in JniTracefile
69 * @return JniMarker a newly allocated JniMarker
71 * @see org.eclipse.linuxtools.lttng.jni.JniTracefile
74 public JniMarker
allocateNewJniMarker(Jni_C_Pointer_And_Library_Id newMarkerPtr
) throws JniException
{
75 return new JniMarker_v2_3(newMarkerPtr
);