ZOO-Project
|
Go to the source code of this file.
Functions | |
jobject | HashMap_FromMaps (JNIEnv *, maps *, jclass, jclass, jmethodID) |
Convert a maps to a JAVA HashMap<String,HashMap<String,String>> More... | |
maps * | mapsFromHashMap (JNIEnv *, jobject, jclass) |
Convert a JAVA HashMap<String,HashMap<String,String>> to a maps. More... | |
void | displayStack (JNIEnv *, maps *) |
Error handling: display stack trace in an ExceptionReport Document. More... | |
char * | parseJVMXXOption (map *) |
Create a string containing the JVM -XX:* option for a given map Depending on the map' name: More... | |
char * | parseJVMXOption (map *) |
Create a string containing the JVM -X** option for a given map. More... | |
char * | parseJVMOption (map *) |
Create a string containing the JVM -D* options for a given map The result will be : -Dname=value. More... | |
int | zoo_java_support (maps **, map *, service *, maps **, maps **) |
Load a JAVA class then run the static public method corresponding to the service by passing the conf, inputs and outputs parameters by reference. More... | |
Function Documentation
void displayStack | ( | JNIEnv * | env, |
maps * | main_conf | ||
) |
Error handling: display stack trace in an ExceptionReport Document.
- Parameters
-
env the JNI environment pointer main_conf the conf maps containing the main.cfg settings
jobject HashMap_FromMaps | ( | JNIEnv * | env, |
maps * | t, | ||
jclass | scHashMapClass, | ||
jclass | scHashMap_class, | ||
jmethodID | scHashMap_constructor | ||
) |
Convert a maps to a JAVA HashMap<String,HashMap<String,String>>
- Parameters
-
env the JNI environment pointer t the maps to convert scHashMapClass the HashMap class scHashMap_class the HashMap class scHashMap_constructor the pointer to the hashMap constructor method
- Returns
- a created JAVA HashMap containing the converted maps
- Warning
- make sure to free resources returned by this function
maps* mapsFromHashMap | ( | JNIEnv * | env, |
jobject | t, | ||
jclass | scHashMapClass | ||
) |
Convert a JAVA HashMap<String,HashMap<String,String>> to a maps.
- Parameters
-
env the JNI environment pointer t the HashMap scHashMapClass the hashMap class
- Returns
- a created maps containing the converted HashMap
- Warning
- make sure to free resources returned by this function
What need to be done (in java). Set set = hm.entrySet(); Iterator i = set.iterator(); while(i.hasNext()){ Map.Entry me = (Map.Entry)i.next(); System.out.println(me.getKey() + " : " + me.getValue() ); }
char* parseJVMOption | ( | map * | m | ) |
Create a string containing the JVM -D* options for a given map The result will be : -Dname=value.
- Parameters
-
m the map containing the option
- Returns
- a char* containing the valide JVM option (-D*)
char* parseJVMXOption | ( | map * | m | ) |
Create a string containing the JVM -X** option for a given map.
The result will be in the following format: -Xnamevalue
- Parameters
-
m the map containing the option
- Returns
- a char* containing the valide JVM option (-X**)
char* parseJVMXXOption | ( | map * | m | ) |
Create a string containing the JVM -XX:* option for a given map Depending on the map' name:
- in case the value is minus then the result will be : -XX:-name
- in case the value is plus then the result will be : -XX:+name
- in other cases the result will be : -XX:name=value
- Parameters
-
m the map containing the option
- Returns
- a char* containing the valide JVM option (-XX:*)
int zoo_java_support | ( | maps ** | main_conf, |
map * | request, | ||
service * | s, | ||
maps ** | real_inputs, | ||
maps ** | real_outputs | ||
) |
Load a JAVA class then run the static public method corresponding to the service by passing the conf, inputs and outputs parameters by reference.
- Parameters
-
main_conf the conf maps containing the main.cfg settings request the map containing the HTTP request s the service structure real_inputs the maps containing the inputs real_outputs the maps containing the outputs
The 3 standard parameter for each services
Generated on Tue Sep 10 2024 19:00:02 for ZOO-Project by
![doxygen](doxygen.png)