dd3609c75837544c768cc08aa42935c248441f3d
1 package org
.eclipse
.linuxtools
.lttng
.jni
.common
;
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 *******************************************************************************/
15 * <b><u>Jni_C_Common</u></b>
17 * Common constants and methods that should be shared between JNI objects.<p>
19 * This class is abstract and is intended to be extended by LTTng modules that need the constants.
21 public abstract class Jni_C_Constant
{
23 // Needed for native types
24 public static final int NULL
= 0;
26 // C errno correspondance. Used to interpret LTT return value
27 public static final int EOK
= 0;
28 public static final int EPERM
= 1;
29 public static final int ERANGE
= 34;
31 // Timestamps are in nanoseconds, this const ease up the math
32 public static final long NANO
= 1000000000;
37 public Jni_C_Constant() {
41 * "Alternate" .toString()<p>
43 * Simulates the way Java Object implements "toString()"
45 * @return The Java hashed UID of the object (i.e. : NAME@HASH)
47 @SuppressWarnings("nls")
48 public String
getReferenceToString() {
49 return this.getClass().getName() + "@" + Integer
.toHexString(this.hashCode());
This page took 0.032636 seconds and 4 git commands to generate.