A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[LUA] Fixed compile time warnings, 2/2
[simgrid.git]
/
src
/
bindings
/
java
/
jmsg_vm.h
diff --git
a/src/bindings/java/jmsg_vm.h
b/src/bindings/java/jmsg_vm.h
index
808fbd7
..
6168766
100644
(file)
--- a/
src/bindings/java/jmsg_vm.h
+++ b/
src/bindings/java/jmsg_vm.h
@@
-1,16
+1,18
@@
/* Functions related to the MSG VM API. */
/* Functions related to the MSG VM API. */
-/* Copyright (c) 2012. The SimGrid Team. */
+/* Copyright (c) 2012-2015. The SimGrid Team.
+ * All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
/* This program is free software; you can redistribute it and/or modify it
- * under the terms of the license (GNU LGPL) which comes with this package. */
-
+ * under the terms of the license (GNU LGPL) which comes with this package. */
#ifndef MSG_VM_H
#define MSG_VM_H
#include <jni.h>
#ifndef MSG_VM_H
#define MSG_VM_H
#include <jni.h>
-#include "msg/msg.h"
+#include "simgrid/msg.h"
+
+SG_BEGIN_DECL()
void jvm_bind(JNIEnv *env, jobject jvm, msg_vm_t vm);
msg_vm_t jvm_get_native(JNIEnv *env, jobject jvm);
void jvm_bind(JNIEnv *env, jobject jvm, msg_vm_t vm);
msg_vm_t jvm_get_native(JNIEnv *env, jobject jvm);
@@
-79,6
+81,13
@@
Java_org_simgrid_msg_VM_isSaved(JNIEnv *env, jobject jvm);
*/
JNIEXPORT jint JNICALL
Java_org_simgrid_msg_VM_isRestoring(JNIEnv *env, jobject jvm);
*/
JNIEXPORT jint JNICALL
Java_org_simgrid_msg_VM_isRestoring(JNIEnv *env, jobject jvm);
+/**
+ * Class org_simgrid_msg_VM
+ * Method setBound
+ * Signature ()B
+ */
+JNIEXPORT void JNICALL
+Java_org_simgrid_msg_VM_setBound(JNIEnv *env, jobject jvm, jint load);
/**
* Class org_simgrid_msg_VM
/**
* Class org_simgrid_msg_VM
@@
-87,7
+96,7
@@
Java_org_simgrid_msg_VM_isRestoring(JNIEnv *env, jobject jvm);
*/
JNIEXPORT void JNICALL
Java_org_simgrid_msg_VM_create(JNIEnv *env, jobject jvm, jobject jhost, jstring jname,
*/
JNIEXPORT void JNICALL
Java_org_simgrid_msg_VM_create(JNIEnv *env, jobject jvm, jobject jhost, jstring jname,
- jint jncore, jint jramsize, jint jnetcap, jstring jdiskpath, jint jdisksize);
+ jint jncore, jint jramsize, jint jnetcap, jstring jdiskpath, jint jdisksize
, jint dprate, jint mig_netspeed
);
/**
* Class org_simgrid_msg_VM
/**
* Class org_simgrid_msg_VM
@@
-95,7
+104,7
@@
Java_org_simgrid_msg_VM_create(JNIEnv *env, jobject jvm, jobject jhost, jstring
* Signature ()V
*/
JNIEXPORT void JNICALL
* Signature ()V
*/
JNIEXPORT void JNICALL
-Java_org_simgrid_msg_VM_
destroy
(JNIEnv *env, jobject jvm);
+Java_org_simgrid_msg_VM_
nativeFinalize
(JNIEnv *env, jobject jvm);
/**
* Class org_simgrid_msg_VM
* Method start
/**
* Class org_simgrid_msg_VM
* Method start
@@
-146,4
+155,9
@@
Java_org_simgrid_msg_VM_save(JNIEnv *env, jobject jvm);
JNIEXPORT void JNICALL
Java_org_simgrid_msg_VM_restore(JNIEnv *env, jobject jvm);
JNIEXPORT void JNICALL
Java_org_simgrid_msg_VM_restore(JNIEnv *env, jobject jvm);
+JNIEXPORT jobject JNICALL
+Java_org_simgrid_msg_VM_get_pm(JNIEnv *env, jobject jvm);
+
+SG_END_DECL()
+
#endif
#endif