]> git.mxchange.org Git - hub.git/blobdiff - application/hub/config.php
Continued on test-unit producer, fixed copyright:
[hub.git] / application / hub / config.php
index c7fec7a33b54efe42a9342aaa6db110d1851cbed..aad5e57ba2755ba6dac6ea3b7f99ad5b179f1c55 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0
- * @copyright  Copyright (c) 2007 - 2008 Roland Haeder, 2009, 2010 Hub Developer Team
+ * @copyright  Copyright (c) 2007 - 2008 Roland Haeder, 2009 - 2011 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  *
  * This program is free software: you can redistribute it and/or modify
@@ -33,8 +33,17 @@ $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: BOOT-NODE-TCP-LISTEN-PORT
+$cfg->setConfigEntry('boot_node_tcp_listen_port', 9061);
+
+// CFG: BOOT-NODE-UDP-LISTEN-PORT
+$cfg->setConfigEntry('boot_node_udp_listen_port', 9061);
+
+// CFG: NODE-DEFAULT-MODE (can be 'regular', 'list', 'master' or 'boot', default is 'regular')
+$cfg->setConfigEntry('node_default_mode', 'regular');
+
+// CFG: CRUNCHER-DEFAULT-MODE (can be only 'mcrypt' at the moment)
+$cfg->setConfigEntry('cruncher_default_mode', 'mcrypt');
 
 // CFG: TEMPLATE-ENGINE
 $cfg->setConfigEntry('tpl_engine', 'ConsoleOutput');
@@ -52,7 +61,7 @@ $cfg->setConfigEntry('node_info_db_wrapper_class', 'NodeInformationDatabaseWrapp
 $cfg->setConfigEntry('node_list_db_wrapper_class', 'NodeListDatabaseWrapper');
 
 // CFG: PEER-LOOKUP-DB-WRAPPER-CLASS
-$cfg->setConfigEntry('peer_lookup_db_wrapper_class', 'PeerLookupDatabaseWrapper');
+$cfg->setConfigEntry('peer_state_lookup_db_wrapper_class', 'PeerStateLookupDatabaseWrapper');
 
 // CFG: WEB-CONTENT-TYPE
 $cfg->setConfigEntry('web_content_type', '');
@@ -132,6 +141,9 @@ $cfg->setConfigEntry('default_hubconsole_command', 'main');
 // CFG: HUBCONSOLE-CMD-MAIN-RESOLVER-CLASS
 $cfg->setConfigEntry('hubconsole_cmd_main_resolver_class', 'HubConsoleCommandResolver');
 
+// CFG: HUBCONSOLE-CMD-CRUNCHER-RESOLVER-CLASS
+$cfg->setConfigEntry('hubconsole_cmd_cruncher_resolver_class', 'HubConsoleCommandResolver');
+
 // CFG: NETWORK-STATE-RESOLVER-CLASS
 $cfg->setConfigEntry('network_state_resolver_class', 'NetworkStateResolver');
 
@@ -144,87 +156,129 @@ $cfg->setConfigEntry('news_process_filter', 'NewsProcessFilter');
 // CFG: NODE-PHP-REQUIREMENTS-FILTER
 $cfg->setConfigEntry('node_php_requirements_filter', 'NodePhpRequirementsFilter');
 
+// CFG: CRUNCHER-PHP-REQUIREMENTS-FILTER
+$cfg->setConfigEntry('cruncher_php_requirements_filter', 'CruncherPhpRequirementsFilter');
+
 // 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: CRUNCHER-INITIALIZER-FILTER
+$cfg->setConfigEntry('cruncher_initializer_filter', 'CruncherInitializationFilter');
+
+// CFG: NODE-ACTIVATION-TASK-HANDLER-INITIALIZER-FILTER
+$cfg->setConfigEntry('node_activation_task_handler_initializer_filter', 'NodeTaskHandlerInitializerFilter');
+
+// CFG: CRUNCHER-BOOTSTRAP-TASK-HANDLER-INITIALIZER-FILTER
+$cfg->setConfigEntry('cruncher_bootstrap_task_handler_initializer_filter', 'CruncherTaskHandlerInitializerFilter');
+
+// CFG: CRUNCHER-BOOTSTRAP-EXTRA-BOOTSTRAPPING-FILTER
+$cfg->setConfigEntry('cruncher_bootstrap_extra_bootstrapping_filter', 'CruncherBootstrapExtraBootstrappingFilter');
+
+// CFG: CRUNCHER-BOOTSTRAP-BUFFER-QUEUE-INITIALIZER-FILTER
+$cfg->setConfigEntry('cruncher_bootstrap_buffer_queue_initializer_filter', 'CruncherBootstrapBufferQueueInitializerFilter');
+
+// CFG: CRUNCHER-BOOTSTRAP-GENERIC-ACTIVATION-FILTER
+$cfg->setConfigEntry('cruncher_bootstrap_generic_activation_filter', 'CruncherBootstrapGenericActivationFilter');
+
+// CFG: NODE-ACTIVATION-SELF-ANNOUNCEMENT-TASK-FILTER
+$cfg->setConfigEntry('node_activation_self_announcement_task_filter', 'NodeActivationSelfAnnouncementFilter');
 
-// CFG: HUB-ACTIVATION-SELF-ANNOUNCEMENT-TASK-FILTER
-$cfg->setConfigEntry('hub_activation_self_announcement_task_filter', 'HubActivationSelfAnnouncementFilter');
+// CFG: NODE-WELCOME-TEASER-FILTER
+$cfg->setConfigEntry('node_welcome_teaser_filter', 'NodeWelcomeTeaserFilter');
 
-// CFG: CONSOLE-WELCOME-TEASER-FILTER
-$cfg->setConfigEntry('console_welcome_teaser_filter', 'ConsoleWelcomeTeaserFilter');
+// CFG: CRUNCHER-WELCOME-TEASER-FILTER
+$cfg->setConfigEntry('cruncher_welcome_teaser_filter', 'CruncherWelcomeTeaserFilter');
 
-// CFG: HUB-BOOTSTRAP-GENERATE-HUBID-FILTER
-$cfg->setConfigEntry('hub_bootstrap_generate_hubid_filter', 'HubBootstrapGenerateHubIdFilter');
+// CFG: NODE-BOOTSTRAP-GENERATE-HUBID-FILTER
+$cfg->setConfigEntry('node_bootstrap_generate_nodeid_filter', 'NodeBootstrapGenerateNodeIdFilter');
 
-// CFG: HUB-BOOTSTRAP-GENERATE-SESSIONID-FILTER
-$cfg->setConfigEntry('hub_bootstrap_generate_sessionid_filter', 'HubBootstrapGenerateSessionIdFilter');
+// CFG: NODE-BOOTSTRAP-GENERATE-SESSIONID-FILTER
+$cfg->setConfigEntry('node_bootstrap_generate_sessionid_filter', 'NodeBootstrapGenerateSessionIdFilter');
 
-// CFG: HUB-BOOTSTRAP-RESTORE-NODELIST-FILTER
-$cfg->setConfigEntry('hub_bootstrap_restore_nodelist_filter', 'HubBootstrapRestoreNodeListFilter');
+// CFG: NODE-BOOTSTRAP-RESTORE-NODELIST-FILTER
+$cfg->setConfigEntry('node_bootstrap_restore_nodelist_filter', 'NodeBootstrapRestoreNodeListFilter');
 
-// CFG: HUB-BOOTSTRAP-INIT-QUEUES-FILTER
-$cfg->setConfigEntry('hub_bootstrap_init_queues_filter', 'HubBootstrapInitQueuesFilter');
+// CFG: NODE-BOOTSTRAP-INIT-QUEUES-FILTER
+$cfg->setConfigEntry('node_bootstrap_init_queues_filter', 'NodeBootstrapInitQueuesFilter');
 
-// CFG: HUB-BOOTSTRAP-EXTRA-BOOTSTRAP-FILTER
-$cfg->setConfigEntry('hub_bootstrap_extra_bootstrap_filter', 'HubBootstrapExtraBootstrappingFilter');
+// CFG: NODE-BOOTSTRAP-EXTRA-BOOTSTRAPPING-FILTER
+$cfg->setConfigEntry('node_bootstrap_extra_bootstrapping_filter', 'NodeBootstrapExtraBootstrappingFilter');
 
-// CFG: HUB-BOOTSTRAP-LISTENER-POOL-FILTER
-$cfg->setConfigEntry('hub_bootstrap_listener_pool_filter', 'HubBootstrapListenerPoolFilter');
+// CFG: NODE-BOOTSTRAP-LISTENER-POOL-FILTER
+$cfg->setConfigEntry('node_bootstrap_listener_pool_filter', 'NodeBootstrapListenerPoolFilter');
 
-// CFG: HUB-SHUTDOWN-FLUSH-NODE-LIST-FILTER
-$cfg->setConfigEntry('hub_shutdown_flush_node_list_filter', 'HubShutdownFlushNodeListFilter');
+// CFG: NODE-SHUTDOWN-FLUSH-NODE-LIST-FILTER
+$cfg->setConfigEntry('node_shutdown_flush_node_list_filter', 'NodeShutdownFlushNodeListFilter');
 
-// CFG: HUB-SHUTDOWN-DEINIT-QUEUES-FILTER
-$cfg->setConfigEntry('hub_shutdown_deinit_queues_filter', 'HubShutdownDeinitQueuesFilter');
+// CFG: NODE-SHUTDOWN-DEINIT-QUEUES-FILTER
+$cfg->setConfigEntry('node_shutdown_deinit_queues_filter', 'NodeShutdownDeinitQueuesFilter');
 
-// CFG: HUB-SHUTDOWN-TASK-HANDLER-FILTER
-$cfg->setConfigEntry('hub_shutdown_task_handler_filter', 'HubShutdownTaskHandlerFilter');
+// CFG: NODE-SHUTDOWN-TASK-HANDLER-FILTER
+$cfg->setConfigEntry('node_shutdown_task_handler_filter', 'NodeShutdownTaskHandlerFilter');
 
-// CFG: HUB-SHUTDOWN-NODE-FILTER
-$cfg->setConfigEntry('hub_shutdown_node_filter', 'HubShutdownNodeFilter');
+// CFG: NODE-SHUTDOWN-NODE-FILTER
+$cfg->setConfigEntry('node_shutdown_node_filter', 'NodeShutdownNodeFilter');
+
+// CFG: CRUNCHER-SHUTDOWN-CRUNCHER-FILTER
+$cfg->setConfigEntry('cruncher_shutdown_cruncher_filter', 'CruncherShutdownCruncherFilter');
 
 // CFG: NEWS-READER-CLASS
 $cfg->setConfigEntry('news_reader_class', 'ConsoleNewsReader');
 
-// CFG: ANNOUNCEMENT-TEMPLATE-CLASS
-$cfg->setConfigEntry('announcement_template_class', 'AnnouncementTemplateEngine');
+// CFG: NODE-ANNOUNCEMENT-TEMPLATE-CLASS
+$cfg->setConfigEntry('node_announcement_template_class', 'XmlAnnouncementTemplateEngine');
+
+// CFG: NODE-ANNOUNCEMENT-TEMPLATE-EXTENSION
+$cfg->setConfigEntry('node_announcement_template_extension', '.xml');
+
+// CFG: NODE-ANNOUNCEMENT-TEMPLATE-TYPE
+$cfg->setConfigEntry('node_announcement_template_type', 'xml/announcement');
 
-// CFG: ANNOUNCEMENT-TEMPLATE-EXTENSION
-$cfg->setConfigEntry('announcement_template_extension', '.xml');
+// CFG: NODE-ANNOUNCEMENT-STACKER-CLASS
+$cfg->setConfigEntry('node_announcement_stacker_class', 'FiLoStacker');
 
-// CFG: ANNOUNCEMENT-TEMPLATE-TYPE
-$cfg->setConfigEntry('announcement_template_type', 'xml/announcement');
+// CFG: NODE-SELF-CONNECT-TEMPLATE-CLASS
+$cfg->setConfigEntry('node_self_connect_template_class', 'XmlSelfConnectTemplateEngine');
 
-// CFG: ANNOUNCEMENT-STACKER-CLASS
-$cfg->setConfigEntry('announcement_stacker_class', 'FiLoStacker');
+// CFG: NODE-SELF-CONNECT-TEMPLATE-EXTENSION
+$cfg->setConfigEntry('node_self_connect_template_extension', '.xml');
 
-// CFG: OBJECT-REGISTRY-TEMPLATE-CLASS
-$cfg->setConfigEntry('object_registry_template_class', 'ObjectRegistryTemplateEngine');
+// CFG: NODE-SELF-CONNECT-TEMPLATE-TYPE
+$cfg->setConfigEntry('node_self_connect_template_type', 'xml/self_connect');
 
-// CFG: OBJECT-REGISTRY-TEMPLATE-EXTENSION
-$cfg->setConfigEntry('object_registry_template_extension', '.xml');
+// CFG: NODE-SELF-CONNECT-STACKER-CLASS
+$cfg->setConfigEntry('node_self_connect_stacker_class', 'FiLoStacker');
 
-// CFG: OBJECT-REGISTRY-TEMPLATE-TYPE
-$cfg->setConfigEntry('object_registry_template_type', 'xml/object_registry');
+// CFG: NODE-OBJECT-REGISTRY-TEMPLATE-CLASS
+$cfg->setConfigEntry('node_object_registry_template_class', 'XmlObjectRegistryTemplateEngine');
 
-// CFG: OBJECT-REGISTRY-STACKER-CLASS
-$cfg->setConfigEntry('object_registry_stacker_class', 'FiLoStacker');
+// CFG: NODE-OBJECT-REGISTRY-TEMPLATE-EXTENSION
+$cfg->setConfigEntry('node_object_registry_template_extension', '.xml');
 
-// CFG: OBJECT-TYPE-REGISTRY-CLASS
-$cfg->setConfigEntry('object_type_registry_class', 'ObjectTypeRegistry');
+// CFG: NODE-OBJECT-REGISTRY-TEMPLATE-TYPE
+$cfg->setConfigEntry('node_object_registry_template_type', 'xml/object_registry');
+
+// CFG: NODE-OBJECT-REGISTRY-STACKER-CLASS
+$cfg->setConfigEntry('node_object_registry_stacker_class', 'FiLoStacker');
+
+// CFG: NODE-OBJECT-TYPE-REGISTRY-CLASS
+$cfg->setConfigEntry('node_object_type_registry_class', 'ObjectTypeRegistry');
 
 // CFG: CODE-TEMPLATE-TYPE
-$cfg->setConfigEntry('code_template_type', 'xml/announcement');
+$cfg->setConfigEntry('code_template_type', 'xml');
 
 // CFG: PACKAGE-STACKER-CLASS
-$cfg->setConfigEntry('package_stacker_class', 'FiFoStacker');
+$cfg->setConfigEntry('network_package_stacker_class', 'FiFoStacker');
+
+// CFG: CRUNCHER-BUFFER-STACKER-CLASS
+$cfg->setConfigEntry('cruncher_buffer_stacker_class', 'FiFoStacker');
 
 // CFG: STACKER-ANNOUNCEMENT-MAX-SIZE
 $cfg->setConfigEntry('stacker_announcement_max_size', 20);
 
+// CFG: STACKER-SELF-CONNECT-MAX-SIZE
+$cfg->setConfigEntry('stacker_self_connect_max_size', 10);
+
 // CFG: STACKER-UNDECLARED-MAX-SIZE
 $cfg->setConfigEntry('stacker_undeclared_max_size', 10000);
 
@@ -234,6 +288,12 @@ $cfg->setConfigEntry('stacker_declared_max_size', 1000);
 // CFG: STACKER-OUTGOING-MAX-SIZE
 $cfg->setConfigEntry('stacker_outgoing_max_size', 100);
 
+// CFG: STACKER-IN-QUEUE-MAX-SIZE
+$cfg->setConfigEntry('stacker_in_queue_max_size', 10000);
+
+// CFG: STACKER-OUT-QUEUE-MAX-SIZE
+$cfg->setConfigEntry('stacker_out_queue_max_size', 10000);
+
 // CFG: STACKER-OBJECT-REGISTRY-MAX-SIZE
 $cfg->setConfigEntry('stacker_object_registry_max_size', 100);
 
@@ -261,6 +321,15 @@ $cfg->setConfigEntry('task_query_handler_interval_delay', 10);
 // CFG: TASK-QUERY-HANDLER-MAX-RUNS
 $cfg->setConfigEntry('task_query_handler_max_runs', 0);
 
+// CFG: TASK-QUEUE-HANDLER-STARTUP-DELAY
+$cfg->setConfigEntry('task_queue_handler_startup_delay', 1000);
+
+// CFG: TASK-QUEUE-HANDLER-INTERVAL-DELAY
+$cfg->setConfigEntry('task_queue_handler_interval_delay', 10);
+
+// CFG: TASK-QUEUE-HANDLER-MAX-RUNS
+$cfg->setConfigEntry('task_queue_handler_max_runs', 0);
+
 // CFG: TASK-IDLE-LOOP-STARTUP-DELAY
 $cfg->setConfigEntry('task_idle_loop_startup_delay', 0);
 
@@ -324,6 +393,12 @@ $cfg->setConfigEntry('hub_self_announcement_task_class', 'HubSelfAnnouncementTas
 // CFG: HUB-PACKAGE-WRITER-TASK-CLASS
 $cfg->setConfigEntry('hub_package_writer_task_class', 'NetworkPackageWriterTask');
 
+// CFG: CRUNCHER-WORK-UNIT-FETCHER-TASK-CLASS
+$cfg->setConfigEntry('cruncher_work_unit_fetcher_task_class', 'CruncherWorkUnitFetcherTask');
+
+// CFG: CRUNCHER-TEST-UNIT-PRODUCER-TASK-CLASS
+$cfg->setConfigEntry('cruncher_test_unit_producer_task_class', 'CruncherTestUnitProducerTask');
+
 // CFG: TASK-NETWORK-PACKAGE-WRITER-STARTUP-DELAY
 $cfg->setConfigEntry('task_network_package_writer_startup_delay', 2500);
 
@@ -333,6 +408,24 @@ $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-CRUNCHER-WORK-UNIT-FETCHER-STARTUP-DELAY
+$cfg->setConfigEntry('task_cruncher_work_unit_fetcher_startup_delay', 1000);
+
+// CFG: TASK-CRUNCHER-WORK-UNIT-FETCHER-INTERVAL-DELAY
+$cfg->setConfigEntry('task_cruncher_work_unit_fetcher_interval_delay', 10);
+
+// CFG: TASK-CRUNCHER-WORK-UNIT-FETCHER-MAX-RUNS
+$cfg->setConfigEntry('task_cruncher_work_unit_fetcher_max_runs', 0);
+
+// CFG: TASK-CRUNCHER-TEST-UNIT-PRODUCER-STARTUP-DELAY
+$cfg->setConfigEntry('task_cruncher_test_unit_producer_startup_delay', 500);
+
+// CFG: TASK-CRUNCHER-TEST-UNIT-PRODUCER-INTERVAL-DELAY
+$cfg->setConfigEntry('task_cruncher_test_unit_producer_interval_delay', 1000*60*60);
+
+// CFG: TASK-CRUNCHER-TEST-UNIT-PRODUCER-MAX-RUNS
+$cfg->setConfigEntry('task_cruncher_test_unit_producer_max_runs', 0);
+
 // CFG: TASK-LIST-CLASS
 $cfg->setConfigEntry('task_list_class', 'TaskList');
 
@@ -420,5 +513,44 @@ $cfg->setConfigEntry('peer_state_lookup_table_class', 'PeerStateLookupTable');
 // CFG: PEER-STATE-CHECKED-PACKAGE-CLASS
 $cfg->setConfigEntry('peer_state_checked_package_class', 'NewConnectionPeerState');
 
+// CFG: SESSION-ID
+$cfg->setConfigEntry('session_id', '');
+
+// CFG: EXTERNAL-IP
+$cfg->setConfigEntry('external_ip', '');
+
+// CFG: PACKAGE-FRAGMENTER-CLASS
+$cfg->setConfigEntry('package_fragmenter_class', 'PackageFragmenter');
+
+// CFG: CRUNCHER-TEST-UNITS-ENABLED
+$cfg->setConfigEntry('cruncher_test_units_enabled', 'Y');
+
+// CFG: CRUNCHER-IN-BUFFER-MIN-THRESHOLD
+$cfg->setConfigEntry('cruncher_in_buffer_min_threshold', 3);
+
+// CFG: CRUNCHER-TEST-UNIT-GENERATOR-CLASS
+$cfg->setConfigEntry('cruncher_test_unit_generator_class', 'CruncherTestUnitHelper');
+
+// CFG: CRUNCHER-MAX-TEST-UNIT-AMOUNT
+$cfg->setConfigEntry('cruncher_max_text_unit_amount', 10);
+
+// CFG: CRUNCHER-TEST-UNIT-PRODUCER-CLASS
+$cfg->setConfigEntry('cruncher_test_unit_producer_class', 'CruncherTestUnitProducer');
+
+// CFG: CRUNCHER-TEST-UNIT-PRODUCER-TEMPLATE-CLASS
+$cfg->setConfigEntry('cruncher_test_unit_producer_template_class', 'XmlCruncherTestUnitTemplateEngine');
+
+// CFG: CRUNCHER-TEST-UNIT-TEMPLATE-EXTENSION
+$cfg->setConfigEntry('cruncher_test_unit_template_extension', '.xml');
+
+// CFG: CRUNCHER-TEST-UNIT-STACKER-CLASS
+$cfg->setConfigEntry('cruncher_test_unit_stacker_class', 'FiLoStacker');
+
+// CFG: CRUNCHER-TEST-UNIT-TEMPLATE-TYPE
+$cfg->setConfigEntry('cruncher_test_unit_template_type', 'xml/cruncher/producer');
+
+// CFG: STACKER-CRUNCHER-TEST-UNIT-MAX-SIZE
+$cfg->setConfigEntry('stacker_cruncher_test_unit_max_size', 20);
+
 // [EOF]
 ?>