indexing description: "Lookup service" license: "MIT license (see ../../license.txt)" author: "Beat Strasser " date: "$Date$" revision: "$Revision$" class O_LOOKUP_SERVICE_MAIN inherit O_SERVICE rename make as origo_service_make end O_LOOKUP_CONSTANTS create make feature {NONE} -- Initialization make (a_flag: STRING; a_configuration: O_SERVICE_ADVERTISEMENT; a_logger: L4E_LOGGER) -- Create new Origo service using `a_configuration' require Start_flag: a_flag /= Void Configuration_valid: a_configuration /= Void and a_configuration.is_valid Logger_valid: a_logger /= Void do a_logger.info ("Initializing Lookup Main service") origo_service_make (a_configuration, a_logger) start_lookup := a_flag end feature -- Basic operations start_role (a_role: STRING) is -- Start service `a_role' do if a_role.is_equal (lookup_service_main_role) then logger.info ("Starting Lookup Main service") -- requesting xmlrpc server to start start_lookup.append ("start") end end suspend_role (a_role: STRING) is -- Suspend service `a_role' do if a_role.is_equal (lookup_service_main_role) then logger.info ("Suspending Lookup Main service is unimplemented") end end feature {NONE} -- Implementation start_lookup: STRING end