indexing description: "[ Test for Eiffel-GigaSpaces wrapper loosely based on POCO benchmark example ]" status: "See notice at end of class." legal: "See notice at end of class." date: "$Date$" revision: "$Revision$" class BENCHMARK_PARAMETERS feature -- Constants no_transaction: INTEGER is 0 local_transaction: INTEGER is 1 jini_transaction: INTEGER is 2 feature url: STRING local_cache_remote_url: STRING warmups: INTEGER repeats: INTEGER threads: INTEGER iterations: INTEGER payload_size: INTEGER batch_size: INTEGER object_type: STRING transaction_mode: INTEGER is_using_local_cache: BOOLEAN feature string_to_transaction_mode (str: STRING): INTEGER is do if str.is_equal ("true") then Result := Local_Transaction elseif str.is_equal ("jini") then Result := Jini_Transaction else Result := No_Transaction end end transaction_mode_to_string (mode: INTEGER): STRING is do if mode = Local_Transaction then Result := "Local" elseif mode = Jini_Transaction then Result := "Distributed/Jini" else Result := "No" end end set_url (an_url: STRING) is -- do url := an_url end set_local_cache_remote_url (an_url: STRING) is -- do local_cache_remote_url := an_url end set_warmups (a_warmups: INTEGER) is -- do warmups := a_warmups end set_repeats (a_repeats: INTEGER) is -- do repeats := a_repeats end set_threads (a_threads: INTEGER) is -- do threads := a_threads end set_iterations (an_iterations: INTEGER) is -- do iterations := an_iterations end set_payload_size (a_payload_size: INTEGER) is -- do payload_size := a_payload_size end set_batch_size (a_batch_size: INTEGER) is -- do batch_size := a_batch_size end set_object_type (an_object_type: STRING) is -- do object_type := an_object_type end set_transaction_mode (a_transaction_mode: INTEGER) is -- do transaction_mode := a_transaction_mode end set_using_local_cache (using_local_cache: BOOLEAN) is -- do is_using_local_cache := using_local_cache end indexing copyright: "Copyright (c) 2008, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end