Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move parts of the kernel to the right subdir
[simgrid.git] / src / bindings / java / jmsg_vm.h
1 /* Functions related to the MSG VM API. */
2
3 /* Copyright (c) 2012-2015. The SimGrid Team.
4  * All rights reserved.                                                     */
5
6 /* This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package. */
8
9 #ifndef MSG_VM_H
10 #define MSG_VM_H
11
12 #include <jni.h>
13 #include "simgrid/msg.h"
14
15 SG_BEGIN_DECL()
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 Java_org_simgrid_msg_VM_nativeInit(JNIEnv *env, jclass);
26
27 /**
28  * Class      org_simgrid_msg_VM
29  * Method      isCreated
30  * Signature  ()B
31  */
32 JNIEXPORT jint JNICALL Java_org_simgrid_msg_VM_isCreated(JNIEnv *env, jobject jvm);
33
34 /**
35  * Class      org_simgrid_msg_VM
36  * Method      isRunning
37  * Signature  ()B
38  */
39 JNIEXPORT jint JNICALL Java_org_simgrid_msg_VM_isRunning(JNIEnv *env, jobject jvm);
40
41 /**
42  * Class      org_simgrid_msg_VM
43  * Method      isMigrating
44  * Signature  ()B
45  */
46 JNIEXPORT jint JNICALL Java_org_simgrid_msg_VM_isMigrating(JNIEnv *env, jobject jvm);
47
48 /**
49  * Class      org_simgrid_msg_VM
50  * Method      isSuspended
51  * Signature  ()B
52  */
53 JNIEXPORT jint JNICALL Java_org_simgrid_msg_VM_isSuspended(JNIEnv *env, jobject jvm);
54
55 /**
56  * Class      org_simgrid_msg_VM
57  * Method      isResuming
58  * Signature  ()B
59  */
60 JNIEXPORT jint JNICALL Java_org_simgrid_msg_VM_isResuming(JNIEnv *env, jobject jvm);
61
62 /**
63  * Class      org_simgrid_msg_VM
64  * Method      isSuspended
65  * Signature  ()B
66  */
67 JNIEXPORT jint JNICALL Java_org_simgrid_msg_VM_isSaving(JNIEnv *env, jobject jvm);
68
69 /**
70  * Class      org_simgrid_msg_VM
71  * Method      isSave
72  * Signature  ()B
73  */
74 JNIEXPORT jint JNICALL Java_org_simgrid_msg_VM_isSaved(JNIEnv *env, jobject jvm);
75
76 /**
77  * Class      org_simgrid_msg_VM
78  * Method      isResuming
79  * Signature  ()B
80  */
81 JNIEXPORT jint JNICALL Java_org_simgrid_msg_VM_isRestoring(JNIEnv *env, jobject jvm);
82
83 /**
84  * Class      org_simgrid_msg_VM
85  * Method      setBound
86  * Signature  (D)B
87  */
88 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_setBound(JNIEnv *env, jobject jvm, jdouble bound);
89
90 /**
91  * Class            org_simgrid_msg_VM
92  * Method           create
93  * Signature    ()V
94  */
95 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_create(JNIEnv *env, jobject jvm, jobject jhost, jstring jname,
96                                                       jint jncore, jint jramsize, jint jnetcap, jstring jdiskpath,
97                                                       jint jdisksize, jint dprate, jint mig_netspeed);
98
99 /**
100  * Class            org_simgrid_msg_VM
101  * Method           destroy
102  * Signature    ()V
103  */
104 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_nativeFinalize(JNIEnv *env, jobject jvm);
105
106 /**
107  * Class      org_simgrid_msg_VM
108  * Method      start
109  * Signature  (I)V
110  */
111 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_start(JNIEnv *env, jobject jvm);
112
113 /**
114  * Class      org_simgrid_msg_VM
115  * Method      nativeMigrate
116  * Signature  (Lorg/simgrid/msg/Host;)V
117  */
118 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_internalmig(JNIEnv *env, jobject jvm, jobject jhost);
119
120 /**
121  * Class      org_simgrid_msg_VM
122  * Method      suspend
123  * Signature  ()V
124  */
125 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_suspend(JNIEnv *env, jobject jvm);
126
127 /**
128  * Class      org_simgrid_msg_VM
129  * Method      resume
130  * Signature  ()V
131  */
132 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_resume(JNIEnv *env, jobject jvm);
133
134 /**
135  * Class      org_simgrid_msg_VM
136  * Method      shutdown
137  * Signature  ()V
138  */
139 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_shutdown(JNIEnv *env, jobject jvm);
140
141 /**
142  * Class            org_simgrid_msg_VM
143  * Method           save
144  * Signature    ()V
145  */
146 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_save(JNIEnv *env, jobject jvm);
147
148 /**
149  * Class            org_simgrid_msg_VM
150  * Method           restore
151  * Signature    ()V
152  */
153 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_restore(JNIEnv *env, jobject jvm);
154
155 SG_END_DECL()
156 #endif