exception ErrorGetting of string;;
+(* FEATURE MOVED TO HTTP_GETTER, Zack
module OrderedStrings =
struct
type t = string
let compare (s1 : t) (s2 : t) = compare s1 s2
end
;;
+*)
+
+(* FEATURE MOVED TO HTTP_GETTER, Zack
module MapOfStrings = Map.Make(OrderedStrings);;
+*)
+(* FEATURE MOVED TO HTTP_GETTER, Zack
let read_index url =
let module C = Configuration in
if Sys.command ("helm_wget " ^ C.tmp_dir ^ " " ^ url ^ "/\"" ^
Sys.remove tmpfilename ;
!uris
;;
+*)
+(* FEATURE MOVED TO HTTP_GETTER, Zack
(* mk_urls_of_uris list_of_servers_base_urls *)
let rec mk_urls_of_uris =
function
(fun (uri,comp) m -> MapOfStrings.add uri (url_of_uri (uri,comp)) m)
uris map
;;
+*)
exception PerlGetterNotResponding;;
+(* FEATURE MOVED TO HTTP_GETTER, Zack
let update () =
let module C = Configuration in
let fd = open_in C.servers_file in
then
raise PerlGetterNotResponding ;
;;
+*)
+
+let update () =
+(* deliver update request to http_getter *)
+ if Sys.command ("wget -O /dev/null http://localhost:8081/update") <> 0
+ then
+ raise PerlGetterNotResponding ;
+;;
(* url_of_uri : uri -> url *)
let url_of_uri uri =