* @version 0.0 * @copyright Copyright (c) 2007 - 2008 Roland Haeder, 2009, 2010 Hub Developer Team * @license GNU GPL 3.0 or any newer version * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ // Some hub-specific configuration like port hostname where we will listen, etc. $cfg = FrameworkConfiguration::getInstance(); // CFG: NODE-LISTEN-ADDR $cfg->setConfigEntry('node_listen_addr', '0.0.0.0'); // CFG: NODE-TCP-LISTEN-PORT $cfg->setConfigEntry('node_tcp_listen_port', 9060); // CFG: NODE-UDP-LISTEN-PORT $cfg->setConfigEntry('node_udp_listen_port', 9060); // CFG: NODE-MODE (can be 'regular', 'list', 'master' or 'boot', default is 'regular') $cfg->setConfigEntry('node_mode', 'regular'); // CFG: TEMPLATE-ENGINE $cfg->setConfigEntry('tpl_engine', 'ConsoleOutput'); // CFG: OUTPUT-CLASS $cfg->setConfigEntry('output_class', 'DebugConsoleOutput'); // CFG: DEBUG-CLASS $cfg->setConfigEntry('debug_class', 'DebugConsoleOutput'); // CFG: NODE-INFO-DB-WRAPPER-CLASS $cfg->setConfigEntry('node_info_db_wrapper_class', 'NodeInformationDatabaseWrapper'); // CFG: NODE-LIST-DB-WRAPPER-CLASS $cfg->setConfigEntry('node_list_db_wrapper_class', 'NodeListDatabaseWrapper'); // CFG: WEB-CONTENT-TYPE $cfg->setConfigEntry('web_content_type', ''); // CFG: QUERY-CONNECTOR-CLASS $cfg->setConfigEntry('query_connector_class', 'LocalQueryConnector'); // CFG: QUEUE-CONNECTOR-CLASS $cfg->setConfigEntry('queue_connector_class', 'LocalQueueConnector'); // CFG: LISTENER-POOL-CLAS $cfg->setConfigEntry('listener_pool_class', 'DefaultListenerPool'); // CFG: TCP-LISTENER-CLASS $cfg->setConfigEntry('tcp_listener_class', 'TcpListener'); // CFG: UDP-LISTENER-CLASS $cfg->setConfigEntry('udp_listener_class', 'UdpListener'); // CFG: HUB-TCP-LISTENER-CLASS $cfg->setConfigEntry('hub_tcp_listener_class', 'HubTcpListenerDecorator'); // CFG: HUB-UDP-LISTENER-CLASS $cfg->setConfigEntry('hub_udp_listener_class', 'HubUdpListenerDecorator'); // CFG: CLIENT-TCP-LISTENER-CLASS $cfg->setConfigEntry('client_tcp_listener_class', 'ClientTcpListenerDecorator'); // CFG: CLIENT-UDP-LISTENER-CLASS $cfg->setConfigEntry('client_udp_listener_class', 'ClientUdpListenerDecorator'); // CFG: CLIENT-POOL-CLASS $cfg->setConfigEntry('client_pool_class', 'DefaultClientPool'); // CFG: POOL-ENTRIES-LIST-CLASS $cfg->setConfigEntry('pool_entries_list_class', 'PoolEntriesList'); // CFG: SHUTDOWN-POOL-ITERATOR-CLASS $cfg->setConfigEntry('shutdown_pool_iterator_class', 'ShutdownPoolIterator'); // CFG: HANDLER-POOL-ITERATOR-CLASS $cfg->setConfigEntry('handler_pool_iterator_class', 'HandlerPoolIterator'); // CFG: NETWORK-LISTEN-ITERATOR-CLASS $cfg->setConfigEntry('network_listen_iterator_class', 'NetworkListenIterator'); // CFG: NETWORK-PACKAGE-HANDLER-CLASS $cfg->setConfigEntry('tcp_network_package_handler_class', 'TcpNetworkPackageHandler'); // CFG: SHUTDOWN-LISTENER-POOL-VISITOR-CLASS $cfg->setConfigEntry('shutdown_listener_pool_visitor_class', 'ShutdownListenerPoolVisitor'); // CFG: SHUTDOWN-TASK-VISITOR-CLASS $cfg->setConfigEntry('shutdown_task_visitor_class', 'ShutdownTaskVisitor'); // CFG: ACTIVE-TASK-VISITOR-CLASS $cfg->setConfigEntry('active_task_visitor_class', 'ActiveTaskVisitor'); // CFG: LIST-GROUP-CLASS $cfg->setConfigEntry('list_group_class', 'ListGroupList'); // CFG: HUB-ANNOUNCEMENT-HELPER-CLASS $cfg->setConfigEntry('hub_announcement_helper_class', 'HubDescriptorHelper'); // CFG: DEFAULT-CONSOLE-COMMAND $cfg->setConfigEntry('default_console_command', 'main'); // CFG: DEFAULT-HUBCONSOLE-COMMAND $cfg->setConfigEntry('default_hubconsole_command', 'main'); // CFG: HUBCONSOLE-CMD-MAIN-RESOLVER-CLASS $cfg->setConfigEntry('hubconsole_cmd_main_resolver_class', 'HubConsoleCommandResolver'); // CFG: NETWORK-STATE-RESOLVER-CLASS $cfg->setConfigEntry('network_state_resolver_class', 'NetworkStateResolver'); // CFG: NEWS-DOWNLOAD-FILTER $cfg->setConfigEntry('news_download_filter', 'NewsDownloadFilter'); // CFG: NEWS-PROCESS-FILTER $cfg->setConfigEntry('news_process_filter', 'NewsProcessFilter'); // CFG: NODE-PHP-REQUIREMENTS-FILTER $cfg->setConfigEntry('node_php_requirements_filter', 'NodePhpRequirementsFilter'); // CFG: NODE-INITIALIZER-FILTER $cfg->setConfigEntry('node_initializer_filter', 'NodeInitializationFilter'); // CFG: HUB-ACTIVATION-TASK-HANDLER-INITIALIZER-FILTER $cfg->setConfigEntry('hub_activation_task_handler_initializer_filter', 'TaskHandlerInitializerFilter'); // CFG: HUB-ACTIVATION-SELF-ANNOUNCEMENT-TASK-FILTER $cfg->setConfigEntry('hub_activation_self_announcement_task_filter', 'HubActivationSelfAnnouncementFilter'); // CFG: CONSOLE-WELCOME-TEASER-FILTER $cfg->setConfigEntry('console_welcome_teaser_filter', 'ConsoleWelcomeTeaserFilter'); // CFG: HUB-BOOTSTRAP-GENERATE-HUBID-FILTER $cfg->setConfigEntry('hub_bootstrap_generate_hubid_filter', 'HubBootstrapGenerateHubIdFilter'); // CFG: HUB-BOOTSTRAP-GENERATE-SESSIONID-FILTER $cfg->setConfigEntry('hub_bootstrap_generate_sessionid_filter', 'HubBootstrapGenerateSessionIdFilter'); // CFG: HUB-BOOTSTRAP-RESTORE-NODELIST-FILTER $cfg->setConfigEntry('hub_bootstrap_restore_nodelist_filter', 'HubBootstrapRestoreNodeListFilter'); // CFG: HUB-BOOTSTRAP-INIT-QUEUES-FILTER $cfg->setConfigEntry('hub_bootstrap_init_queues_filter', 'HubBootstrapInitQueuesFilter'); // CFG: HUB-BOOTSTRAP-EXTRA-BOOTSTRAP-FILTER $cfg->setConfigEntry('hub_bootstrap_extra_bootstrap_filter', 'HubBootstrapExtraBootstrappingFilter'); // CFG: HUB-BOOTSTRAP-LISTENER-POOL-FILTER $cfg->setConfigEntry('hub_bootstrap_listener_pool_filter', 'HubBootstrapListenerPoolFilter'); // CFG: HUB-SHUTDOWN-FLUSH-NODE-LIST-FILTER $cfg->setConfigEntry('hub_shutdown_flush_node_list_filter', 'HubShutdownFlushNodeListFilter'); // CFG: HUB-SHUTDOWN-DEINIT-QUEUES-FILTER $cfg->setConfigEntry('hub_shutdown_deinit_queues_filter', 'HubShutdownDeinitQueuesFilter'); // CFG: HUB-SHUTDOWN-TASK-HANDLER-FILTER $cfg->setConfigEntry('hub_shutdown_task_handler_filter', 'HubShutdownTaskHandlerFilter'); // CFG: HUB-SHUTDOWN-NODE-FILTER $cfg->setConfigEntry('hub_shutdown_node_filter', 'HubShutdownNodeFilter'); // CFG: NEWS-READER-CLASS $cfg->setConfigEntry('news_reader_class', 'ConsoleNewsReader'); // CFG: ANNOUNCEMENT-TEMPLATE-CLASS $cfg->setConfigEntry('announcement_template_class', 'AnnouncementTemplateEngine'); // CFG: ANNOUNCEMENT-TEMPLATE-EXTENSION $cfg->setConfigEntry('announcement_template_extension', '.xml'); // CFG: ANNOUNCEMENT-TEMPLATE-TYPE $cfg->setConfigEntry('announcement_template_type', 'xml/announcement'); // CFG: CODE-TEMPLATE-TYPE $cfg->setConfigEntry('code_template_type', 'xml/announcement'); // CFG: ANNOUNCEMENT-STACKER-CLASS $cfg->setConfigEntry('announcement_stacker_class', 'FiLoStacker'); // CFG: PACKAGE-STACKER-CLASS $cfg->setConfigEntry('package_stacker_class', 'FiFoStacker'); // CFG: STACKER-ANNOUNCEMENT-MAX-SIZE $cfg->setConfigEntry('stacker_announcement_max_size', 20); // CFG: STACKER-UNDECLARED-MAX-SIZE $cfg->setConfigEntry('stacker_undeclared_max_size', 10000); // CFG: NEWS-MAIN-LIMIT $cfg->setConfigEntry('news_main_limit', 5); // CFG: TASK-HANDLER-CLASS $cfg->setConfigEntry('task_handler_class', 'TaskHandler'); // CFG: TASK-NETWORK-PACKAGE-READER-STARTUP-DELAY $cfg->setConfigEntry('task_network_package_reader_startup_delay', 2000); // CFG: TASK-NETWORK-PACKAGE-READER-INTERVAL-DELAY $cfg->setConfigEntry('task_network_package_reader_interval_delay', 10); // CFG: TASK-NETWORK-PACKAGE-READER-MAX-RUNS $cfg->setConfigEntry('task_network_package_reader_max_runs', 0); // CFG: TASK-QUERY-HANDLER-STARTUP-DELAY $cfg->setConfigEntry('task_query_handler_startup_delay', 1000); // CFG: TASK-QUERY-HANDLER-INTERVAL-DELAY $cfg->setConfigEntry('task_query_handler_interval_delay', 10); // CFG: TASK-QUERY-HANDLER-MAX-RUNS $cfg->setConfigEntry('task_query_handler_max_runs', 0); // CFG: TASK-IDLE-LOOP-STARTUP-DELAY $cfg->setConfigEntry('task_idle_loop_startup_delay', 0); // CFG: TASK-IDLE-LOOP-INTERVAL-DELAY $cfg->setConfigEntry('task_idle_loop_interval_delay', 0); // CFG: TASK-IDLE-LOOP-MAX-RUNS $cfg->setConfigEntry('task_idle_loop_max_runs', 0); // CFG: TASK-SELF-CONNECT-STARTUP-DELAY $cfg->setConfigEntry('task_self_connect_startup_delay', 4000); // CFG: TASK-SELF-CONNECT-INTERVAL-DELAY $cfg->setConfigEntry('task_self_connect_interval_delay', 1000*60*30); // CFG: TASK-SELF-CONNECT-MAX-RUNS $cfg->setConfigEntry('task_self_connect_max_runs', 0); // CFG: TASK-SELF-ANNOUNCEMENT-STARTUP-DELAY $cfg->setConfigEntry('task_self_announcement_startup_delay', 10000); // CFG: TASK-SELF-ANNOUNCEMENT-INTERVAL-DELAY $cfg->setConfigEntry('task_self_announcement_interval_delay', 1000); // CFG: TASK-SELF-ANNOUNCEMENT-MAX-RUNS $cfg->setConfigEntry('task_self_announcement_max_runs', 1); // CFG: TASK-UPDATE-CHECK-STARTUP-DELAY $cfg->setConfigEntry('task_update_check_startup_delay', 1000*60*60*6); // CFG: TASK-UPDATE-CHECK-INTERVAL-DELAY $cfg->setConfigEntry('task_update_check_interval_delay', 1000*60*60*24); // CFG: TASK-UPDATE-CHECK-MAX-RUNS $cfg->setConfigEntry('task_update_check_max_runs', 0); // CFG: TASK-PING-STARTUP-DELAY $cfg->setConfigEntry('task_ping_startup_delay', 1000*60); // CFG: TASK-PING-INTERVAL-DELAY $cfg->setConfigEntry('task_ping_interval_delay', 1000*60*60); // CFG: TASK-PING-MAX-RUNS $cfg->setConfigEntry('task_ping_max_runs', 0); // CFG: IDLE-TASK-CLASS $cfg->setConfigEntry('idle_task_class', 'IdleLoopTask'); // CFG: HUB-SELFCONNECT-TASK-CLASS $cfg->setConfigEntry('hub_selfconnect_task_class', 'HubSelfConnectTask'); // CFG: HUB-UPDATE-CHECK-TASK-CLASS $cfg->setConfigEntry('hub_update_check_task_class', 'HubUpdateCheckTask'); // CFG: HUB-PING-TASK-CLASS $cfg->setConfigEntry('hub_ping_task_class', 'HubPingTask'); // CFG: HUB-SELF-ANNOUNCEMENT-TASK-CLASS $cfg->setConfigEntry('hub_self_announcement_task_class', 'HubSelfAnnouncementTask'); // CFG: HUB-PACKAGE-WRITER-TASK-CLASS $cfg->setConfigEntry('hub_package_writer_task_class', 'NetworkPackageWriterTask'); // CFG: TASK-NETWORK-PACKAGE-WRITER-STARTUP-DELAY $cfg->setConfigEntry('task_network_package_writer_startup_delay', 2500); // CFG: TASK-NETWORK-PACKAGE-WRITER-INTERVAL-DELAY $cfg->setConfigEntry('task_network_package_writer_interval_delay', 10); // CFG: TASK-NETWORK-PACKAGE-WRITER-MAX-RUNS $cfg->setConfigEntry('task_network_package_writer_max_runs', 0); // CFG: TASK-LIST-CLASS $cfg->setConfigEntry('task_list_class', 'TaskList'); // CFG: TASK-POOL-ITERATOR-CLASS $cfg->setConfigEntry('task_pool_iterator_class', 'TaskPoolIterator'); // CFG: DEFAULT-ITERATOR-CLASS $cfg->setConfigEntry('default_iterator_class', 'DefaultIterator'); // CFG: QUERY-ITERATOR-CLASS $cfg->setConfigEntry('query_iterator_class', 'DefaultIterator'); // CFG: HUB-PING-ITERATOR-CLASS $cfg->setConfigEntry('hub_ping_iterator_class', 'HubPingIterator'); // CFG: LOCAL-QUERY-LIST-CLASS $cfg->setConfigEntry('local_query_list_class', 'LocalQueryList'); // CFG: LOCAL-QUERY-CLASS $cfg->setConfigEntry('local_query_class', 'LocalQuery'); // CFG: WEB-TEMPLATE-CLASS @OVERRIDE $cfg->setConfigEntry('web_template_class', 'ConsoleTemplateEngine'); // CFG: NODE-INIT-STATE-CLASS $cfg->setConfigEntry('node_init_state_class', 'NodeInitState'); // CFG: NODE-VIRGIN-STATE-CLASS $cfg->setConfigEntry('node_virgin_state_class', 'NodeVirginState'); // CFG: NODE-ACTIVE-STATE-CLASS $cfg->setConfigEntry('node_active_state_class', 'NodeActiveState'); // CFG: NODE-ANNOUNCED-STATE-CLASS $cfg->setConfigEntry('node_announced_state_class', 'NodeAnnouncedState'); // CFG: NETWORK-PACKAGE-CLASS $cfg->setConfigEntry('network_package_class', 'NetworkPackage'); // CFG: PACKAGE-COMPRESSOR-CLASS $cfg->setConfigEntry('deco_package_compressor_class', 'NetworkPackageCompressorDecorator'); // CFG: RAW-PACKAGE-COMPRESSOR-CLASS $cfg->setConfigEntry('raw_package_compressor_class', 'GzipCompressor'); // [EOF] ?>