X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/14b60cad3005c71ebc2d752dbdff94da9b64dde0..8199067e1f2a6ea4d3d8a38df1a4fb3f25d364da:/src/bindings/java/jmsg_host.h diff --git a/src/bindings/java/jmsg_host.h b/src/bindings/java/jmsg_host.h index a689fda735..9033531f54 100644 --- a/src/bindings/java/jmsg_host.h +++ b/src/bindings/java/jmsg_host.h @@ -1,10 +1,10 @@ /* Functions related to the java host instances. */ -/* Copyright (c) 2007-2012. The SimGrid Team. +/* Copyright (c) 2007-2014. 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 @@ -112,6 +112,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 @@ -134,6 +152,13 @@ JNIEXPORT jint JNICALL Java_org_simgrid_msg_Host_getCount */ JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getSpeed (JNIEnv *, jobject); +/* + * Class org_simgrid_msg_Host + * Method getCoreNumber + * Signature ()D + */ +JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getCoreNumber + (JNIEnv *, jobject); /* * Class org_simgrid_msg_Host * Method getLoad @@ -164,6 +189,27 @@ Java_org_simgrid_msg_Host_setProperty(JNIEnv *env, jobject jhost, jobject jname, JNIEXPORT jboolean JNICALL Java_org_simgrid_msg_Host_isAvail (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