Ignore:
Timestamp:
Feb 12, 2015, 11:18:07 PM (9 years ago)
Author:
djay
Message:

Continue adding initial doxygen documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service_internal_java.c

    r539 r580  
    1 /**
     1/*
    22 * Author : Gérald FENOY
    33 *
     
    2525#include "service_internal_java.h"
    2626
     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 */
    2737int zoo_java_support(maps** main_conf,map* request,service* s,maps **real_inputs,maps **real_outputs){
    2838  maps* m=*main_conf;
     
    249259/**
    250260 * 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
    251264 */
    252265void displayStack(JNIEnv *env,maps* main_conf){
     
    287300}
    288301
     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 */
    289312char *parseJVMXXOption(map* m){
    290313  char *res=(char*)malloc((strlen(m->name)+strlen(m->value)+5)*sizeof(char));
     
    298321}
    299322
     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 */
    300330char *parseJVMXOption(map* m){
    301331  char *res=(char*)malloc((strlen(m->name)+strlen(m->value)+5)*sizeof(char));
     
    304334}
    305335
     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 */
    306347jobject HashMap_FromMaps(JNIEnv *env,maps* t,jclass scHashMapClass,jclass scHashMap_class,jmethodID scHashMap_constructor){
    307348  jobject scObject,scObject1;
     
    439480}
    440481
     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 */
    441491maps* mapsFromHashMap(JNIEnv *env,jobject t,jclass scHashMapClass){
    442492#ifdef DEBUG
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png