3 * Configuration entries for this application only
5 * @author Roland Haeder <webmaster@shipsimu.org>
7 * @copyright Copyright (c) 2007 - 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
8 * @license GNU GPL 3.0 or any newer version
10 * This program is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 // Some hub-specific configuration like port hostname where we will listen, etc.
25 $cfg = FrameworkConfiguration::getSelfInstance();
27 // CFG: NODE-LISTEN-ADDR
28 $cfg->setConfigEntry('node_listen_addr', '0.0.0.0');
30 // CFG: NODE-LISTEN-PORT
31 $cfg->setConfigEntry('node_listen_port', 9060);
33 // CFG: NODE-DEFAULT-MODE (can be 'regular', 'list', 'master' or 'boot', default is 'regular')
34 $cfg->setConfigEntry('node_default_mode', 'regular');
36 // CFG: TEMPLATE-ENGINE
37 $cfg->setConfigEntry('tpl_engine', 'ConsoleOutput');
40 $cfg->setConfigEntry('output_class', 'DebugConsoleOutput');
43 $cfg->setConfigEntry('debug_class', 'DebugConsoleOutput');
45 // CFG: NODE-INFO-DB-WRAPPER-CLASS
46 $cfg->setConfigEntry('node_info_db_wrapper_class', 'NodeInformationDatabaseWrapper');
48 // CFG: NODE-DHT-DB-WRAPPER-CLASS
49 $cfg->setConfigEntry('node_dht_db_wrapper_class', 'NodeDistributedHashTableDatabaseWrapper');
51 // CFG: NODE-DHT-LIST-LIMIT
52 $cfg->setConfigEntry('node_dht_list_limit', 20);
54 // CFG: PEER-LOOKUP-DB-WRAPPER-CLASS
55 $cfg->setConfigEntry('peer_state_lookup_db_wrapper_class', 'PeerStateLookupDatabaseWrapper');
57 // CFG: WEB-CONTENT-TYPE
58 $cfg->setConfigEntry('web_content_type', '');
60 // CFG: LISTENER-POOL-CLAS
61 $cfg->setConfigEntry('listener_pool_class', 'DefaultListenerPool');
63 // CFG: TCP-LISTENER-CLASS
64 $cfg->setConfigEntry('tcp_listener_class', 'TcpListener');
66 // CFG: UDP-LISTENER-CLASS
67 $cfg->setConfigEntry('udp_listener_class', 'UdpListener');
69 // CFG: NODE-TCP-LISTENER-CLASS
70 $cfg->setConfigEntry('node_tcp_listener_class', 'HubTcpListenerDecorator');
72 // CFG: NODE-UDP-LISTENER-CLASS
73 $cfg->setConfigEntry('node_udp_listener_class', 'HubUdpListenerDecorator');
75 // CFG: CLIENT-TCP-LISTENER-CLASS
76 $cfg->setConfigEntry('client_tcp_listener_class', 'ClientTcpListenerDecorator');
78 // CFG: CLIENT-UDP-LISTENER-CLASS
79 $cfg->setConfigEntry('client_udp_listener_class', 'ClientUdpListenerDecorator');
81 // CFG: NODE-POOL-CLASS
82 $cfg->setConfigEntry('node_pool_class', 'DefaultPeerPool');
84 // CFG: POOL-ENTRIES-LIST-CLASS
85 $cfg->setConfigEntry('pool_entries_list_class', 'PoolEntriesList');
87 // CFG: SHUTDOWN-POOL-ITERATOR-CLASS
88 $cfg->setConfigEntry('shutdown_pool_iterator_class', 'ShutdownPoolIterator');
90 // CFG: HANDLER-POOL-ITERATOR-CLASS
91 $cfg->setConfigEntry('handler_pool_iterator_class', 'HandlerPoolIterator');
93 // CFG: NETWORK-LISTEN-ITERATOR-CLASS
94 $cfg->setConfigEntry('network_listen_iterator_class', 'NetworkListenIterator');
96 // CFG: TCP-RAW-DATA-HANDLER-CLASS
97 $cfg->setConfigEntry('tcp_raw_data_handler_class', 'TcpRawDataHandler');
99 // CFG: UDP-RAW-DATA-HANDLER-CLASS
100 $cfg->setConfigEntry('udp_raw_data_handler_class', 'UdpRawDataHandler');
102 // CFG: SHUTDOWN-LISTENER-POOL-VISITOR-CLASS
103 $cfg->setConfigEntry('shutdown_listener_pool_visitor_class', 'ShutdownListenerPoolVisitor');
105 // CFG: SHUTDOWN-TASK-VISITOR-CLASS
106 $cfg->setConfigEntry('shutdown_task_visitor_class', 'ShutdownTaskVisitor');
108 // CFG: SHUTDOWN-SOCKET-VISITOR-CLASS
109 $cfg->setConfigEntry('shutdown_socket_visitor_class', 'ShutdownSocketVisitor');
111 // CFG: HALF-SHUTDOWN-SOCKET-VISITOR-CLASS
112 $cfg->setConfigEntry('half_shutdown_socket_visitor_class', 'HalfShutdownSocketVisitor');
114 // CFG: ACTIVE-TASK-VISITOR-CLASS
115 $cfg->setConfigEntry('active_task_visitor_class', 'ActiveTaskVisitor');
117 // CFG: NODE-RAW-DATA-MONITOR-VISITOR-CLASS
118 $cfg->setConfigEntry('node_raw_data_monitor_visitor_class', 'RawDataPoolMonitorVisitor');
120 // CFG: LIST-GROUP-CLASS
121 $cfg->setConfigEntry('list_group_class', 'ListGroupList');
123 // CFG: NODE-ANNOUNCEMENT-HELPER-CLASS
124 $cfg->setConfigEntry('node_announcement_helper_class', 'NodeAnnouncementHelper');
126 // CFG: NODE-SELF-CONNECT-HELPER-CLASS
127 $cfg->setConfigEntry('node_self_connect_helper_class', 'NodeSelfConnectHelper');
129 // CFG: DHT-BOOTSTRAP-HELPER-CLASS
130 $cfg->setConfigEntry('dht_bootstrap_helper_class', 'DhtBootstrapHelper');
132 // CFG: DHT-PUBLISH-ENTRY-HELPER-CLASS
133 $cfg->setConfigEntry('dht_publish_entry_helper_class', 'DhtPublishEntryHelper');
135 // CFG: DEFAULT-CONSOLE-COMMAND
136 $cfg->setConfigEntry('default_console_command', 'main');
138 // CFG: DEFAULT-HUBCONSOLE-COMMAND
139 $cfg->setConfigEntry('default_hubconsole_command', 'main');
141 // CFG: HUBCONSOLE-CMD-MAIN-RESOLVER-CLASS
142 $cfg->setConfigEntry('hubconsole_cmd_main_resolver_class', 'HubConsoleCommandResolver');
144 // CFG: NETWORK-STATE-RESOLVER-CLASS
145 $cfg->setConfigEntry('network_state_resolver_class', 'NetworkStateResolver');
147 // CFG: NEWS-DOWNLOAD-FILTER
148 $cfg->setConfigEntry('news_download_filter', 'NewsDownloadFilter');
150 // CFG: NEWS-PROCESS-FILTER
151 $cfg->setConfigEntry('news_process_filter', 'NewsProcessFilter');
153 // CFG: NODE-PHP-REQUIREMENTS-FILTER
154 $cfg->setConfigEntry('node_php_requirements_filter', 'NodePhpRequirementsFilter');
156 // CFG: NODE-INITIALIZER-FILTER
157 $cfg->setConfigEntry('node_initializer_filter', 'NodeInitializationFilter');
159 // CFG: NODE-ACTIVATION-TASK-HANDLER-INITIALIZER-FILTER
160 $cfg->setConfigEntry('node_activation_task_handler_initializer_filter', 'NodeTaskHandlerInitializerFilter');
162 // CFG: NODE-ACTIVATION-ANNOUNCEMENT-TASK-FILTER
163 $cfg->setConfigEntry('node_activation_announcement_task_filter', 'NodeActivationAnnouncementFilter');
165 // CFG: NODE-WELCOME-TEASER-FILTER
166 $cfg->setConfigEntry('node_welcome_teaser_filter', 'NodeWelcomeTeaserFilter');
168 // CFG: NODE-BOOTSTRAP-GENERATE-NODEID-FILTER
169 $cfg->setConfigEntry('node_bootstrap_generate_nodeid_filter', 'NodeBootstrapGenerateNodeIdFilter');
171 // CFG: NODE-BOOTSTRAP-GENERATE-SESSIONID-FILTER
172 $cfg->setConfigEntry('node_bootstrap_generate_sessionid_filter', 'NodeBootstrapGenerateSessionIdFilter');
174 // CFG: NODE-BOOTSTRAP-GENERATE-PRIVATE-KEY-FILTER
175 $cfg->setConfigEntry('node_bootstrap_generate_private_key_filter', 'NodeBootstrapGeneratePrivateKeyFilter');
177 // CFG: NODE-BOOTSTRAP-EXTRA-BOOTSTRAPPING-FILTER
178 $cfg->setConfigEntry('node_bootstrap_extra_bootstrapping_filter', 'NodeBootstrapExtraBootstrappingFilter');
180 // CFG: NODE-BOOTSTRAP-LISTENER-POOL-FILTER
181 $cfg->setConfigEntry('node_bootstrap_listener_pool_filter', 'NodeBootstrapListenerPoolFilter');
183 // CFG: NODE-SHUTDOWN-FLUSH-NODE-LIST-FILTER
184 $cfg->setConfigEntry('node_shutdown_flush_node_list_filter', 'NodeShutdownFlushNodeListFilter');
186 // CFG: NODE-SHUTDOWN-TASK-HANDLER-FILTER
187 $cfg->setConfigEntry('node_shutdown_task_handler_filter', 'NodeShutdownTaskHandlerFilter');
189 // CFG: NODE-SHUTDOWN-NODE-FILTER
190 $cfg->setConfigEntry('node_shutdown_node_filter', 'NodeShutdownNodeFilter');
192 // CFG: PACKAGE-FILTER-CHAIN-CLASS
193 $cfg->setConfigEntry('package_filter_chain_class', 'PackageFilterChain');
195 // CFG: PACKAGE-TAG-ANNOUNCEMENT-FILTER
196 $cfg->setConfigEntry('package_tag_announcement_filter', 'PackageAnnouncementTagFilter');
198 // CFG: PACKAGE-TAG-ANNOUNCEMENT-ANSWER-FILTER
199 $cfg->setConfigEntry('package_tag_announcement_answer_filter', 'PackageAnnouncementAnswerTagFilter');
201 // CFG: PACKAGE-TAG-SELF-CONNECT-FILTER
202 $cfg->setConfigEntry('package_tag_self_connect_filter', 'PackageSelfConnectTagFilter');
204 // CFG: PACKAGE-TAG-REQUEST-NODE-LIST-FILTER
205 $cfg->setConfigEntry('package_tag_request_node_list_filter', 'PackageRequestNodeListTagFilter');
207 // CFG: PACKAGE-TAG-REQUEST-NODE-LIST-ANSWER-FILTER
208 $cfg->setConfigEntry('package_tag_request_node_list_answer_filter', 'PackageRequestNodeListAnswerTagFilter');
210 // CFG: MESSAGE-TYPE-ANNOUNCEMENT-HANDLER-CLASS
211 $cfg->setConfigEntry('message_type_announcement_handler_class', 'NodeMessageAnnouncementHandler');
213 // CFG: MESSAGE-TYPE-ANNOUNCEMENT-ANSWER-HANDLER-CLASS
214 $cfg->setConfigEntry('message_type_announcement_answer_handler_class', 'NodeMessageAnnouncementAnswerHandler');
216 // CFG: MESSAGE-TYPE-SELF-CONNECT-HANDLER-CLASS
217 $cfg->setConfigEntry('message_type_self_connect_handler_class', 'NodeMessageSelfConnectHandler');
219 // CFG: MESSAGE-TYPE-REQUEST-NODE-LIST-HANDLER-CLASS
220 $cfg->setConfigEntry('message_type_request_node_list_handler_class', 'NodeMessageRequestNodeListHandler');
222 // CFG: MESSAGE-TYPE-REQUEST-NODE-LIST-ANSWER-HANDLER-CLASS
223 $cfg->setConfigEntry('message_type_request_node_list_answer_handler_class', 'NodeMessageRequestNodeListAnswerHandler');
225 // CFG: NODE-ANSWER-MESSAGE-ANNOUNCEMENT-HELPER-CLASS
226 $cfg->setConfigEntry('node_answer_message_announcement_helper_class', 'NodeAnnouncementMessageAnswerHelper');
228 // CFG: NODE-ANSWER-MESSAGE-REQUEST-NODE-LIST-HELPER-CLASS
229 $cfg->setConfigEntry('node_answer_message_request_node_list_helper_class', 'NodeRequestNodeListMessageAnswerHelper');
231 // CFG: NODE-NEXT-ANNOUNCEMENT-ANSWER-OKAY-HELPER-CLASS
232 $cfg->setConfigEntry('node_next_announcement_answer_okay_helper_class', 'NodeRequestNodeListHelper');
234 // CFG: NEWS-READER-CLASS
235 $cfg->setConfigEntry('news_reader_class', 'ConsoleNewsReader');
237 // CFG: NODE-ANNOUNCEMENT-TEMPLATE-CLASS
238 $cfg->setConfigEntry('node_announcement_template_class', 'XmlAnnouncementTemplateEngine');
240 // CFG: NODE-ANNOUNCEMENT-ANSWER-TEMPLATE-CLASS
241 $cfg->setConfigEntry('node_announcement_answer_template_class', 'XmlAnnouncementAnswerTemplateEngine');
243 // CFG: NODE-REQUEST-NODE-LIST-TEMPLATE-CLASS
244 $cfg->setConfigEntry('node_request_node_list_template_class', 'XmlRequestNodeListTemplateEngine');
246 // CFG: NODE-REQUEST-NODE-LIST-ANSWER-TEMPLATE-CLASS
247 $cfg->setConfigEntry('node_request_node_list_answer_template_class', 'XmlRequestNodeListAnswerTemplateEngine');
249 // CFG: NODE-REQUEST-NODE-LIST-ENTRIES-TEMPLATE-CLASS
250 $cfg->setConfigEntry('node_request_node_list_entries_template_class', 'XmlRequestNodeListEntryTemplateEngine');
252 // CFG: DHT-BOOTSTRAP-TEMPLATE-CLASS
253 $cfg->setConfigEntry('dht_bootstrap_template_class', 'XmlDhtBootstrapTemplateEngine');
255 // CFG: DHT-PUBLISH-ENTRY-TEMPLATE-CLASS
256 $cfg->setConfigEntry('dht_publish_entry_template_class', 'XmlDhtPublishEntryTemplateEngine');
258 // CFG: NODE-MESSAGE-TEMPLATE-EXTENSION
259 $cfg->setConfigEntry('node_message_template_extension', '.xml');
261 // CFG: DHT-MESSAGE-TEMPLATE-EXTENSION
262 $cfg->setConfigEntry('dht_message_template_extension', '.xml');
264 // CFG: NODE-ANNOUNCEMENT-ANSWER-TEMPLATE-EXTENSION
265 $cfg->setConfigEntry('node_announcement_answer_template_extension', '.xml');
267 // CFG: NODE-ANNOUNCEMENT-TEMPLATE-TYPE
268 $cfg->setConfigEntry('node_announcement_template_type', 'xml/announcement');
270 // CFG: NODE-ANNOUNCEMENT-STACKER-CLASS
271 $cfg->setConfigEntry('node_announcement_stacker_class', 'FiLoStacker');
273 // CFG: NODE-ANNOUNCEMENT-ANSWER-STACKER-CLASS
274 $cfg->setConfigEntry('node_announcement_answer_stacker_class', 'FiLoStacker');
276 // CFG: NODE-REQUEST-NODE-LIST-ANSWER-STACKER-CLASS
277 $cfg->setConfigEntry('node_request_node_list_answer_stacker_class', 'FiLoStacker');
279 // CFG: NODE-REQUEST-NODE-LIST-ENTRY-STACKER-CLASS
280 $cfg->setConfigEntry('node_request_node_list_entry_stacker_class', 'FiLoStacker');
282 // CFG: DHT-STACKER-CLASS
283 $cfg->setConfigEntry('dht_stacker_class', 'FiLoStacker');
285 // CFG: NODE-ANNOUNCEMENT-ANSWER-TEMPLATE-TYPE
286 $cfg->setConfigEntry('node_announcement_answer_template_type', 'xml/answer/announcement');
288 // CFG: NODE-REQUEST-NODE-LIST-ANSWER-TEMPLATE-TYPE
289 $cfg->setConfigEntry('node_request_node_list_answer_template_type', 'xml/answer/requests');
291 // CFG: NODE-SELF-CONNECT-TEMPLATE-CLASS
292 $cfg->setConfigEntry('node_self_connect_template_class', 'XmlSelfConnectTemplateEngine');
294 // CFG: NODE-SELF-CONNECT-TEMPLATE-TYPE
295 $cfg->setConfigEntry('node_self_connect_template_type', 'xml/self_connect');
297 // CFG: NODE-REQUEST-NODE-LIST-TEMPLATE-TYPE
298 $cfg->setConfigEntry('node_request_node_list_template_type', 'xml/requests');
300 // CFG: NODE-SELF-CONNECT-STACKER-CLASS
301 $cfg->setConfigEntry('node_self_connect_stacker_class', 'FiLoStacker');
303 // CFG: NODE-REQUEST-NODE_LIST-STACKER-CLASS
304 $cfg->setConfigEntry('node_request_node_list_stacker_class', 'FiLoStacker');
306 // CFG: NODE-OBJECT-REGISTRY-TEMPLATE-CLASS
307 $cfg->setConfigEntry('node_object_registry_template_class', 'XmlObjectRegistryTemplateEngine');
309 // CFG: NODE-OBJECT-REGISTRY-TEMPLATE-EXTENSION
310 $cfg->setConfigEntry('node_object_registry_template_extension', '.xml');
312 // CFG: NODE-OBJECT-REGISTRY-TEMPLATE-TYPE
313 $cfg->setConfigEntry('node_object_registry_template_type', 'xml/object_registry');
315 // CFG: NODE-OBJECT-REGISTRY-STACKER-CLASS
316 $cfg->setConfigEntry('node_object_registry_stacker_class', 'FiLoStacker');
318 // CFG: NODE-OBJECT-TYPE-REGISTRY-CLASS
319 $cfg->setConfigEntry('node_object_type_registry_class', 'ObjectTypeRegistry');
321 // CFG: DHT-BOOTSTRAP-TEMPLATE-TYPE
322 $cfg->setConfigEntry('dht_bootstrap_template_type', 'xml/dht_bootstrap');
324 // CFG: DHT-PUBLISH-TEMPLATE-TYPE
325 $cfg->setConfigEntry('dht_publish_template_type', 'xml/dht_publish');
327 // CFG: CODE-TEMPLATE-TYPE
328 $cfg->setConfigEntry('code_template_type', 'xml');
330 // CFG: RAW-TEMPLATE-EXTENSION (to speed-up things)
331 $cfg->setConfigEntry('raw_template_extension', '.xml');
333 // CFG: PACKAGE-STACKER-CLASS
334 $cfg->setConfigEntry('network_package_stacker_class', 'FiFoStacker');
336 // CFG: NODE-RAW-DATA-STACKER-CLASS
337 $cfg->setConfigEntry('node_raw_data_stacker_class', 'FiFoStacker');
339 // CFG: CHUNK-HANDLER-STACKER-CLASS
340 $cfg->setConfigEntry('chunk_handler_stacker_class', 'FiFoStacker');
342 // CFG: DHT-BOOTSTRAP-STACKER-CLASS
343 $cfg->setConfigEntry('dht_bootstrap_stacker_class', 'FiFoStacker');
345 // CFG: DHT-PUBLISH-STACKER-CLASS
346 $cfg->setConfigEntry('dht_publish_stacker_class', 'FiFoStacker');
348 // CFG: PRODUCER-OUTGOING-QUEUE
349 $cfg->setConfigEntry('producer_outgoing_queue', 'FiFoStacker');
351 // CFG: PRODUCER-INCOMING-QUEUE
352 $cfg->setConfigEntry('producer_incoming_queue', 'FiFoStacker');
354 // CFG: STACKER-NODE-ANNOUNCEMENT-MAX-SIZE
355 $cfg->setConfigEntry('stacker_node_announcement_max_size', 20);
357 // CFG: STACKER-NODE-ANNOUNCEMENT-ANSWER-MAX-SIZE
358 $cfg->setConfigEntry('stacker_node_announcement_answer_max_size', 20);
360 // CFG: STACKER-NODE-SELF-CONNECT-MAX-SIZE
361 $cfg->setConfigEntry('stacker_node_self_connect_max_size', 10);
363 // CFG: STACKER-NODE-REQUEST-NODE-LIST-MAX_SIZE
364 $cfg->setConfigEntry('stacker_node_request_node_list_max_size', 10);
366 // CFG: STACKER-NODE-REQUEST-NODE-LIST-ANSWER-MAX-SIZE
367 $cfg->setConfigEntry('stacker_node_request_node_list_answer_max_size', 20);
369 // CFG: STACKER-NODE-REQUEST-NODE-LIST-ENTRY-MAX_SIZE
370 $cfg->setConfigEntry('stacker_node_request_node_list_entry_max_size', 10);
372 // CFG: STACKER-UNDECLARED-MAX-SIZE
373 $cfg->setConfigEntry('stacker_package_undeclared_max_size', 10000);
375 // CFG: STACKER-PACKAGE-DECLARED-MAX-SIZE
376 $cfg->setConfigEntry('stacker_package_declared_max_size', 1000);
378 // CFG: STACKER-PACKAGE-OUTGOING-MAX-SIZE
379 $cfg->setConfigEntry('stacker_package_outgoing_max_size', 100);
381 // CFG: STACKER-PACKAGE-DECODED-DATA-MAX-SIZE
382 $cfg->setConfigEntry('stacker_package_decoded_data_max_size', 200);
384 // CFG: STACKER-PACKAGE-HANDLED-DECODED-MAX-SIZE
385 $cfg->setConfigEntry('stacker_package_handled_decoded_max_size', 200);
387 // CFG: STACKER-PACKAGE-CHUNKED-DECODED-MAX-SIZE
388 $cfg->setConfigEntry('stacker_package_chunked_decoded_max_size', 800);
390 // CFG: STACKER-PACKAGE-NEW-MESSAGE-MAX-SIZE
391 $cfg->setConfigEntry('stacker_package_new_message_max_size', 400);
393 // CFG: STACKER-PACKAGE-PROCESSED-MESSAGE-MAX-SIZE
394 $cfg->setConfigEntry('stacker_package_processed_message_max_size', 400);
396 // CFG: STACKER-PACKAGE-BACKBUFFER-MAX-SIZE
397 $cfg->setConfigEntry('stacker_package_backbuffer_max_size', 1000);
399 // CFG: STACKER-NODE-OBJECT-REGISTRY-MAX-SIZE
400 $cfg->setConfigEntry('stacker_node_object_registry_max_size', 100);
402 // CFG: STACKER-RAW-DATA-MAX-SIZE
403 $cfg->setConfigEntry('stacker_raw_data_max_size', 100);
405 // CFG: STACKER-FINAL-CHUNKS-MAX-SIZE
406 $cfg->setConfigEntry('stacker_final_chunks_max_size', 100);
408 // CFG: STACKER-PENDING-CHUNKS-MAX-SIZE
409 $cfg->setConfigEntry('stacker_pending_chunks_max_size', 500);
411 // CFG: STACKER-CHUNK-RAW-DATA-MAX-SIZE
412 $cfg->setConfigEntry('stacker_chunk_raw_data_max_size', 100);
414 // CFG: STACKER-DECODED-PACKAGE-MAX-SIZE
415 $cfg->setConfigEntry('stacker_decoded_package_max_size', 100);
417 // CFG: STACKER-DHT-BOOTSTRAP-MAX-SIZE
418 $cfg->setConfigEntry('stacker_dht_bootstrap_max_size', 10);
420 // CFG: STACKER-DHT-PUBLISH-MAX-SIZE
421 $cfg->setConfigEntry('stacker_dht_publish_max_size', 10);
423 // CFG: STACKER-DHT-INSERT-NODE-MAX-SIZE
424 $cfg->setConfigEntry('stacker_dht_insert_node_max_size', 100);
426 // CFG: STACKER-DHT-PENDING_PUBLISH-MAX-SIZE
427 $cfg->setConfigEntry('stacker_dht_pending_publish_max_size', 100);
429 // CFG: NEWS-MAIN-LIMIT
430 $cfg->setConfigEntry('news_main_limit', 5);
432 // CFG: TASK-HANDLER-CLASS
433 $cfg->setConfigEntry('task_handler_class', 'TaskHandler');
435 // CFG: TASK-PACKAGE-TAGS-INIT-STARTUP-DELAY
436 $cfg->setConfigEntry('task_package_tags_init_startup_delay', 50);
438 // CFG: TASK-PACKAGE-TAGS-INIT-INTERVAL-DELAY
439 $cfg->setConfigEntry('task_package_tags_init_interval_delay', 1000*60*60*24*7);
441 // CFG: TASK-PACKAGE-TAGS-INIT-MAX-RUNS
442 $cfg->setConfigEntry('task_package_tags_init_max_runs', 1);
444 // CFG: TASK-IDLE-LOOP-STARTUP-DELAY
445 $cfg->setConfigEntry('task_idle_loop_startup_delay', 0);
447 // CFG: TASK-IDLE-LOOP-INTERVAL-DELAY
448 $cfg->setConfigEntry('task_idle_loop_interval_delay', 0);
450 // CFG: TASK-IDLE-LOOP-MAX-RUNS
451 $cfg->setConfigEntry('task_idle_loop_max_runs', 0);
453 // CFG: TASK-SELF-CONNECT-STARTUP-DELAY
454 $cfg->setConfigEntry('task_self_connect_startup_delay', 4000);
456 // CFG: TASK-SELF-CONNECT-INTERVAL-DELAY
457 $cfg->setConfigEntry('task_self_connect_interval_delay', 1000*60*30);
459 // CFG: TASK-SELF-CONNECT-MAX-RUNS
460 $cfg->setConfigEntry('task_self_connect_max_runs', 0);
462 // CFG: TASK-ANNOUNCEMENT-STARTUP-DELAY
463 $cfg->setConfigEntry('task_announcement_startup_delay', 10000);
465 // CFG: TASK-ANNOUNCEMENT-INTERVAL-DELAY
466 $cfg->setConfigEntry('task_announcement_interval_delay', 1000);
468 // CFG: TASK-ANNOUNCEMENT-MAX-RUNS
469 $cfg->setConfigEntry('task_announcement_max_runs', 1);
471 // CFG: TASK-UPDATE-CHECK-STARTUP-DELAY
472 $cfg->setConfigEntry('task_update_check_startup_delay', 1000*60*60*6);
474 // CFG: TASK-UPDATE-CHECK-INTERVAL-DELAY
475 $cfg->setConfigEntry('task_update_check_interval_delay', 1000*60*60*24);
477 // CFG: TASK-UPDATE-CHECK-MAX-RUNS
478 $cfg->setConfigEntry('task_update_check_max_runs', 0);
480 // CFG: TASK-PING-STARTUP-DELAY
481 $cfg->setConfigEntry('task_ping_startup_delay', 1000*60);
483 // CFG: TASK-PING-INTERVAL-DELAY
484 $cfg->setConfigEntry('task_ping_interval_delay', 1000*60*60);
486 // CFG: TASK-PING-MAX-RUNS
487 $cfg->setConfigEntry('task_ping_max_runs', 0);
489 // CFG: IDLE-TASK-CLASS
490 $cfg->setConfigEntry('idle_task_class', 'IdleLoopTask');
492 // CFG: NODE-PACKAGE-TAGS-INIT-TASK-CLASS
493 $cfg->setConfigEntry('node_package_tags_init_task_class', 'NodePackageTagsInitTask');
495 // CFG: NODE-SELFCONNECT-TASK-CLASS
496 $cfg->setConfigEntry('node_selfconnect_task_class', 'NodeSelfConnectTask');
498 // CFG: NODE-UPDATE-CHECK-TASK-CLASS
499 $cfg->setConfigEntry('node_update_check_task_class', 'NodeUpdateCheckTask');
501 // CFG: NODE-PING-TASK-CLASS
502 $cfg->setConfigEntry('node_ping_task_class', 'NodePingTask');
504 // CFG: NODE-ANNOUNCEMENT-TASK-CLASS
505 $cfg->setConfigEntry('node_announcement_task_class', 'NodeAnnouncementTask');
507 // CFG: NODE-PACKAGE-WRITER-TASK-CLASS
508 $cfg->setConfigEntry('node_package_writer_task_class', 'NetworkPackageWriterTask');
510 // CFG: NODE-PACKAGE-READER-TASK-CLASS
511 $cfg->setConfigEntry('node_package_reader_task_class', 'NetworkPackageReaderTask');
513 // CFG: NODE-SOCKET-LISTENER-TASK-CLASS
514 $cfg->setConfigEntry('node_socket_listener_task_class', 'NodeSocketListenerTask');
516 // CFG: NODE-CHUNK-ASSEMBLER-TASK-CLASS
517 $cfg->setConfigEntry('node_chunk_assembler_task_class', 'NodeChunkAssemblerTask');
519 // CFG: NODE-PACKAGE-DECODER-TASK-CLASS
520 $cfg->setConfigEntry('node_package_decoder_task_class', 'NodePackageDecoderTask');
522 // CFG: NODE-DHT-INIT-TASK-CLASS
523 $cfg->setConfigEntry('node_dht_init_task_class', 'NodeDhtInitializationTask');
525 // CFG: NODE-DHT-BOOTSTRAP-TASK-CLASS
526 $cfg->setConfigEntry('node_dht_bootstrap_task_class', 'NodeDhtBootstrapTask');
528 // CFG: NODE-DHT-QUERY-TASK-CLASS
529 $cfg->setConfigEntry('node_dht_query_task_class', 'NodeDhtQueryTask');
531 // CFG: NODE-DHT-PUBLICATION-CHECK-TASK-CLASS
532 $cfg->setConfigEntry('node_dht_publication_check_task_class', 'NodeDhtPublicationCheckTask');
534 // CFG: NODE-DHT-PUBLICATION-TASK-CLASS
535 $cfg->setConfigEntry('node_dht_publication_task_class', 'NodeDhtPublicationTask');
537 // CFG: TASK-NETWORK-PACKAGE-WRITER-STARTUP-DELAY
538 $cfg->setConfigEntry('task_network_package_writer_startup_delay', 2500);
540 // CFG: TASK-NETWORK-PACKAGE-WRITER-INTERVAL-DELAY
541 $cfg->setConfigEntry('task_network_package_writer_interval_delay', 10);
543 // CFG: TASK-NETWORK-PACKAGE-WRITER-MAX-RUNS
544 $cfg->setConfigEntry('task_network_package_writer_max_runs', 0);
546 // CFG: TASK-NETWORK-PACKAGE-READER-STARTUP-DELAY
547 $cfg->setConfigEntry('task_network_package_reader_startup_delay', 2000);
549 // CFG: TASK-NETWORK-PACKAGE-READER-INTERVAL-DELAY
550 $cfg->setConfigEntry('task_network_package_reader_interval_delay', 10);
552 // CFG: TASK-NETWORK-PACKAGE-READER-MAX-RUNS
553 $cfg->setConfigEntry('task_network_package_reader_max_runs', 0);
555 // CFG: TASK-SOCKET-LISTENER-STATUP-DELAY
556 $cfg->setConfigEntry('task_socket_listener_startup_delay', 2500);
558 // CFG: TASK-SOCKET-LISTENER-INTERVAL-DELAY
559 $cfg->setConfigEntry('task_socket_listener_interval_delay', 10);
561 // CFG: TASK-SOCKET-LISTENER-MAX-RUNS
562 $cfg->setConfigEntry('task_socket_listener_max_runs', 0);
564 // CFG: TASK-PACKAGE-DECODER-STATUP-DELAY
565 $cfg->setConfigEntry('task_package_decoder_startup_delay', 1300);
567 // CFG: TASK-PACKAGE-DECODER-INTERVAL-DELAY
568 $cfg->setConfigEntry('task_package_decoder_interval_delay', 50);
570 // CFG: TASK-PACKAGE-DECODER-MAX-RUNS
571 $cfg->setConfigEntry('task_package_decoder_max_runs', 0);
573 // CFG: TASK-CHUNK-ASSEMBLER-STATUP-DELAY
574 $cfg->setConfigEntry('task_chunk_assembler_startup_delay', 1500);
576 // CFG: TASK-CHUNK-ASSEMBLER-INTERVAL-DELAY
577 $cfg->setConfigEntry('task_chunk_assembler_interval_delay', 50);
579 // CFG: TASK-CHUNK-ASSEMBLER-MAX-RUNS
580 $cfg->setConfigEntry('task_chunk_assembler_max_runs', 0);
582 // CFG: TASK-DHT-INIT-STATUP-DELAY
583 $cfg->setConfigEntry('task_dht_init_startup_delay', 100);
585 // CFG: TASK-DHT-INIT-INTERVAL-DELAY
586 $cfg->setConfigEntry('task_dht_init_interval_delay', 86400000); // = 1 day (won't matter anyway)
588 // CFG: TASK-DHT-INIT-MAX-RUNS
589 $cfg->setConfigEntry('task_dht_init_max_runs', 1);
591 // CFG: TASK-DHT-BOOTSTRAP-STATUP-DELAY
592 $cfg->setConfigEntry('task_dht_bootstrap_startup_delay', 100);
594 // CFG: TASK-DHT-BOOTSTRAP-INTERVAL-DELAY
595 $cfg->setConfigEntry('task_dht_bootstrap_interval_delay', 3600000); // = 1 hour (won't matter anyway)
597 // CFG: TASK-DHT-BOOTSTRAP-MAX-RUNS
598 $cfg->setConfigEntry('task_dht_bootstrap_max_runs', 1);
600 // CFG: TASK-DHT-QUERY-STATUP-DELAY
601 $cfg->setConfigEntry('task_dht_query_startup_delay', 1400);
603 // CFG: TASK-DHT-QUERY-INTERVAL-DELAY
604 $cfg->setConfigEntry('task_dht_query_interval_delay', 50);
606 // CFG: TASK-DHT-QUERY-MAX-RUNS
607 $cfg->setConfigEntry('task_dht_query_max_runs', 0);
609 // CFG: TASK-DHT-CHECK-PUBLICATION-STATUP-DELAY
610 $cfg->setConfigEntry('task_dht_check_publication_startup_delay', 10000);
612 // CFG: TASK-DHT-CHECK-PUBLICATION-INTERVAL-DELAY
613 $cfg->setConfigEntry('task_dht_check_publication_interval_delay', 1800000); // = 1/2 hour
615 // CFG: TASK-DHT-CHECK-PUBLICATION-MAX-RUNS
616 $cfg->setConfigEntry('task_dht_check_publication_max_runs', 0);
618 // CFG: TASK-DHT-PUBLICATION-STATUP-DELAY
619 $cfg->setConfigEntry('task_dht_publication_startup_delay', 8000);
621 // CFG: TASK-DHT-PUBLICATION-INTERVAL-DELAY
622 $cfg->setConfigEntry('task_dht_publication_interval_delay', 5000);
624 // CFG: TASK-DHT-PUBLICATION-MAX-RUNS
625 $cfg->setConfigEntry('task_dht_publication_max_runs', 0);
627 // CFG: TASK-LIST-CLASS
628 $cfg->setConfigEntry('task_list_class', 'TaskList');
630 // CFG: TASK-POOL-ITERATOR-CLASS
631 $cfg->setConfigEntry('task_pool_iterator_class', 'TaskPoolIterator');
633 // CFG: MONITOR-POOL-ITERATOR-CLASS
634 $cfg->setConfigEntry('monitor_pool_iterator_class', 'MonitorPoolIterator');
636 // CFG: DEFAULT-ITERATOR-CLASS
637 $cfg->setConfigEntry('default_iterator_class', 'DefaultIterator');
639 // CFG: QUERY-ITERATOR-CLASS
640 $cfg->setConfigEntry('query_iterator_class', 'DefaultIterator');
642 // CFG: NODE-PING-ITERATOR-CLASS
643 $cfg->setConfigEntry('node_ping_iterator_class', 'HubPingIterator');
645 // CFG: WEB-TEMPLATE-CLASS @OVERRIDE
646 $cfg->setConfigEntry('web_template_class', 'ConsoleTemplateEngine');
648 // CFG: NETWORK-PACKAGE-CLASS
649 $cfg->setConfigEntry('network_package_class', 'NetworkPackage');
651 // CFG: PACKAGE-COMPRESSOR-CLASS
652 $cfg->setConfigEntry('deco_package_compressor_class', 'NetworkPackageCompressorDecorator');
654 // CFG: RAW-PACKAGE-COMPRESSOR-CLASS
655 $cfg->setConfigEntry('raw_package_compressor_class', 'ZlibCompressor');
657 // CFG: SOCKET-REGISTRY-CLASS
658 $cfg->setConfigEntry('socket_registry_class', 'SocketRegistry');
660 // CFG: SOCKET-CONTAINER-CLASS
661 $cfg->setConfigEntry('socket_container_class', 'SocketContainer');
663 // CFG: PACKAGE-RECIPIENT-DISCOVERY-CLASS
664 $cfg->setConfigEntry('package_recipient_discovery_class', 'PackageRecipientDiscovery');
666 // CFG: SOCKET-DISCOVERY-CLASS
667 $cfg->setConfigEntry('socket_discovery_class', 'PackageSocketDiscovery');
669 // CFG: DHT-RECIPIENT-DISCOVERY-CLASS
670 $cfg->setConfigEntry('dht_recipient_discovery_class', 'DhtRecipientDiscovery');
672 // CFG: RECIPIENT-LIST-CLASS
673 $cfg->setConfigEntry('recipient_list_class', 'RecipientList');
675 // CFG: PACKAGE-TAGS-CLASS
676 $cfg->setConfigEntry('package_tags_class', 'PackageTags');
678 // CFG: TCP-CONNECTION-HELPER-CLASS
679 $cfg->setConfigEntry('tcp_connection_helper_class', 'TcpConnectionHelper');
681 // CFG: UDP-CONNECTION-HELPER-CLASS
682 $cfg->setConfigEntry('udp_connection_helper_class', 'UdpConnectionHelper');
684 // CFG: TCP-BUFFER-LENGTH
685 $cfg->setConfigEntry('tcp_buffer_length', 1024);
687 // CFG: UDP-BUFFER-LENGTH
688 $cfg->setConfigEntry('udp_buffer_length', 1024);
690 // CFG: TCP-CONNECT-RETRY-MAX
691 $cfg->setConfigEntry('tcp_connect_retry_max', 5);
693 // CFG: UDP-CONNECT-RETRY-MAX
694 $cfg->setConfigEntry('udp_connect_retry_max', 5);
696 // CFG: TCP-SOCKET-ACCEPT-WAIT-SEC
697 // @TODO This and the next value is very static again
698 $cfg->setConfigEntry('tcp_socket_accept_wait_sec', 3);
700 // CFG: TCP-SOCKET-ACCEPT-WAIT-USEC
701 $cfg->setConfigEntry('tcp_socket_accept_wait_usec', 0);
703 // CFG: NODE-STATE-CHECKED-PACKAGE-CLASS
704 $cfg->setConfigEntry('node_state_checked_package_class', 'NewConnectionNodeState');
707 $cfg->setConfigEntry('node_id', '');
710 $cfg->setConfigEntry('session_id', '');
713 $cfg->setConfigEntry('private_key', '');
715 // CFG: PRIVATE-KEY-HASH
716 $cfg->setConfigEntry('private_key_hash', '');
719 $cfg->setConfigEntry('internal_ip', ConsoleTools::acquireSelfIPAddress());
722 $cfg->setConfigEntry('external_ip', '');
724 // CFG: ALLOW-PUBLISH-INTERNAL-IP
725 $cfg->setConfigEntry('allow_publish_internal_ip', 'N');
728 $cfg->setConfigEntry('node_status', 'invalid');
730 // CFG: PACKAGE-FRAGMENTER-CLASS
731 $cfg->setConfigEntry('package_fragmenter_class', 'PackageFragmenter');
733 // CFG: PACKAGE-ASSEMBLER-CLASS
734 $cfg->setConfigEntry('package_assembler_class', 'PackageAssembler');
736 // CFG: PACKAGE-CHUNK-SIZE
737 $cfg->setConfigEntry('package_chunk_size', 256*8);
739 // CFG: NODE-RAW-DATA-OUTPUT-STREAM-CLASS
740 $cfg->setConfigEntry('node_raw_data_output_stream_class', 'RawDataOutputStream');
742 // CFG: NODE-RAW-DATA-INPUT-STREAM-CLASS
743 $cfg->setConfigEntry('node_raw_data_input_stream_class', 'RawDataInputStream');
745 // CFG: DEBUG-OUTPUT-TIMINGS
746 $cfg->setConfigEntry('debug_output_timings', 'Y');
748 // CFG: SOCKET-TIMEOUT-SECONDS
749 $cfg->setConfigEntry('socket_timeout_seconds', 3);
751 // CFG: SOCKET-TIMEOUT-MICROSECONDS
752 $cfg->setConfigEntry('socket_timeout_microseconds', 0);
754 // CFG: CHUNK-HANDLER-CLASS
755 $cfg->setConfigEntry('chunk_handler_class', 'ChunkHandler');
757 // CFG: PACKAGE-DECODER-CLASS
758 $cfg->setConfigEntry('package_decoder_class', 'PackageDecoder');
760 // CFG: PACKAGE-RECIPIENT-MAX-COUNT
761 // @TODO This is very static, rewrite it to more flexible
762 $cfg->setConfigEntry('package_recipient_max_count', 3);
764 // CFG: NODE-DHT-CLASS
765 $cfg->setConfigEntry('node_dht_class', 'NodeDhtFacade');
767 ///////////////////////////////////////////////////////////////////////////////
769 ///////////////////////////////////////////////////////////////////////////////
771 // CFG: NODE-INIT-STATE-CLASS
772 $cfg->setConfigEntry('node_init_state_class', 'NodeInitState');
774 // CFG: NODE-VIRGIN-STATE-CLASS
775 $cfg->setConfigEntry('node_virgin_state_class', 'NodeVirginState');
777 // CFG: NODE-ACTIVE-STATE-CLASS
778 $cfg->setConfigEntry('node_active_state_class', 'NodeActiveState');
780 // CFG: NODE-ANNOUNCED-STATE-CLASS
781 $cfg->setConfigEntry('node_announced_state_class', 'NodeAnnouncedState');
783 // CFG: NODE-REACHABLE-STATE-CLASS
784 $cfg->setConfigEntry('node_reachable_state_class', 'NodeReachableState');
786 // CFG: NODE-ANNOUNCEMENT-COMPLETED-STATE-CLASS
787 $cfg->setConfigEntry('node_announcement_completed_state_class', 'NodeAnnouncementCompletedState');
789 ///////////////////////////////////////////////////////////////////////////////
791 ///////////////////////////////////////////////////////////////////////////////
793 // CFG: PEER-INIT-STATE-CLASS
794 $cfg->setConfigEntry('peer_init_state_class', 'InitPeerState');
796 // CFG: PEER-CONNECTED-STATE-CLASS
797 $cfg->setConfigEntry('peer_connected_state_class', 'ConnectedPeerState');
799 // CFG: PEER-PROBLEM-STATE-CLASS
800 $cfg->setConfigEntry('peer_problem_state_class', 'ProblemPeerState');
802 // CFG: PEER-CONNECTION-REFUSED-STATE-CLASS
803 $cfg->setConfigEntry('peer_connection_refused_state_class', 'ConnectionRefusedPeerState');
805 // CFG: PEER-CONNECTION-TIMED-OUT-STATE-CLASS
806 $cfg->setConfigEntry('peer_connection_timed_out_state_class', 'ConnectionTimedOutPeerState');
808 // CFG: PEER-TRANSPORT-ENDPOINT-STATE-CLASS
809 $cfg->setConfigEntry('peer_transport_endpoint_state_class', 'TransportEndpointGonePeerState');
811 // CFG: PEER-OPERATION-ALREADY-PROGRESS-STATE-CLASS
812 $cfg->setConfigEntry('peer_operation_already_progress_state_class', 'OperationAlreadyProgressPeerState');
814 // CFG: PEER-NO-ROUTE-TO-HOST-STATE-CLASS
815 $cfg->setConfigEntry('peer_no_route_to_host_state_class', 'NoRouteToHostPeerState');
817 ///////////////////////////////////////////////////////////////////////////////
819 ///////////////////////////////////////////////////////////////////////////////
821 // CFG: DHT-INIT-STATE-CLASS
822 $cfg->setConfigEntry('dht_init_state_class', 'DhtInitState');
824 // CFG: DHT-VIRGIN-STATE-CLASS
825 $cfg->setConfigEntry('dht_virgin_state_class', 'DhtVirginState');
827 // CFG: DHT-BOOTING-STATE-CLASS
828 $cfg->setConfigEntry('dht_booting_state_class', 'DhtBootingState');
830 // CFG: DHT-ACTIVE-STATE-CLASS
831 $cfg->setConfigEntry('dht_active_state_class', 'DhtActiveState');
833 ///////////////////////////////////////////////////////////////////////////////
834 // Message answer-status handler
835 ///////////////////////////////////////////////////////////////////////////////
837 // CFG: ANNOUNCEMENT-ANSWER-STATUS-OKAY-HANDLER-CLASS
838 $cfg->setConfigEntry('announcement_answer_status_okay_handler_class', 'AnnouncementAnswerOkayHandler');
840 // CFG: REQUEST-NODE-LIST-ANSWER-STATUS-OKAY-HANDLER-CLASS
841 $cfg->setConfigEntry('request_node_list_answer_status_okay_handler_class', 'RequestNodeListAnswerOkayHandler');
843 ///////////////////////////////////////////////////////////////////////////////
844 // Recipient resolver
845 ///////////////////////////////////////////////////////////////////////////////
847 // CFG: DIRECT-RECIPIENT-CLASS
848 $cfg->setConfigEntry('direct_recipient_class', 'DirectRecipient');
850 // CFG: DHT-RECIPIENT-CLASS
851 $cfg->setConfigEntry('dht_recipient_class', 'DhtRecipient');
853 // CFG: SELF-RECIPIENT-CLASS
854 $cfg->setConfigEntry('self_recipient_class', 'SelfRecipient');
856 // CFG: UPPER-RECIPIENT-CLASS
857 $cfg->setConfigEntry('upper_recipient_class', 'UpperRecipient');
859 ///////////////////////////////////////////////////////////////////////////////
860 // Cruncher configuration
861 ///////////////////////////////////////////////////////////////////////////////
863 // CFG: CRUNCHER-DEFAULT-MODE (can be only 'mcrypt' at the moment)
864 $cfg->setConfigEntry('cruncher_default_mode', 'mcrypt');
866 // CFG: CRUNCHER-BUFFER-STACKER-CLASS
867 $cfg->setConfigEntry('cruncher_buffer_stacker_class', 'FiFoStacker');
869 // CFG: HUBCONSOLE-CMD-CRUNCHER-RESOLVER-CLASS
870 $cfg->setConfigEntry('hubconsole_cmd_cruncher_resolver_class', 'HubConsoleCommandResolver');
872 // CFG: CRUNCHER-PHP-REQUIREMENTS-FILTER
873 $cfg->setConfigEntry('cruncher_php_requirements_filter', 'CruncherPhpRequirementsFilter');
875 // CFG: CRUNCHER-INITIALIZER-FILTER
876 $cfg->setConfigEntry('cruncher_initializer_filter', 'CruncherInitializationFilter');
878 // CFG: CRUNCHER-BOOTSTRAP-TASK-HANDLER-INITIALIZER-FILTER
879 $cfg->setConfigEntry('cruncher_bootstrap_task_handler_initializer_filter', 'CruncherTaskHandlerInitializerFilter');
881 // CFG: CRUNCHER-BOOTSTRAP-EXTRA-BOOTSTRAPPING-FILTER
882 $cfg->setConfigEntry('cruncher_bootstrap_extra_bootstrapping_filter', 'CruncherBootstrapExtraBootstrappingFilter');
884 // CFG: CRUNCHER-BOOTSTRAP-BUFFER-QUEUE-INITIALIZER-FILTER
885 $cfg->setConfigEntry('cruncher_bootstrap_buffer_queue_initializer_filter', 'CruncherBootstrapBufferQueueInitializerFilter');
887 // CFG: CRUNCHER-BOOTSTRAP-GENERIC-ACTIVATION-FILTER
888 $cfg->setConfigEntry('cruncher_bootstrap_generic_activation_filter', 'CruncherBootstrapGenericActivationFilter');
890 // CFG: CRUNCHER-WELCOME-TEASER-FILTER
891 $cfg->setConfigEntry('cruncher_welcome_teaser_filter', 'CruncherWelcomeTeaserFilter');
893 // CFG: CRUNCHER-SHUTDOWN-FILTER
894 $cfg->setConfigEntry('cruncher_shutdown_filter', 'CruncherShutdownFilter');
896 // CFG: CRUNCHER-WORK-UNIT-FETCHER-TASK-CLASS
897 $cfg->setConfigEntry('cruncher_work_unit_fetcher_task_class', 'CruncherWorkUnitFetcherTask');
899 // CFG: CRUNCHER-TEST-UNIT-PRODUCER-TASK-CLASS
900 $cfg->setConfigEntry('cruncher_test_unit_producer_task_class', 'CruncherTestUnitProducerTask');
902 // CFG: CRUNCHER-KEY-PRODUCER-TASK-CLASS
903 $cfg->setConfigEntry('cruncher_key_producer_task_class', 'CruncherKeyProducerTask');
905 // CFG: TASK-CRUNCHER-WORK-UNIT-FETCHER-STARTUP-DELAY
906 $cfg->setConfigEntry('task_cruncher_work_unit_fetcher_startup_delay', 1000);
908 // CFG: TASK-CRUNCHER-WORK-UNIT-FETCHER-INTERVAL-DELAY
909 $cfg->setConfigEntry('task_cruncher_work_unit_fetcher_interval_delay', 10);
911 // CFG: TASK-CRUNCHER-WORK-UNIT-FETCHER-MAX-RUNS
912 $cfg->setConfigEntry('task_cruncher_work_unit_fetcher_max_runs', 0);
914 // CFG: TASK-CRUNCHER-TEST-UNIT-PRODUCER-STARTUP-DELAY
915 $cfg->setConfigEntry('task_cruncher_test_unit_producer_startup_delay', 500);
917 // CFG: TASK-CRUNCHER-TEST-UNIT-PRODUCER-INTERVAL-DELAY
918 $cfg->setConfigEntry('task_cruncher_test_unit_producer_interval_delay', 1000*60*60);
920 // CFG: TASK-CRUNCHER-TEST-UNIT-PRODUCER-MAX-RUNS
921 $cfg->setConfigEntry('task_cruncher_test_unit_producer_max_runs', 0);
923 // CFG: TASK-CRUNCHER-KEY-PRODUCER-STARTUP-DELAY
924 $cfg->setConfigEntry('task_cruncher_key_producer_startup_delay', 750);
926 // CFG: TASK-CRUNCHER-KEY-PRODUCER-INTERVAL-DELAY
927 $cfg->setConfigEntry('task_cruncher_key_producer_interval_delay', 5);
929 // CFG: TASK-CRUNCHER-KEY-PRODUCER-MAX-RUNS
930 $cfg->setConfigEntry('task_cruncher_key_producer_max_runs', 0);
932 // CFG: CRUNCHER-TEST-UNITS-ENABLED
933 $cfg->setConfigEntry('cruncher_test_units_enabled', 'Y');
935 // CFG: CRUNCHER-IN-BUFFER-MIN-THRESHOLD
936 $cfg->setConfigEntry('cruncher_in_buffer_min_threshold', 3);
938 // CFG: CRUNCHER-TEST-UNIT-GENERATOR-CLASS
939 $cfg->setConfigEntry('cruncher_test_unit_generator_class', 'CruncherTestUnitHelper');
941 // CFG: CRUNCHER-MAX-TEST-UNIT-AMOUNT
942 $cfg->setConfigEntry('cruncher_max_text_unit_amount', 10);
944 // CFG: CRUNCHER-TEST-UNIT-PRODUCER-CLASS
945 $cfg->setConfigEntry('cruncher_test_unit_producer_class', 'CruncherTestUnitProducer');
947 // CFG: CRUNCHER-KEY-PRODUCER-CLASS
948 $cfg->setConfigEntry('cruncher_key_producer_class', 'CruncherKeyProducer');
950 // CFG: CRUNCHER-TEST-UNIT-PRODUCER-TEMPLATE-CLASS
951 $cfg->setConfigEntry('cruncher_test_unit_producer_template_class', 'XmlCruncherTestUnitTemplateEngine');
953 // CFG: CRUNCHER-MESSAGE-TEMPLATE-EXTENSION
954 $cfg->setConfigEntry('cruncher_message_template_extension', '.xml');
956 // CFG: CRUNCHER-TEST-UNIT-TEMPLATE-EXTENSION
957 $cfg->setConfigEntry('cruncher_test_unit_template_extension', '.xml');
959 // CFG: CRUNCHER-TEST-UNIT-STACKER-CLASS
960 $cfg->setConfigEntry('cruncher_test_unit_stacker_class', 'FiLoStacker');
962 // CFG: CRUNCHER-TEST-UNIT-TEMPLATE-TYPE
963 $cfg->setConfigEntry('cruncher_test_unit_template_type', 'xml/cruncher/producer');
965 // CFG: STACKER-CRUNCHER-TEST-UNIT-MAX-SIZE
966 $cfg->setConfigEntry('stacker_cruncher_test_unit_max_size', 20);
968 // CFG: STACKER-OUTGOING-QUEUE-MAX-SIZE
969 $cfg->setConfigEntry('stacker_outgoing_queue_max_size', 2000);
971 // CFG: CRUNCHER-TEST-UNIT-MAX-COUNT
972 $cfg->setConfigEntry('cruncher_test_unit_max_count', 1000);
974 // CFG: CRUNCHER-UNIT-DB-WRAPPER-CLASS
975 $cfg->setConfigEntry('cruncher_unit_db_wrapper_class', 'CruncherUnitDatabaseWrapper');
977 // CFG: CRUNCHER-RANDOM-SECRET-MESSAGE-LENGTH
978 $cfg->setConfigEntry('random_secret_message_length', 100);
980 // CFG: TEST-UNIT-PRODUCER-KEY-ITERATOR-CLASS
981 $cfg->setConfigEntry('test_unit_producer_key_iterator_class', 'TestUnitKeyProducerIterator');
983 // CFG: WORK-UNIT-PRODUCER-KEY-ITERATOR-CLASS
984 $cfg->setConfigEntry('work_unit_producer_key_iterator_class', 'WorkUnitKeyProducerIterator');
986 // CFG: TEST-UNIT-RANDOM-SECRET-KEY-LENGTH
987 $cfg->setConfigEntry('test_unit_random_secret_key_length', 8*4);
989 // CFG: TEST-UNIT-SOURCE-CLASS
990 $cfg->setConfigEntry('test_unit_source_class', 'TestUnitSource');
992 // CFG: CRYPTO-RANDOM-MESSAGE-HELPER-CLASS
993 $cfg->setConfigEntry('crypto_random_message_helper_class', 'CryptoRandomUnitMessageHelper');
995 // CFG: CRUNCHER-INIT-STATE-CLASS
996 $cfg->setConfigEntry('cruncher_init_state_class', 'CruncherInitState');
998 // CFG: CRUNCHER-VIRGIN-STATE-CLASS
999 $cfg->setConfigEntry('cruncher_virgin_state_class', 'CruncherVirginState');
1001 // CFG: CRUNCHER-PER-UNIT-KEY-LIMIT
1002 $cfg->setConfigEntry('cruncher_per_unit_key_limit', 1000);
1004 ///////////////////////////////////////////////////////////////////////////////
1005 // Chat Configuration
1006 ///////////////////////////////////////////////////////////////////////////////
1008 // CFG: HUBCONSOLE-CMD-CHAT-RESOLVER-CLASS
1009 $cfg->setConfigEntry('hubconsole_cmd_chat_resolver_class', 'HubConsoleCommandResolver');
1011 // CFG: CHAT-PHP-REQUIREMENTS-FILTER
1012 $cfg->setConfigEntry('chat_php_requirements_filter', 'ChatPhpRequirementsFilter');
1014 // CFG: CHAT-INITIALIZER-FILTER
1015 $cfg->setConfigEntry('chat_initializer_filter', 'ChatInitializationFilter');
1017 // CFG: NODE-CONSOLE-CHAT
1018 $cfg->setConfigEntry('node_console_chat_class', 'NodeConsoleChat');
1020 // CFG: CHAT-WELCOME-TEASER-FILTER
1021 $cfg->setConfigEntry('chat_welcome_teaser_filter', 'ChatWelcomeTeaserFilter');
1023 // CFG: CHAT-BOOTSTRAP-TASK-HANDLER-INITIALIZER-FILTER
1024 $cfg->setConfigEntry('chat_bootstrap_task_handler_initializer_filter', 'ChatTaskHandlerInitializerFilter');
1026 // CFG: CHAT-BOOTSTRAP-EXTRA-BOOTSTRAPPING-FILTER
1027 $cfg->setConfigEntry('chat_bootstrap_extra_bootstrapping_filter', 'ChatBootstrapExtraBootstrappingFilter');
1029 // CFG: CHAT-BOOTSTRAP-GENERIC-ACTIVATION-FILTER
1030 $cfg->setConfigEntry('chat_bootstrap_generic_activation_filter', 'ChatBootstrapGenericActivationFilter');
1032 // CFG: CHAT-SHUTDOWN-FILTER
1033 $cfg->setConfigEntry('chat_shutdown_filter', 'ChatShutdownFilter');
1035 // CFG: CHAT-TELNET-LISTENER-TASK-CLASS
1036 $cfg->setConfigEntry('chat_telnet_listener_task_class', 'ChatTelnetListenerTask');
1038 // CFG: TASK-CHAT-TELNET-LISTENER-STARTUP-DELAY
1039 $cfg->setConfigEntry('task_chat_telnet_listener_startup_delay', 2500);
1041 // CFG: TASK-CHAT-TELNET-LISTENER-INTERVAL-DELAY
1042 $cfg->setConfigEntry('task_chat_telnet_listener_interval_delay', 10);
1044 // CFG: TASK-CHAT-TELNET-LISTENER-MAX-RUNS
1045 $cfg->setConfigEntry('task_chat_telnet_listener_max_runs', 0);
1047 ///////////////////////////////////////////////////////////////////////////////
1048 // HTTP Configuration
1049 ///////////////////////////////////////////////////////////////////////////////
1051 // CFG: DEFAULT-WEB-COMMAND
1052 $cfg->setConfigEntry('default_web_command', 'home');
1054 // CFG: WEB-CMD-HOME-RESOLVER-CLASS
1055 $cfg->setConfigEntry('web_cmd_home_resolver_class', 'WebCommandResolver');
1057 // CFG: NEWS-HOME-LIMIT
1058 $cfg->setConfigEntry('news_home_limit', 10);
1060 ///////////////////////////////////////////////////////////////////////////////
1061 // Apt-Proxy Configuration
1062 ///////////////////////////////////////////////////////////////////////////////
1064 // CFG: HUBCONSOLE-CMD-APT-PROXY-RESOLVER-CLASS
1065 $cfg->setConfigEntry('hubconsole_cmd_apt_proxy_resolver_class', 'HubConsoleCommandResolver');
1067 // CFG: APT-PROXY-PHP-REQUIREMENTS-FILTER
1068 $cfg->setConfigEntry('apt_proxy_php_requirements_filter', 'AptProxyPhpRequirementsFilter');
1070 // CFG: APT-PROXY-INITIALIZER-FILTER
1071 $cfg->setConfigEntry('apt_proxy_initializer_filter', 'AptProxyInitializationFilter');
1073 // CFG: NODE-CONSOLE-APT-PROXY
1074 $cfg->setConfigEntry('node_console_apt_proxy_class', 'NodeConsoleAptProxy');
1076 // CFG: APT-PROXY-WELCOME-TEASER-FILTER
1077 $cfg->setConfigEntry('apt_proxy_welcome_teaser_filter', 'AptProxyWelcomeTeaserFilter');
1079 // CFG: APT-PROXY-BOOTSTRAP-TASK-HANDLER-INITIALIZER-FILTER
1080 $cfg->setConfigEntry('apt_proxy_bootstrap_task_handler_initializer_filter', 'AptProxyTaskHandlerInitializerFilter');
1082 // CFG: APT-PROXY-BOOTSTRAP-EXTRA-BOOTSTRAPPING-FILTER
1083 $cfg->setConfigEntry('apt_proxy_bootstrap_extra_bootstrapping_filter', 'AptProxyBootstrapExtraBootstrappingFilter');
1085 // CFG: APT-PROXY-BOOTSTRAP-GENERIC-ACTIVATION-FILTER
1086 $cfg->setConfigEntry('apt_proxy_bootstrap_generic_activation_filter', 'AptProxyBootstrapGenericActivationFilter');
1088 // CFG: APT-PROXY-SHUTDOWN-FILTER
1089 $cfg->setConfigEntry('apt_proxy_shutdown_filter', 'AptProxyShutdownFilter');
1091 // CFG: APT-PROXY-LISTENER-TASK-CLASS
1092 $cfg->setConfigEntry('apt_proxy_listener_task_class', 'AptProxyListenerTask');
1094 // CFG: TASK-APT-PROXY-LISTENER-STARTUP-DELAY
1095 $cfg->setConfigEntry('task_apt_proxy_listener_startup_delay', 2500);
1097 // CFG: TASK-APT-PROXY-LISTENER-INTERVAL-DELAY
1098 $cfg->setConfigEntry('task_apt_proxy_listener_interval_delay', 10);
1100 // CFG: TASK-APT-PROXY-LISTENER-MAX-RUNS
1101 $cfg->setConfigEntry('task_apt_proxy_listener_max_runs', 0);