Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move functions from MsgNative to Host, and from jmsg to jmsg_host
[simgrid.git] / src / jmsg_host.h
index 1f40c13..d4ddd1d 100644 (file)
@@ -85,16 +85,6 @@ m_host_t jhost_get_native(JNIEnv * env, jobject jhost);
  */
 const char *jhost_get_name(jobject jhost, JNIEnv * env);
 
  */
 const char *jhost_get_name(jobject jhost, JNIEnv * env);
 
-
-/**
- * This function sets the name of a MSG        host.
- *
- * @param host                 The host concerned by the operation.
- * @param jname                        The new name of the host.
- * @param env                  The environment of the current thread
- */
-void jhost_set_name(jobject jhost, jstring jname, JNIEnv * env);
-
 /**
  * This function tests if a java host instance is valid.
  * A java host object is valid if it is bind to a native host.
 /**
  * This function tests if a java host instance is valid.
  * A java host object is valid if it is bind to a native host.
@@ -107,4 +97,59 @@ void jhost_set_name(jobject jhost, jstring jname, JNIEnv * env);
  */
 jboolean jhost_is_valid(jobject jhost, JNIEnv * env);
 
  */
 jboolean jhost_is_valid(jobject jhost, JNIEnv * env);
 
+/*
+ * Class               simgrid_msg_Host
+ * Method              getByName
+ * Signature   (Ljava/lang/String;)Lsimgrid/msg/Host;
+ */
+JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Host_getByName
+    (JNIEnv *, jclass, jstring);
+
+/*
+ * Class               simgrid_msg_Host
+ * Method              currentHost
+ * Signature   ()Lsimgrid/msg/Host;
+ */
+JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Host_currentHost
+    (JNIEnv *, jclass);
+
+/*
+ * Class               simgrid_msg_Host
+ * Method              getName
+ * Signature   ()Ljava/lang/String;
+ */
+JNIEXPORT jstring JNICALL Java_org_simgrid_msg_Host_getName
+    (JNIEnv *, jobject);
+/*
+ * Class               simgrid_msg_Host
+ * Method              getCount
+ * Signature   ()I
+ */
+JNIEXPORT jint JNICALL Java_org_simgrid_msg_Host_getCount
+    (JNIEnv *, jclass);
+
+/*
+ * Class               simgrid_msg_Host
+ * Method              getSpeed
+ * Signature   ()D
+ */
+JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getSpeed
+    (JNIEnv *, jobject);
+/*
+ * Class               simgrid_msg_Host
+ * Method              getLoad
+ * Signature   ()I
+ */
+JNIEXPORT jint JNICALL
+Java_org_simgrid_msg_Host_getLoad(JNIEnv * env,
+                                       jobject jhost);
+
+/*
+ * Class               simgrid_msg_Msg
+ * Method              isAvail
+ * Signature   ()Z
+ */
+JNIEXPORT jboolean JNICALL Java_org_simgrid_msg_Host_isAvail
+    (JNIEnv *, jobject);
+
 #endif                          /*!MSG_JHOST_H */
 #endif                          /*!MSG_JHOST_H */