Changeset 580 for trunk/zoo-project/zoo-kernel/service_internal_java.c
- Timestamp:
- Feb 12, 2015, 11:18:07 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal_java.c
r539 r580 1 /* *1 /* 2 2 * Author : Gérald FENOY 3 3 * … … 25 25 #include "service_internal_java.h" 26 26 27 /** 28 * Load a JAVA class then run the static public method corresponding to the 29 * service by passing the conf, inputs and outputs parameters by reference. 30 * 31 * @param main_conf the conf maps containing the main.cfg settings 32 * @param request the map containing the HTTP request 33 * @param s the service structure 34 * @param real_inputs the maps containing the inputs 35 * @param real_outputs the maps containing the outputs 36 */ 27 37 int zoo_java_support(maps** main_conf,map* request,service* s,maps **real_inputs,maps **real_outputs){ 28 38 maps* m=*main_conf; … … 249 259 /** 250 260 * Error handling: display stack trace in an ExceptionReport Document 261 * 262 * @param env the JNI environment pointer 263 * @param main_conf the conf maps containing the main.cfg settings 251 264 */ 252 265 void displayStack(JNIEnv *env,maps* main_conf){ … … 287 300 } 288 301 302 /** 303 * Create a string containing the JVM -XX:* option for a given map 304 * Depending on the map' name: 305 * - in case the value is minus then the reult will be : -XX:-name 306 * - in case the value is plus then the reult will be : -XX:+name 307 * - in other cases the reult will be : -XX:name=value 308 * 309 * @param m the map containing the option 310 * @return a char* containing the valide JVM option (-XX:*) 311 */ 289 312 char *parseJVMXXOption(map* m){ 290 313 char *res=(char*)malloc((strlen(m->name)+strlen(m->value)+5)*sizeof(char)); … … 298 321 } 299 322 323 /** 324 * Create a string containing the JVM -X*:* option for a given map. 325 * The reult will be in the following format: -Xname:value 326 * 327 * @param m the map containing the option 328 * @return a char* containing the valide JVM option (-XX:*) 329 */ 300 330 char *parseJVMXOption(map* m){ 301 331 char *res=(char*)malloc((strlen(m->name)+strlen(m->value)+5)*sizeof(char)); … … 304 334 } 305 335 336 /** 337 * Convert a maps to a JAVA HashMap<String,HashMap<String,String>> 338 * 339 * @param env the JNI environment pointer 340 * @param t the maps to convert 341 * @param scHashMapClass the HashMap class 342 * @param scHashMap_class the HashMap class 343 * @param scHashMap_constructor the pointer to the hashMap constructor method 344 * @return a created JAVA HashMap containing the converted maps 345 * @warning make sure to free ressources returned by this function 346 */ 306 347 jobject HashMap_FromMaps(JNIEnv *env,maps* t,jclass scHashMapClass,jclass scHashMap_class,jmethodID scHashMap_constructor){ 307 348 jobject scObject,scObject1; … … 439 480 } 440 481 482 /** 483 * Convert a JAVA HashMap<String,HashMap<String,String>> to a maps 484 * 485 * @param env the JNI environment pointer 486 * @param t the HashMap 487 * @param scHashMapClass the hashMap class 488 * @return a created maps containing the converted HashMap 489 * @warning make sure to free ressources returned by this function 490 */ 441 491 maps* mapsFromHashMap(JNIEnv *env,jobject t,jclass scHashMapClass){ 442 492 #ifdef DEBUG
Note: See TracChangeset
for help on using the changeset viewer.