Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ensures that the native libraries are always loaded before trying to access them
[simgrid.git] / src / jmsg_vm.h
1 /* Functions related to the MSG VM API. */
2
3 /* Copyright (c) 2012. The SimGrid Team. */
4
5 /* This program is free software; you can redistribute it and/or modify it
6   * under the terms of the license (GNU LGPL) which comes with this package. */
7
8
9 #ifndef MSG_VM_H
10 #define MSG_VM_H
11
12 #include <jni.h>
13 #include "msg/msg.h"
14
15 jfieldID jvm_field_bind;
16
17 void jvm_bind(JNIEnv *env, jobject jvm, msg_vm_t vm);
18 msg_vm_t jvm_get_native(JNIEnv *env, jobject jvm);
19
20 /*
21  * Class                        org_simgrid_msg_VM
22  * Method                       nativeInit
23  * Signature    ()V
24  */
25 JNIEXPORT void JNICALL
26 Java_org_simgrid_msg_VM_nativeInit(JNIEnv *env, jclass);
27 /**
28  * Class                        org_simgrid_msg_VM
29  * Method                       start
30  * Signature    (I)V
31  */
32 JNIEXPORT void JNICALL
33 Java_org_simgrid_msg_VM_start(JNIEnv *env, jobject jvm, jobject jhost, jint jcoreamount);
34 /**
35  * Class            org_simgrid_msg_VM
36  * Method           destroy
37  * Signature    ()V
38  */
39 JNIEXPORT void JNICALL
40 Java_org_simgrid_msg_VM_destroy(JNIEnv *env, jobject jvm);
41 /**
42  * Class                        org_simgrid_msg_VM
43  * Method                       isSuspended
44  * Signature    ()B
45  */
46 JNIEXPORT jboolean JNICALL
47 Java_org_simgrid_msg_VM_isSuspended(JNIEnv *env, jobject jvm);
48 /**
49  * Class                        org_simgrid_msg_VM
50  * Method                       isRunning
51  * Signature    ()B
52  */
53 JNIEXPORT jboolean JNICALL
54 Java_org_simgrid_msg_VM_isRunning(JNIEnv *env, jobject jvm);
55 /**
56  * Class                        org_simgrid_msg_VM
57  * Method                       bind
58  * Signature    (Lorg/simgrid/msg/Process;)V
59  */
60 JNIEXPORT void JNICALL
61 Java_org_simgrid_msg_VM_bind(JNIEnv *env, jobject jvm, jobject jprocess);
62 /**
63  * Class                        org_simgrid_msg_VM
64  * Method                       unbind
65  * Signature    (Lorg/simgrid/msg/Process;)V
66  */
67 JNIEXPORT void JNICALL
68 Java_org_simgrid_msg_VM_unbind(JNIEnv *env, jobject jvm, jobject jprocess);
69 /**
70  * Class                        org_simgrid_msg_VM
71  * Method                       migrate
72  * Signature    (Lorg/simgrid/msg/Host;)V
73  */
74 JNIEXPORT void JNICALL
75 Java_org_simgrid_msg_VM_migrate(JNIEnv *env, jobject jvm, jobject jhost);
76 /**
77  * Class                        org_simgrid_msg_VM
78  * Method                       suspend
79  * Signature    ()V
80  */
81 JNIEXPORT void JNICALL
82 Java_org_simgrid_msg_VM_suspend(JNIEnv *env, jobject jvm);
83 /**
84  * Class                        org_simgrid_msg_VM
85  * Method                       resume
86  * Signature    ()V
87  */
88 JNIEXPORT void JNICALL
89 Java_org_simgrid_msg_VM_resume(JNIEnv *env, jobject jvm);
90 /**
91  * Class                        org_simgrid_msg_VM
92  * Method                       shutdown
93  * Signature    ()V
94  */
95 JNIEXPORT void JNICALL
96 Java_org_simgrid_msg_VM_shutdown(JNIEnv *env, jobject jvm);
97 /**
98  * Class            org_simgrid_msg_VM
99  * Method           reboot
100  * Signature    ()V
101  */
102 JNIEXPORT void JNICALL
103 Java_org_simgrid_msg_VM_reboot(JNIEnv *env, jobject jvm);
104
105 #endif