/**
* Unbind the communication object
*/
- public native void destroy() throws NativeException;
+ protected native void destroy() throws NativeException;
/**
* Returns if the communication is finished or not.
* If the communication has finished and there was an error,
* @return
*/
public final static native double getClock();
-
+ /**
+ * Issue an "debug" logging message.
+ * @param s message to log.
+ */
+ public final static native void debug(String s);
/** Issue an information logging message
* @param s
*/
(*env)->ReleaseStringUTFChars(env, jplatformFile, platformFile);
}
-
+JNIEXPORT void JNICALL
+Java_org_simgrid_msg_Msg_debug(JNIEnv * env, jclass cls, jstring js)
+{
+ const char *s = (*env)->GetStringUTFChars(env, js, 0);
+ XBT_DEBUG("%s", s);
+ (*env)->ReleaseStringUTFChars(env, js, s);
+}
JNIEXPORT void JNICALL
Java_org_simgrid_msg_Msg_info(JNIEnv * env, jclass cls, jstring js)
{
JNIEXPORT void JNICALL
Java_org_simgrid_msg_Msg_init(JNIEnv * env, jclass cls, jobjectArray jargs);
+JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_debug(JNIEnv *, jclass,
+ jstring);
+
+
JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_info(JNIEnv *, jclass,
jstring);