Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Properties available for cluster tag
[simgrid.git] / src / bindings / java / 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 void jvm_bind(JNIEnv *env, jobject jvm, msg_vm_t vm);
16 msg_vm_t jvm_get_native(JNIEnv *env, jobject jvm);
17
18 /*
19  * Class                        org_simgrid_msg_VM
20  * Method                       nativeInit
21  * Signature    ()V
22  */
23 JNIEXPORT void JNICALL
24 Java_org_simgrid_msg_VM_nativeInit(JNIEnv *env, jclass);
25 /**
26  * Class                        org_simgrid_msg_VM
27  * Method                       start
28  * Signature    (I)V
29  */
30 JNIEXPORT void JNICALL
31 Java_org_simgrid_msg_VM_start(JNIEnv *env, jobject jvm, jobject jhost, jstring jname, jint jcoreamount);
32 /**
33  * Class            org_simgrid_msg_VM
34  * Method           destroy
35  * Signature    ()V
36  */
37 JNIEXPORT void JNICALL
38 Java_org_simgrid_msg_VM_destroy(JNIEnv *env, jobject jvm);
39 /**
40  * Class                        org_simgrid_msg_VM
41  * Method                       isSuspended
42  * Signature    ()B
43  */
44 JNIEXPORT jboolean JNICALL
45 Java_org_simgrid_msg_VM_isSuspended(JNIEnv *env, jobject jvm);
46 /**
47  * Class                        org_simgrid_msg_VM
48  * Method                       isRunning
49  * Signature    ()B
50  */
51 JNIEXPORT jboolean JNICALL
52 Java_org_simgrid_msg_VM_isRunning(JNIEnv *env, jobject jvm);
53 /**
54  * Class                        org_simgrid_msg_VM
55  * Method                       bind
56  * Signature    (Lorg/simgrid/msg/Process;)V
57  */
58 JNIEXPORT void JNICALL
59 Java_org_simgrid_msg_VM_bind(JNIEnv *env, jobject jvm, jobject jprocess);
60 /**
61  * Class                        org_simgrid_msg_VM
62  * Method                       unbind
63  * Signature    (Lorg/simgrid/msg/Process;)V
64  */
65 JNIEXPORT void JNICALL
66 Java_org_simgrid_msg_VM_unbind(JNIEnv *env, jobject jvm, jobject jprocess);
67 /**
68  * Class                        org_simgrid_msg_VM
69  * Method                       migrate
70  * Signature    (Lorg/simgrid/msg/Host;)V
71  */
72 JNIEXPORT void JNICALL
73 Java_org_simgrid_msg_VM_migrate(JNIEnv *env, jobject jvm, jobject jhost);
74 /**
75  * Class                        org_simgrid_msg_VM
76  * Method                       suspend
77  * Signature    ()V
78  */
79 JNIEXPORT void JNICALL
80 Java_org_simgrid_msg_VM_suspend(JNIEnv *env, jobject jvm);
81 /**
82  * Class                        org_simgrid_msg_VM
83  * Method                       resume
84  * Signature    ()V
85  */
86 JNIEXPORT void JNICALL
87 Java_org_simgrid_msg_VM_resume(JNIEnv *env, jobject jvm);
88 /**
89  * Class                        org_simgrid_msg_VM
90  * Method                       shutdown
91  * Signature    ()V
92  */
93 JNIEXPORT void JNICALL
94 Java_org_simgrid_msg_VM_shutdown(JNIEnv *env, jobject jvm);
95 /**
96  * Class            org_simgrid_msg_VM
97  * Method           reboot
98  * Signature    ()V
99  */
100 JNIEXPORT void JNICALL
101 Java_org_simgrid_msg_VM_reboot(JNIEnv *env, jobject jvm);
102
103 JNIEXPORT jobject JNICALL
104 Java_org_simgrid_msg_VM_get_pm(JNIEnv *env, jobject jvm);
105 #endif