Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't specify RuntimeExceptions in throws clauses
[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      setBound
65  * Signature  (D)B
66  */
67 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_setBound(JNIEnv *env, jobject jvm, jdouble bound);
68
69 /**
70  * Class            org_simgrid_msg_VM
71  * Method           create
72  * Signature    ()V
73  */
74 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_create(JNIEnv* env, jobject jvm, jobject jhost, jstring jname,
75                                                       jint jramsize, jint dprate, jint mig_netspeed);
76
77 /**
78  * Class            org_simgrid_msg_VM
79  * Method           destroy
80  * Signature    ()V
81  */
82 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_nativeFinalize(JNIEnv *env, jobject jvm);
83
84 /**
85  * Class      org_simgrid_msg_VM
86  * Method      start
87  * Signature  (I)V
88  */
89 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_start(JNIEnv *env, jobject jvm);
90
91 /**
92  * Class      org_simgrid_msg_VM
93  * Method      nativeMigrate
94  * Signature  (Lorg/simgrid/msg/Host;)V
95  */
96 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_internalmig(JNIEnv *env, jobject jvm, jobject jhost);
97
98 /**
99  * Class      org_simgrid_msg_VM
100  * Method      suspend
101  * Signature  ()V
102  */
103 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_suspend(JNIEnv *env, jobject jvm);
104
105 /**
106  * Class      org_simgrid_msg_VM
107  * Method      resume
108  * Signature  ()V
109  */
110 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_resume(JNIEnv *env, jobject jvm);
111
112 /**
113  * Class      org_simgrid_msg_VM
114  * Method      shutdown
115  * Signature  ()V
116  */
117 JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_shutdown(JNIEnv *env, jobject jvm);
118
119 SG_END_DECL()
120 #endif