Changeset 902 for branches/prototype-v0/zoo-project/zoo-kernel
- Timestamp:
- Mar 29, 2019, 3:05:09 PM (6 years ago)
- Location:
- branches/prototype-v0/zoo-project/zoo-kernel
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/Makefile.in
r899 r902 66 66 67 67 service_yaml.o: service_yaml.c service.h 68 g ++${YAML_CFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service_yaml.c68 gcc ${YAML_CFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service_yaml.c 69 69 70 70 meta_sql.o: meta_sql.c meta_sql.h service.h … … 121 121 122 122 libzoo_service.${EXT}: version.h service_internal.o service.o sqlapi.o 123 g cc -shared ${GDAL_CFLAGS} ${DEFAULT_OPTS} -fpic -o libzoo_service.${EXT} ${CFLAGS} service_internal.o service.o sqlapi.o ${FCGI_LDFLAGS} ${GDAL_LIBS} ${ZOO_LDFLAGS}123 g++ -shared ${GDAL_CFLAGS} ${DEFAULT_OPTS} -fpic -o libzoo_service.${EXT} ${CFLAGS} service_internal.o service.o sqlapi.o ${FCGI_LDFLAGS} ${GDAL_LIBS} ${ZOO_LDFLAGS} ${MACOS_LD_FLAGS} 124 124 125 125 zoo_loader.cgi: version.h libzoo_service.${EXT} zoo_loader.c zoo_service_loader.o ulinet.o service.h lex.sr.o service_conf.tab.o service_conf.y ulinet.o main_conf_read.tab.o lex.cr.o request_parser.o response_print.o server_internal.o caching.o ${MS_FILE} ${PYTHON_FILE} ${PHP_FILE} ${JAVA_FILE} ${JS_FILE} ${PERL_FILE} ${RUBY_FILE} ${YAML_FILE} ${OTB_FILE} ${R_FILE} ${SAGA_FILE} ${HPC_FILES} ${METADB_FILE} ${JSON_FILE} service_callback.o -
branches/prototype-v0/zoo-project/zoo-kernel/ZOOMakefile.opts.in
r900 r902 93 93 PHP_FILE=@PHP_FILE@ 94 94 95 96 95 PERLCFLAGS=@PERL_CPPFLAGS@ 97 96 PERLLDFLAGS=@PERL_LDFLAGS@ … … 103 102 HPC_ENABLED=@HPC_ENABLED@ 104 103 HPC_FILES=@HPC_FILES@ 104 105 CALLBACK_FILE=@CALLBACK_FILE@ 106 CALLBACK_USE=@CALLBACK_USE@ 105 107 106 108 OTBCFLAGS=@OTB_CPPFLAGS@ … … 119 121 MONO_FILE=@MONO_FILE@ 120 122 121 CFLAGS=@ SSH2_CPPFLAGS@ @PROJ_CPPFLAGS@ @RELY_ON_DB@ @DEB_DEF@ -fpic @OPENSSL_CFLAGS@ @UUID_CFLAGS@ ${FCGI_CFLAGS} ${YAML_CFLAGS} ${MACOS_CFLAGS} ${MS_CFLAGS} -I../../thirds/cgic206 -I. -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF122 LDFLAGS=-lzoo_service @SSH2_LDFLAGS@ @PROJ_LDFLAGS@ @DEFAULT_LIBS@ -L../../thirds/cgic206 -lcgic ${GDAL_LIBS} ${XML2LDFLAGS} ${PYTHONLDFLAGS} ${PERLLDFLAGS} 123 CFLAGS=@CALLBACK_USE@ @SSH2_CPPFLAGS@ @PROJ_CPPFLAGS@ @RELY_ON_DB@ @DEB_DEF@ -fpic @OPENSSL_CFLAGS@ @UUID_CFLAGS@ ${FCGI_CFLAGS} ${YAML_CFLAGS} ${MACOS_CFLAGS} ${MS_CFLAGS} -I../../thirds/cgic206 -I. -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF 124 LDFLAGS=-lzoo_service @SSH2_LDFLAGS@ @PROJ_LDFLAGS@ @DEFAULT_LIBS@ -L../../thirds/cgic206 -lcgic ${GDAL_LIBS} ${XML2LDFLAGS} ${PYTHONLDFLAGS} ${PERLLDFLAGS} ${PHPLDFLAGS} ${JAVALDFLAGS} ${JSLDFLAGS} ${FCGI_LDFLAGS} @OPENSSL_LDFLAGS@ @UUID_LDFLAGS@ ${MS_LDFLAGS} ${MACOS_LD_FLAGS} ${MACOS_LD_NET_FLAGS} ${YAML_LDFLAGS} ${OTBLDFLAGS} ${SAGA_LDFLAGS} ${MONO_LDFLAGS} ${RLDFLAGS} @JSON_LDFLAGS@ @XSLT_LDFLAGS@ 123 125 124 126 DATAROOTDIR=@datarootdir@/zoo-project -
branches/prototype-v0/zoo-project/zoo-kernel/configure.ac
r900 r902 65 65 #============================================================================ 66 66 67 AC_ARG_WITH([callback], 68 [AS_HELP_STRING([--with-callback=yes], [Activate callback invocation during HPC execution])], 69 [CALLBACK_ACTIVATED="$withval"], [CALLBACK_ACTIVATED="no"]) 70 67 71 AC_ARG_WITH([json], 68 72 [AS_HELP_STRING([--with-json=PATH], [Specifies an alternative location for the json-c library])], 69 73 [JSON_DIR="$withval"], [JSON_DIR="/usr/"]) 70 if test "x$JSON_DIR" != "x" 74 if test "x$JSON_DIR" != "x" && test "x$CALLBACK_ACTIVATED" == "xyes" 71 75 then 72 76 JSON_CPPFLAGS="-I$JSON_DIR/include/json-c/" … … 83 87 JSON_FILE="service_json.o" 84 88 JSON_ENABLED="-DJSON" 89 CALLBACK_FILE="service_callback.o" 90 CALLBACK_USE="-DUSE_CALLBACK" 85 91 fi 86 92 AC_SUBST([JSON_CPPFLAGS]) … … 88 94 AC_SUBST([JSON_FILE]) 89 95 AC_SUBST([JSON_ENABLED]) 96 AC_SUBST([CALLBACK_FILE]) 97 AC_SUBST([CALLBACK_USE]) 90 98 91 99 #============================================================================ -
branches/prototype-v0/zoo-project/zoo-kernel/response_print.c
r897 r902 33 33 #include "cpl_vsi.h" 34 34 #endif 35 #ifdef USE_ HPC35 #ifdef USE_CALLBACK 36 36 #include "service_callback.h" 37 37 #endif … … 1990 1990 nc = xmlNewNode(ns, BAD_CAST "ProcessOutputs"); 1991 1991 } 1992 //dumpMaps(outputs);1993 1992 maps* mcursor=outputs; 1994 1993 elements* scursor=serv->outputs; … … 2901 2900 else{ 2902 2901 maps* tmpMaps=getMaps(m,"lenv"); 2903 dumpMap(tmpMaps->content); 2904 #ifdef USE_HPC 2902 #ifdef USE_CALLBACK 2905 2903 invokeCallback(m,NULL,NULL,7,0); 2906 2904 #endif -
branches/prototype-v0/zoo-project/zoo-kernel/server_internal.c
r890 r902 26 26 #include "service_internal.h" 27 27 #include "response_print.h" 28 #include "service_callback.h"28 //#include "service_callback.h" 29 29 #include "mimetypes.h" 30 30 #ifndef WIN32 -
branches/prototype-v0/zoo-project/zoo-kernel/service_internal_hpc.c
r899 r902 471 471 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); 472 472 #endif 473 #ifdef USE_CALLBACK 473 474 invokeCallback(m,inputs,NULL,1,1); 474 475 invokeCallback(m,inputs,NULL,2,0); 476 #endif 475 477 if(getMapFromMaps(m,"lenv","mapError")!=NULL){ 478 #ifdef USE_CALLBACK 476 479 invokeCallback(*main_conf,inputs,NULL,7,0); 480 #endif 477 481 return -1; 478 482 } … … 489 493 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); 490 494 #endif 495 #ifdef USE_CALLBACK 491 496 invokeCallback(*main_conf,inputs,NULL,7,0); 497 #endif 492 498 #ifdef HPC_DEBUG 493 499 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); … … 498 504 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); 499 505 #endif 506 #ifdef USE_CALLBACK 500 507 invokeCallback(m,inputs,NULL,2,1); 508 #endif 501 509 #ifdef HPC_DEBUG 502 510 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); … … 611 619 fflush(stderr); 612 620 #endif 621 #ifdef USE_CALLBACK 613 622 invokeCallback(m,inputs,NULL,3,0); 623 #endif 614 624 #ifdef HPC_DEBUG 615 625 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); … … 708 718 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); 709 719 #endif 720 #ifdef USE_CALLBACK 710 721 invokeCallback(m,inputs,NULL,3,1); 722 #endif 711 723 #ifdef HPC_DEBUG 712 724 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); … … 717 729 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); 718 730 #endif 731 #ifdef USE_CALLBACK 719 732 invokeCallback(m,inputs,NULL,4,0); 733 #endif 720 734 #ifdef HPC_DEBUG 721 735 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); … … 731 745 fflush(stderr); 732 746 #endif 747 #ifdef USE_CALLBACK 733 748 invokeCallback(*main_conf,NULL,NULL,7,0); 749 #endif 734 750 #ifdef HPC_DEBUG 735 751 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); … … 748 764 if(copy0!=true){ 749 765 setMapInMaps(*main_conf,"lenv","message",_("Unable to upload the script")); 766 #ifdef USE_CALLBACK 750 767 invokeCallback(*main_conf,NULL,NULL,7,0); 768 #endif 751 769 errorException(*main_conf,_("Unable to upload the script"),"NoApplicableCode",NULL); 752 770 return -1; … … 790 808 fflush(stderr); 791 809 #endif 810 #ifdef USE_CALLBACK 792 811 invokeCallback(*main_conf,NULL,NULL,7,0); 812 #endif 793 813 #ifdef HPC_DEBUG 794 814 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); … … 808 828 fflush(stderr); 809 829 #endif 830 #ifdef USE_CALLBACK 810 831 invokeCallback(m,NULL,NULL,4,1); 832 #endif 811 833 #ifdef HPC_DEBUG 812 834 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); … … 836 858 fflush(stderr); 837 859 #endif 860 #ifdef USE_CALLBACK 838 861 invokeCallback(*main_conf,NULL,NULL,7,0); 862 #endif 839 863 removeReadLocks(main_conf); 840 864 #ifdef HPC_DEBUG … … 856 880 fflush(stderr); 857 881 #endif 882 #ifdef USE_CALLBACK 858 883 invokeCallback(*main_conf,NULL,NULL,7,0); 884 #endif 859 885 removeReadLocks(main_conf); 860 886 #ifdef HPC_DEBUG … … 872 898 fflush(stderr); 873 899 #endif 900 #ifdef USE_CALLBACK 874 901 invokeCallback(*main_conf,NULL,NULL,7,0); 902 #endif 875 903 removeReadLocks(main_conf); 876 904 #ifdef HPC_DEBUG … … 896 924 fflush(stderr); 897 925 #endif 926 #ifdef USE_CALLBACK 898 927 invokeCallback(*main_conf,NULL,NULL,7,0); 928 #endif 899 929 removeReadLocks(main_conf); 900 930 #ifdef HPC_DEBUG … … 912 942 fflush(stderr); 913 943 #endif 944 #ifdef USE_CALLBACK 914 945 invokeCallback(*main_conf,NULL,NULL,7,0); 946 #endif 915 947 removeReadLocks(main_conf); 916 948 #ifdef HPC_DEBUG … … 932 964 fflush(stderr); 933 965 #endif 966 #ifdef USE_CALLBACK 934 967 invokeCallback(m,NULL,outputs,5,0); 968 #endif 935 969 #ifdef HPC_DEBUG 936 970 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); … … 1006 1040 free(tmpStr); 1007 1041 } 1042 #ifdef USE_CALLBACK 1008 1043 invokeCallback(*main_conf,NULL,NULL,7,0); 1044 #endif 1009 1045 return SERVICE_FAILED; 1010 1046 } … … 1083 1119 free(tmpStr); 1084 1120 } 1121 #ifdef USE_CALLBACK 1085 1122 invokeCallback(*main_conf,NULL,NULL,7,0); 1123 #endif 1086 1124 return SERVICE_FAILED; 1087 1125 } … … 1101 1139 fflush(stderr); 1102 1140 #endif 1141 #ifdef USE_CALLBACK 1103 1142 invokeCallback(*main_conf,NULL,NULL,7,0); 1143 #endif 1104 1144 #ifdef HPC_DEBUG 1105 1145 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); … … 1117 1157 fflush(stderr); 1118 1158 #endif 1159 #ifdef USE_CALLBACK 1119 1160 invokeCallback(*main_conf,NULL,NULL,7,0); 1161 #endif 1120 1162 #ifdef HPC_DEBUG 1121 1163 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); -
branches/prototype-v0/zoo-project/zoo-kernel/service_yaml.c
r790 r902 487 487 addMapToIoType(¤t_element->supported,current_content); 488 488 } 489 freeMap s(¤t_content);489 freeMap(¤t_content); 490 490 free(current_content); 491 491 current_content=NULL; -
branches/prototype-v0/zoo-project/zoo-kernel/zoo_service_loader.c
r897 r902 107 107 #endif 108 108 109 #ifdef USE_ HPC109 #ifdef USE_CALLBACK 110 110 #include "service_json.h" 111 111 #include "service_callback.h" … … 2489 2489 recordServiceStatus(m); 2490 2490 #endif 2491 #ifdef USE_ HPC2491 #ifdef USE_CALLBACK 2492 2492 invokeCallback(m,NULL,NULL,0,0); 2493 2493 #endif … … 2533 2533 free(flenv); 2534 2534 2535 #ifdef USE_ HPC2535 #ifdef USE_CALLBACK 2536 2536 invokeCallback(m,request_input_real_format,NULL,1,0); 2537 2537 #endif … … 2550 2550 #else 2551 2551 recordResponse(m,fbkp1); 2552 #ifdef USE_ HPC2552 #ifdef USE_CALLBACK 2553 2553 invokeCallback(m,NULL,NULL,7,0); 2554 2554 #endif … … 2577 2577 if(getMapFromMaps(m,"lenv","mapError")!=NULL){ 2578 2578 setMapInMaps(m,"lenv","message",_("Issue with geographic data")); 2579 #ifdef USE_ HPC2579 #ifdef USE_CALLBACK 2580 2580 invokeCallback(m,NULL,NULL,7,0); 2581 2581 #endif … … 2634 2634 { 2635 2635 if (eres == SERVICE_SUCCEEDED) 2636 #ifdef USE_ HPC2636 #ifdef USE_CALLBACK 2637 2637 invokeCallback(m,NULL,request_output_real_format,5,1); 2638 2638 #endif … … 2665 2665 recordResponse(m,fbkp1); 2666 2666 if (eres == SERVICE_SUCCEEDED) 2667 #ifdef USE_ HPC2667 #ifdef USE_CALLBACK 2668 2668 invokeCallback(m,NULL,request_output_real_format,6,0); 2669 2669 #endif
Note: See TracChangeset
for help on using the changeset viewer.