indexing description: "Origo constants" author: "Beat Strasser " date: "$Date$" revision: "$Revision$" class O_CONSTANTS feature {NONE} -- vamPeer frozen origo_peergroup_mcid: P2P_MODULE_CLASS_ID is -- Well known module class identifier: origo peer group once create Result.make_from_urn ("urn:jxta:uuid-3F76E69935594556870A9AEE1DBF7B2005") ensure Result_valid: Result /= Void and Result.is_valid end frozen origo_core_mcid: P2P_MODULE_CLASS_ID is -- Well known module class identifier: origo core once create Result.make_from_urn ("urn:jxta:uuid-261F502615134AA99FDC99E3751E6B8505") ensure Result_valid: Result /= Void and Result.is_valid end frozen origo_peergroup_msid: P2P_MODULE_SPECIFICATION_ID is -- Well known module specification identifier: origo peer group once create Result.make_from_urn ("urn:jxta:uuid-3F76E69935594556870A9AEE1DBF7B208DF0A26F7A224CDDAE5FB0C9CB5AD9F606") ensure Result_valid: Result /= Void and Result.is_valid end frozen origo_core_msid: P2P_MODULE_SPECIFICATION_ID is -- Well known module specification identifier: origo core once create Result.make_from_urn ("urn:jxta:uuid-261F502615134AA99FDC99E3751E6B85BAC022BFCFC8436891F3D5F63875F9D806") ensure Result_valid: Result /= Void and Result.is_valid end frozen origo_peergroup_id: P2P_PEERGROUP_ID is -- Well known peer group id: origo peer group once create {P2P_PEERGROUP_UUID} Result.make_from_urn ("urn:jxta:uuid-822A7C9E6B804759870B81B10070E9C959616261646162614A7874615032503302") ensure Result_valid: Result /= Void and Result.is_valid end Group_name: STRING is "Origo Peer Group" Group_description: STRING is "Origo Peer Group implementation" Group_code_name: STRING is "O_PEERGROUP" P2p_module_name: STRING is "OrigoService" P2p_module_code_name: STRING is "O_P2P_MODULE" P2p_module_description: STRING is "Origo Core Service" Core_peer_name: STRING is "core" received_window_size: NATURAL_16 is 200 -- Number of messages to keep to check against message duplicates. send_ack_timeout: NATURAL_16 is 10000 -- How many milliseconds to wait on an ack after sending a message. send_retries: NATURAL_16 is 2 -- How many times to try to resend a message if we didn't receive an ack. feature {NONE} -- messages message_namespace: STRING is "origo.message" -- Namespace for origo messages message_argument_namespace: STRING is -- Namespace for arguments in origo messages once Result := message_namespace + ".argument" end id_element: STRING is "id" -- Name of the id message element. reply_id_element: STRING is "reply_id" -- Name of the reply id message element. namespace_element: STRING is "message" -- Name of the namespace message element. type_element: STRING is "type" -- Name fo the type message element. peer_element: STRING is "peer" -- Name of the peer message element. peer_name_element: STRING is "peer_name" -- Name of the peer name message element. ack_element: STRING is "ack" -- Name of the ack element in ack messages. feature -- default config values default_session_lifetime: STRING is "3600" -- lifetime of an origo session (in seconds) default_storage_cleanup_interval: STRING is "600000" -- storage node cleanup interval (in ms) default_friendship_request_lifetime: STRING is "14" -- lifetime of a friendship request (in days) default_standalone_mode: STRING is "0" -- activate standalone mode if no frontend is present e.g. for testing (0 = disabled, 1 = enabled) default_drupal_xrpc_port: STRING is "80" -- port on which the backend connects to the drupal xlmrpc interface default_drupal_xrpc_path: STRING is "/xmlrpc.php" -- path of the xml-rpc interface anonymous_user_session: STRING is "ANONYMOUSUSERSESSIONSTRINGZZZZZZ" -- A string that marks an anonymous user. feature -- config parsing config_parser: ORIGO_CONF_PARSER is -- Access to the configuration values once create Result.make_default end standalone_mode: BOOLEAN is -- `true' if the backend is running in standalone mode without a frontend local l_standalone_mode: INTEGER once l_standalone_mode := config_parser.get_default ("standalone_mode", default_standalone_mode).to_integer if l_standalone_mode = 1 then Result := true else Result := false end end end