X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e37c1e4bba9bb89cd2842f08cde998eb7f941d04..c9e7a3171bb86b00cb3ed20e492750d25bfa89e3:/src/bindings/java/jmsg_host.h diff --git a/src/bindings/java/jmsg_host.h b/src/bindings/java/jmsg_host.h index 0dc01c25da..b3d8b81ff9 100644 --- a/src/bindings/java/jmsg_host.h +++ b/src/bindings/java/jmsg_host.h @@ -1,16 +1,18 @@ /* Functions related to the java host instances. */ -/* Copyright (c) 2007-2012. The SimGrid Team. +/* Copyright (c) 2007-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it - * under the terms of the license (GNU LGPL) which comes with this package. */ + * under the terms of the license (GNU LGPL) which comes with this package. */ #ifndef MSG_JHOST_H #define MSG_JHOST_H #include -#include "msg/msg.h" +#include "simgrid/msg.h" + +SG_BEGIN_DECL() /** * This function returns a new java host instance. @@ -112,6 +114,24 @@ Java_org_simgrid_msg_Host_nativeInit(JNIEnv *env, jclass cls); JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Host_getByName (JNIEnv *, jclass, jstring); +/** + * This function start the host if it is off + * + * @param jhost The host to test the validity. + * @param env The environment of the current thread + * + */ +JNIEXPORT void JNICALL Java_org_simgrid_msg_Host_on(JNIEnv *env, jobject jhost); + +/** + * This function stop the host if it is on + * + * @param jhost The host to test the validity. + * @param env The environment of the current thread + * + */ +JNIEXPORT void JNICALL Java_org_simgrid_msg_Host_off(JNIEnv *env, jobject jhost); + /* * Class org_simgrid_msg_Host * Method currentHost @@ -136,12 +156,11 @@ JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getSpeed (JNIEnv *, jobject); /* * Class org_simgrid_msg_Host - * Method getLoad - * Signature ()I + * Method getCoreNumber + * Signature ()D */ -JNIEXPORT jint JNICALL -Java_org_simgrid_msg_Host_getLoad(JNIEnv * env, - jobject jhost); +JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getCoreNumber + (JNIEnv *, jobject); /* * Class org_simgrid_msg_Host * Method getProperty @@ -158,12 +177,33 @@ JNIEXPORT void JNICALL Java_org_simgrid_msg_Host_setProperty(JNIEnv *env, jobject jhost, jobject jname, jobject jvalue); /* * Class org_simgrid_msg_Host - * Method isAvail + * Method isOn * Signature ()Z */ -JNIEXPORT jboolean JNICALL Java_org_simgrid_msg_Host_isAvail +JNIEXPORT jboolean JNICALL Java_org_simgrid_msg_Host_isOn (JNIEnv *, jobject); + +/* + * Class org_simgrid_msg_Host + * Method getMountedStorage + * Signature: ()[Lorg/simgrid/msg/Storage; + */ +JNIEXPORT jobjectArray JNICALL Java_org_simgrid_msg_Host_getMountedStorage(JNIEnv * env, jobject jhost); + +/* + * Class org_simgrid_msg_Host + * Method getAttachedStorageList + */ +JNIEXPORT jobjectArray JNICALL Java_org_simgrid_msg_Host_getAttachedStorage(JNIEnv * env, jobject jhost); + +/* + * Class org_simgrid_msg_Host + * Method getStorageContent + */ +JNIEXPORT jobjectArray JNICALL Java_org_simgrid_msg_Host_getStorageContent(JNIEnv * env, jobject jhost); + + /** * Class org_simgrid_msg_Host * Method all @@ -171,4 +211,11 @@ JNIEXPORT jboolean JNICALL Java_org_simgrid_msg_Host_isAvail JNIEXPORT jobjectArray JNICALL Java_org_simgrid_msg_Host_all(JNIEnv *, jclass); +JNIEXPORT void JNICALL +Java_org_simgrid_msg_Host_setAsyncMailbox(JNIEnv * env, jclass cls_arg, jobject jname); + + + #endif /*!MSG_JHOST_H */ + +SG_END_DECL()