* No extra delay occurs. If you want to simulate this too, you want to use a MSG_process_sleep() or something
*/
public native void shutdown();
+ /**
+ * @brief Reboot the VM, restarting all the processes in it.
+ */
+ public native void reboot();
}
\ No newline at end of file
xbt_ex_free(e);
}
}
+JNIEXPORT void JNICALL
+Java_org_simgrid_msg_VM_reboot(JNIEnv *env, jobject jvm) {
+ msg_vm_t vm = jvm_get_native(env,jvm);
+ xbt_ex_t e;
+ TRY {
+ MSG_vm_reboot(vm);
+ }
+ CATCH(e) {
+ xbt_ex_free(e);
+ }
+}
*/
JNIEXPORT void JNICALL
Java_org_simgrid_msg_VM_shutdown(JNIEnv *env, jobject jvm);
+/**
+ * Class org_simgrid_msg_VM
+ * Method reboot
+ * Signature ()V
+ */
+JNIEXPORT void JNICALL
+Java_org_simgrid_msg_VM_reboot(JNIEnv *env, jobject jvm);
+
#endif