Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
e19776ca9ede09afcd07ba316bbd61003e1f01be
[simgrid.git] / src / bindings / java / jmsg_vm.h
1 /* Functions related to the Virtual Machines.                               */
2
3 /* Copyright (c) 2012-2017. The SimGrid Team. All rights reserved.          */
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 #ifndef MSG_VM_H
9 #define MSG_VM_H
10
11 #include <jni.h>
12 #include "simgrid/msg.h"
13
14 SG_BEGIN_DECL()
15
16 void jvm_bind(JNIEnv *env, jobject jvm, msg_vm_t vm);
17 msg_vm_t jvm_get_native(JNIEnv *env, jobject jvm);
18
19 /*
20  * Class      org_simgrid_msg_VM
21  * Method      nativeInit
22  * Signature  ()V
23  */
24 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_nativeInit(JNIEnv *env, jclass cls);
25
26 /**
27  * Class      org_simgrid_msg_VM
28  * Method      isCreated
29  * Signature  ()B
30  */
31 JNIEXPORT jint JNICALL Java_org_simgrid_msg_VM_isCreated(JNIEnv *env, jobject jvm);
32
33 /**
34  * Class      org_simgrid_msg_VM
35  * Method      isRunning
36  * Signature  ()B
37  */
38 JNIEXPORT jint JNICALL Java_org_simgrid_msg_VM_isRunning(JNIEnv *env, jobject jvm);
39
40 /**
41  * Class      org_simgrid_msg_VM
42  * Method      isMigrating
43  * Signature  ()B
44  */
45 JNIEXPORT jint JNICALL Java_org_simgrid_msg_VM_isMigrating(JNIEnv *env, jobject jvm);
46
47 /**
48  * Class      org_simgrid_msg_VM
49  * Method      isSuspended
50  * Signature  ()B
51  */
52 JNIEXPORT jint JNICALL Java_org_simgrid_msg_VM_isSuspended(JNIEnv *env, jobject jvm);
53
54 /**
55  * Class      org_simgrid_msg_VM
56  * Method      isResuming
57  * Signature  ()B
58  */
59 JNIEXPORT jint JNICALL Java_org_simgrid_msg_VM_isResuming(JNIEnv *env, jobject jvm);
60
61 /**
62  * Class      org_simgrid_msg_VM
63  * Method      setBound
64  * Signature  (D)B
65  */
66 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_setBound(JNIEnv *env, jobject jvm, jdouble bound);
67
68 /**
69  * Class            org_simgrid_msg_VM
70  * Method           create
71  * Signature    ()V
72  */
73 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_create(JNIEnv* env, jobject jvm, jobject jhost, jstring jname,
74                                                       jint jramsize, jint dprate, jint mig_netspeed);
75
76 /**
77  * Class            org_simgrid_msg_VM
78  * Method           destroy
79  * Signature    ()V
80  */
81 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_nativeFinalize(JNIEnv *env, jobject jvm);
82
83 /**
84  * Class      org_simgrid_msg_VM
85  * Method      start
86  * Signature  (I)V
87  */
88 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_start(JNIEnv *env, jobject jvm);
89
90 /**
91  * Class      org_simgrid_msg_VM
92  * Method      nativeMigrate
93  * Signature  (Lorg/simgrid/msg/Host;)V
94  */
95 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_internalmig(JNIEnv *env, jobject jvm, jobject jhost);
96
97 /**
98  * Class      org_simgrid_msg_VM
99  * Method      suspend
100  * Signature  ()V
101  */
102 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_suspend(JNIEnv *env, jobject jvm);
103
104 /**
105  * Class      org_simgrid_msg_VM
106  * Method      resume
107  * Signature  ()V
108  */
109 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_resume(JNIEnv *env, jobject jvm);
110
111 /**
112  * Class      org_simgrid_msg_VM
113  * Method      shutdown
114  * Signature  ()V
115  */
116 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_shutdown(JNIEnv *env, jobject jvm);
117
118 SG_END_DECL()
119 #endif