]> git.mxchange.org Git - hub.git/blob - application/hub/config.php
Added DHT recipient discovery interface (wrong computer :-( ).
[hub.git] / application / hub / config.php
1 <?php
2 /**
3  * Configuration entries for this application only
4  *
5  * @author              Roland Haeder <webmaster@shipsimu.org>
6  * @version             0.0
7  * @copyright   Copyright (c) 2007 - 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
8  * @license             GNU GPL 3.0 or any newer version
9  *
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.
14  *
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.
19  *
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/>.
22  */
23
24 // Some hub-specific configuration like port hostname where we will listen, etc.
25 $cfg = FrameworkConfiguration::getSelfInstance();
26
27 // CFG: NODE-LISTEN-ADDR
28 $cfg->setConfigEntry('node_listen_addr', '0.0.0.0');
29
30 // CFG: NODE-LISTEN-PORT
31 $cfg->setConfigEntry('node_listen_port', 9060);
32
33 // CFG: NODE-DEFAULT-MODE (can be 'regular', 'list', 'master' or 'boot', default is 'regular')
34 $cfg->setConfigEntry('node_default_mode', 'regular');
35
36 // CFG: TEMPLATE-ENGINE
37 $cfg->setConfigEntry('tpl_engine', 'ConsoleOutput');
38
39 // CFG: OUTPUT-CLASS
40 $cfg->setConfigEntry('output_class', 'DebugConsoleOutput');
41
42 // CFG: DEBUG-CLASS
43 $cfg->setConfigEntry('debug_class', 'DebugConsoleOutput');
44
45 // CFG: NODE-INFO-DB-WRAPPER-CLASS
46 $cfg->setConfigEntry('node_info_db_wrapper_class', 'NodeInformationDatabaseWrapper');
47
48 // CFG: NODE-DHT-DB-WRAPPER-CLASS
49 $cfg->setConfigEntry('node_dht_db_wrapper_class', 'NodeDistributedHashTableDatabaseWrapper');
50
51 // CFG: NODE-DHT-LIST-LIMIT
52 $cfg->setConfigEntry('node_dht_list_limit', 20);
53
54 // CFG: PEER-LOOKUP-DB-WRAPPER-CLASS
55 $cfg->setConfigEntry('peer_state_lookup_db_wrapper_class', 'PeerStateLookupDatabaseWrapper');
56
57 // CFG: WEB-CONTENT-TYPE
58 $cfg->setConfigEntry('web_content_type', '');
59
60 // CFG: LISTENER-POOL-CLAS
61 $cfg->setConfigEntry('listener_pool_class', 'DefaultListenerPool');
62
63 // CFG: TCP-LISTENER-CLASS
64 $cfg->setConfigEntry('tcp_listener_class', 'TcpListener');
65
66 // CFG: UDP-LISTENER-CLASS
67 $cfg->setConfigEntry('udp_listener_class', 'UdpListener');
68
69 // CFG: NODE-TCP-LISTENER-CLASS
70 $cfg->setConfigEntry('node_tcp_listener_class', 'HubTcpListenerDecorator');
71
72 // CFG: NODE-UDP-LISTENER-CLASS
73 $cfg->setConfigEntry('node_udp_listener_class', 'HubUdpListenerDecorator');
74
75 // CFG: CLIENT-TCP-LISTENER-CLASS
76 $cfg->setConfigEntry('client_tcp_listener_class', 'ClientTcpListenerDecorator');
77
78 // CFG: CLIENT-UDP-LISTENER-CLASS
79 $cfg->setConfigEntry('client_udp_listener_class', 'ClientUdpListenerDecorator');
80
81 // CFG: NODE-POOL-CLASS
82 $cfg->setConfigEntry('node_pool_class', 'DefaultPeerPool');
83
84 // CFG: POOL-ENTRIES-LIST-CLASS
85 $cfg->setConfigEntry('pool_entries_list_class', 'PoolEntriesList');
86
87 // CFG: SHUTDOWN-POOL-ITERATOR-CLASS
88 $cfg->setConfigEntry('shutdown_pool_iterator_class', 'ShutdownPoolIterator');
89
90 // CFG: HANDLER-POOL-ITERATOR-CLASS
91 $cfg->setConfigEntry('handler_pool_iterator_class', 'HandlerPoolIterator');
92
93 // CFG: NETWORK-LISTEN-ITERATOR-CLASS
94 $cfg->setConfigEntry('network_listen_iterator_class', 'NetworkListenIterator');
95
96 // CFG: TCP-RAW-DATA-HANDLER-CLASS
97 $cfg->setConfigEntry('tcp_raw_data_handler_class', 'TcpRawDataHandler');
98
99 // CFG: UDP-RAW-DATA-HANDLER-CLASS
100 $cfg->setConfigEntry('udp_raw_data_handler_class', 'UdpRawDataHandler');
101
102 // CFG: SHUTDOWN-LISTENER-POOL-VISITOR-CLASS
103 $cfg->setConfigEntry('shutdown_listener_pool_visitor_class', 'ShutdownListenerPoolVisitor');
104
105 // CFG: SHUTDOWN-TASK-VISITOR-CLASS
106 $cfg->setConfigEntry('shutdown_task_visitor_class', 'ShutdownTaskVisitor');
107
108 // CFG: SHUTDOWN-SOCKET-VISITOR-CLASS
109 $cfg->setConfigEntry('shutdown_socket_visitor_class', 'ShutdownSocketVisitor');
110
111 // CFG: HALF-SHUTDOWN-SOCKET-VISITOR-CLASS
112 $cfg->setConfigEntry('half_shutdown_socket_visitor_class', 'HalfShutdownSocketVisitor');
113
114 // CFG: ACTIVE-TASK-VISITOR-CLASS
115 $cfg->setConfigEntry('active_task_visitor_class', 'ActiveTaskVisitor');
116
117 // CFG: NODE-RAW-DATA-MONITOR-VISITOR-CLASS
118 $cfg->setConfigEntry('node_raw_data_monitor_visitor_class', 'RawDataPoolMonitorVisitor');
119
120 // CFG: LIST-GROUP-CLASS
121 $cfg->setConfigEntry('list_group_class', 'ListGroupList');
122
123 // CFG: NODE-ANNOUNCEMENT-HELPER-CLASS
124 $cfg->setConfigEntry('node_announcement_helper_class', 'NodeAnnouncementHelper');
125
126 // CFG: NODE-SELF-CONNECT-HELPER-CLASS
127 $cfg->setConfigEntry('node_self_connect_helper_class', 'NodeSelfConnectHelper');
128
129 // CFG: DHT-BOOTSTRAP-HELPER-CLASS
130 $cfg->setConfigEntry('dht_bootstrap_helper_class', 'DhtBootstrapHelper');
131
132 // CFG: DHT-PUBLISH-ENTRY-HELPER-CLASS
133 $cfg->setConfigEntry('dht_publish_entry_helper_class', 'DhtPublishEntryHelper');
134
135 // CFG: DEFAULT-CONSOLE-COMMAND
136 $cfg->setConfigEntry('default_console_command', 'main');
137
138 // CFG: DEFAULT-HUBCONSOLE-COMMAND
139 $cfg->setConfigEntry('default_hubconsole_command', 'main');
140
141 // CFG: HUBCONSOLE-CMD-MAIN-RESOLVER-CLASS
142 $cfg->setConfigEntry('hubconsole_cmd_main_resolver_class', 'HubConsoleCommandResolver');
143
144 // CFG: NETWORK-STATE-RESOLVER-CLASS
145 $cfg->setConfigEntry('network_state_resolver_class', 'NetworkStateResolver');
146
147 // CFG: NEWS-DOWNLOAD-FILTER
148 $cfg->setConfigEntry('news_download_filter', 'NewsDownloadFilter');
149
150 // CFG: NEWS-PROCESS-FILTER
151 $cfg->setConfigEntry('news_process_filter', 'NewsProcessFilter');
152
153 // CFG: NODE-PHP-REQUIREMENTS-FILTER
154 $cfg->setConfigEntry('node_php_requirements_filter', 'NodePhpRequirementsFilter');
155
156 // CFG: NODE-INITIALIZER-FILTER
157 $cfg->setConfigEntry('node_initializer_filter', 'NodeInitializationFilter');
158
159 // CFG: NODE-ACTIVATION-TASK-HANDLER-INITIALIZER-FILTER
160 $cfg->setConfigEntry('node_activation_task_handler_initializer_filter', 'NodeTaskHandlerInitializerFilter');
161
162 // CFG: NODE-ACTIVATION-ANNOUNCEMENT-TASK-FILTER
163 $cfg->setConfigEntry('node_activation_announcement_task_filter', 'NodeActivationAnnouncementFilter');
164
165 // CFG: NODE-WELCOME-TEASER-FILTER
166 $cfg->setConfigEntry('node_welcome_teaser_filter', 'NodeWelcomeTeaserFilter');
167
168 // CFG: NODE-BOOTSTRAP-GENERATE-NODEID-FILTER
169 $cfg->setConfigEntry('node_bootstrap_generate_nodeid_filter', 'NodeBootstrapGenerateNodeIdFilter');
170
171 // CFG: NODE-BOOTSTRAP-GENERATE-SESSIONID-FILTER
172 $cfg->setConfigEntry('node_bootstrap_generate_sessionid_filter', 'NodeBootstrapGenerateSessionIdFilter');
173
174 // CFG: NODE-BOOTSTRAP-GENERATE-PRIVATE-KEY-FILTER
175 $cfg->setConfigEntry('node_bootstrap_generate_private_key_filter', 'NodeBootstrapGeneratePrivateKeyFilter');
176
177 // CFG: NODE-BOOTSTRAP-EXTRA-BOOTSTRAPPING-FILTER
178 $cfg->setConfigEntry('node_bootstrap_extra_bootstrapping_filter', 'NodeBootstrapExtraBootstrappingFilter');
179
180 // CFG: NODE-BOOTSTRAP-LISTENER-POOL-FILTER
181 $cfg->setConfigEntry('node_bootstrap_listener_pool_filter', 'NodeBootstrapListenerPoolFilter');
182
183 // CFG: NODE-SHUTDOWN-FLUSH-NODE-LIST-FILTER
184 $cfg->setConfigEntry('node_shutdown_flush_node_list_filter', 'NodeShutdownFlushNodeListFilter');
185
186 // CFG: NODE-SHUTDOWN-TASK-HANDLER-FILTER
187 $cfg->setConfigEntry('node_shutdown_task_handler_filter', 'NodeShutdownTaskHandlerFilter');
188
189 // CFG: NODE-SHUTDOWN-NODE-FILTER
190 $cfg->setConfigEntry('node_shutdown_node_filter', 'NodeShutdownNodeFilter');
191
192 // CFG: PACKAGE-FILTER-CHAIN-CLASS
193 $cfg->setConfigEntry('package_filter_chain_class', 'PackageFilterChain');
194
195 // CFG: PACKAGE-TAG-ANNOUNCEMENT-FILTER
196 $cfg->setConfigEntry('package_tag_announcement_filter', 'PackageAnnouncementTagFilter');
197
198 // CFG: PACKAGE-TAG-ANNOUNCEMENT-ANSWER-FILTER
199 $cfg->setConfigEntry('package_tag_announcement_answer_filter', 'PackageAnnouncementAnswerTagFilter');
200
201 // CFG: PACKAGE-TAG-SELF-CONNECT-FILTER
202 $cfg->setConfigEntry('package_tag_self_connect_filter', 'PackageSelfConnectTagFilter');
203
204 // CFG: PACKAGE-TAG-REQUEST-NODE-LIST-FILTER
205 $cfg->setConfigEntry('package_tag_request_node_list_filter', 'PackageRequestNodeListTagFilter');
206
207 // CFG: PACKAGE-TAG-REQUEST-NODE-LIST-ANSWER-FILTER
208 $cfg->setConfigEntry('package_tag_request_node_list_answer_filter', 'PackageRequestNodeListAnswerTagFilter');
209
210 // CFG: MESSAGE-TYPE-ANNOUNCEMENT-HANDLER-CLASS
211 $cfg->setConfigEntry('message_type_announcement_handler_class', 'NodeMessageAnnouncementHandler');
212
213 // CFG: MESSAGE-TYPE-ANNOUNCEMENT-ANSWER-HANDLER-CLASS
214 $cfg->setConfigEntry('message_type_announcement_answer_handler_class', 'NodeMessageAnnouncementAnswerHandler');
215
216 // CFG: MESSAGE-TYPE-SELF-CONNECT-HANDLER-CLASS
217 $cfg->setConfigEntry('message_type_self_connect_handler_class', 'NodeMessageSelfConnectHandler');
218
219 // CFG: MESSAGE-TYPE-REQUEST-NODE-LIST-HANDLER-CLASS
220 $cfg->setConfigEntry('message_type_request_node_list_handler_class', 'NodeMessageRequestNodeListHandler');
221
222 // CFG: MESSAGE-TYPE-REQUEST-NODE-LIST-ANSWER-HANDLER-CLASS
223 $cfg->setConfigEntry('message_type_request_node_list_answer_handler_class', 'NodeMessageRequestNodeListAnswerHandler');
224
225 // CFG: NODE-ANSWER-MESSAGE-ANNOUNCEMENT-HELPER-CLASS
226 $cfg->setConfigEntry('node_answer_message_announcement_helper_class', 'NodeAnnouncementMessageAnswerHelper');
227
228 // CFG: NODE-ANSWER-MESSAGE-REQUEST-NODE-LIST-HELPER-CLASS
229 $cfg->setConfigEntry('node_answer_message_request_node_list_helper_class', 'NodeRequestNodeListMessageAnswerHelper');
230
231 // CFG: NODE-NEXT-ANNOUNCEMENT-ANSWER-OKAY-HELPER-CLASS
232 $cfg->setConfigEntry('node_next_announcement_answer_okay_helper_class', 'NodeRequestNodeListHelper');
233
234 // CFG: NEWS-READER-CLASS
235 $cfg->setConfigEntry('news_reader_class', 'ConsoleNewsReader');
236
237 // CFG: NODE-ANNOUNCEMENT-TEMPLATE-CLASS
238 $cfg->setConfigEntry('node_announcement_template_class', 'XmlAnnouncementTemplateEngine');
239
240 // CFG: NODE-ANNOUNCEMENT-ANSWER-TEMPLATE-CLASS
241 $cfg->setConfigEntry('node_announcement_answer_template_class', 'XmlAnnouncementAnswerTemplateEngine');
242
243 // CFG: NODE-REQUEST-NODE-LIST-TEMPLATE-CLASS
244 $cfg->setConfigEntry('node_request_node_list_template_class', 'XmlRequestNodeListTemplateEngine');
245
246 // CFG: NODE-REQUEST-NODE-LIST-ANSWER-TEMPLATE-CLASS
247 $cfg->setConfigEntry('node_request_node_list_answer_template_class', 'XmlRequestNodeListAnswerTemplateEngine');
248
249 // CFG: NODE-REQUEST-NODE-LIST-ENTRIES-TEMPLATE-CLASS
250 $cfg->setConfigEntry('node_request_node_list_entries_template_class', 'XmlRequestNodeListEntryTemplateEngine');
251
252 // CFG: DHT-BOOTSTRAP-TEMPLATE-CLASS
253 $cfg->setConfigEntry('dht_bootstrap_template_class', 'XmlDhtBootstrapTemplateEngine');
254
255 // CFG: DHT-PUBLISH-ENTRY-TEMPLATE-CLASS
256 $cfg->setConfigEntry('dht_publish_entry_template_class', 'XmlDhtPublishEntryTemplateEngine');
257
258 // CFG: NODE-MESSAGE-TEMPLATE-EXTENSION
259 $cfg->setConfigEntry('node_message_template_extension', '.xml');
260
261 // CFG: DHT-MESSAGE-TEMPLATE-EXTENSION
262 $cfg->setConfigEntry('dht_message_template_extension', '.xml');
263
264 // CFG: NODE-ANNOUNCEMENT-ANSWER-TEMPLATE-EXTENSION
265 $cfg->setConfigEntry('node_announcement_answer_template_extension', '.xml');
266
267 // CFG: NODE-ANNOUNCEMENT-TEMPLATE-TYPE
268 $cfg->setConfigEntry('node_announcement_template_type', 'xml/announcement');
269
270 // CFG: NODE-ANNOUNCEMENT-STACKER-CLASS
271 $cfg->setConfigEntry('node_announcement_stacker_class', 'FiLoStacker');
272
273 // CFG: NODE-ANNOUNCEMENT-ANSWER-STACKER-CLASS
274 $cfg->setConfigEntry('node_announcement_answer_stacker_class', 'FiLoStacker');
275
276 // CFG: NODE-REQUEST-NODE-LIST-ANSWER-STACKER-CLASS
277 $cfg->setConfigEntry('node_request_node_list_answer_stacker_class', 'FiLoStacker');
278
279 // CFG: NODE-REQUEST-NODE-LIST-ENTRY-STACKER-CLASS
280 $cfg->setConfigEntry('node_request_node_list_entry_stacker_class', 'FiLoStacker');
281
282 // CFG: DHT-STACKER-CLASS
283 $cfg->setConfigEntry('dht_stacker_class', 'FiLoStacker');
284
285 // CFG: NODE-ANNOUNCEMENT-ANSWER-TEMPLATE-TYPE
286 $cfg->setConfigEntry('node_announcement_answer_template_type', 'xml/answer/announcement');
287
288 // CFG: NODE-REQUEST-NODE-LIST-ANSWER-TEMPLATE-TYPE
289 $cfg->setConfigEntry('node_request_node_list_answer_template_type', 'xml/answer/requests');
290
291 // CFG: NODE-SELF-CONNECT-TEMPLATE-CLASS
292 $cfg->setConfigEntry('node_self_connect_template_class', 'XmlSelfConnectTemplateEngine');
293
294 // CFG: NODE-SELF-CONNECT-TEMPLATE-TYPE
295 $cfg->setConfigEntry('node_self_connect_template_type', 'xml/self_connect');
296
297 // CFG: NODE-REQUEST-NODE-LIST-TEMPLATE-TYPE
298 $cfg->setConfigEntry('node_request_node_list_template_type', 'xml/requests');
299
300 // CFG: NODE-SELF-CONNECT-STACKER-CLASS
301 $cfg->setConfigEntry('node_self_connect_stacker_class', 'FiLoStacker');
302
303 // CFG: NODE-REQUEST-NODE_LIST-STACKER-CLASS
304 $cfg->setConfigEntry('node_request_node_list_stacker_class', 'FiLoStacker');
305
306 // CFG: NODE-OBJECT-REGISTRY-TEMPLATE-CLASS
307 $cfg->setConfigEntry('node_object_registry_template_class', 'XmlObjectRegistryTemplateEngine');
308
309 // CFG: NODE-OBJECT-REGISTRY-TEMPLATE-EXTENSION
310 $cfg->setConfigEntry('node_object_registry_template_extension', '.xml');
311
312 // CFG: NODE-OBJECT-REGISTRY-TEMPLATE-TYPE
313 $cfg->setConfigEntry('node_object_registry_template_type', 'xml/object_registry');
314
315 // CFG: NODE-OBJECT-REGISTRY-STACKER-CLASS
316 $cfg->setConfigEntry('node_object_registry_stacker_class', 'FiLoStacker');
317
318 // CFG: NODE-OBJECT-TYPE-REGISTRY-CLASS
319 $cfg->setConfigEntry('node_object_type_registry_class', 'ObjectTypeRegistry');
320
321 // CFG: DHT-BOOTSTRAP-TEMPLATE-TYPE
322 $cfg->setConfigEntry('dht_bootstrap_template_type', 'xml/dht_bootstrap');
323
324 // CFG: DHT-PUBLISH-TEMPLATE-TYPE
325 $cfg->setConfigEntry('dht_publish_template_type', 'xml/dht_publish');
326
327 // CFG: CODE-TEMPLATE-TYPE
328 $cfg->setConfigEntry('code_template_type', 'xml');
329
330 // CFG: RAW-TEMPLATE-EXTENSION (to speed-up things)
331 $cfg->setConfigEntry('raw_template_extension', '.xml');
332
333 // CFG: PACKAGE-STACKER-CLASS
334 $cfg->setConfigEntry('network_package_stacker_class', 'FiFoStacker');
335
336 // CFG: NODE-RAW-DATA-STACKER-CLASS
337 $cfg->setConfigEntry('node_raw_data_stacker_class', 'FiFoStacker');
338
339 // CFG: CHUNK-HANDLER-STACKER-CLASS
340 $cfg->setConfigEntry('chunk_handler_stacker_class', 'FiFoStacker');
341
342 // CFG: DHT-BOOTSTRAP-STACKER-CLASS
343 $cfg->setConfigEntry('dht_bootstrap_stacker_class', 'FiFoStacker');
344
345 // CFG: DHT-PUBLISH-STACKER-CLASS
346 $cfg->setConfigEntry('dht_publish_stacker_class', 'FiFoStacker');
347
348 // CFG: PRODUCER-OUTGOING-QUEUE
349 $cfg->setConfigEntry('producer_outgoing_queue', 'FiFoStacker');
350
351 // CFG: PRODUCER-INCOMING-QUEUE
352 $cfg->setConfigEntry('producer_incoming_queue', 'FiFoStacker');
353
354 // CFG: STACKER-NODE-ANNOUNCEMENT-MAX-SIZE
355 $cfg->setConfigEntry('stacker_node_announcement_max_size', 20);
356
357 // CFG: STACKER-NODE-ANNOUNCEMENT-ANSWER-MAX-SIZE
358 $cfg->setConfigEntry('stacker_node_announcement_answer_max_size', 20);
359
360 // CFG: STACKER-NODE-SELF-CONNECT-MAX-SIZE
361 $cfg->setConfigEntry('stacker_node_self_connect_max_size', 10);
362
363 // CFG: STACKER-NODE-REQUEST-NODE-LIST-MAX_SIZE
364 $cfg->setConfigEntry('stacker_node_request_node_list_max_size', 10);
365
366 // CFG: STACKER-NODE-REQUEST-NODE-LIST-ANSWER-MAX-SIZE
367 $cfg->setConfigEntry('stacker_node_request_node_list_answer_max_size', 20);
368
369 // CFG: STACKER-NODE-REQUEST-NODE-LIST-ENTRY-MAX_SIZE
370 $cfg->setConfigEntry('stacker_node_request_node_list_entry_max_size', 10);
371
372 // CFG: STACKER-UNDECLARED-MAX-SIZE
373 $cfg->setConfigEntry('stacker_package_undeclared_max_size', 10000);
374
375 // CFG: STACKER-PACKAGE-DECLARED-MAX-SIZE
376 $cfg->setConfigEntry('stacker_package_declared_max_size', 1000);
377
378 // CFG: STACKER-PACKAGE-OUTGOING-MAX-SIZE
379 $cfg->setConfigEntry('stacker_package_outgoing_max_size', 100);
380
381 // CFG: STACKER-PACKAGE-DECODED-DATA-MAX-SIZE
382 $cfg->setConfigEntry('stacker_package_decoded_data_max_size', 200);
383
384 // CFG: STACKER-PACKAGE-HANDLED-DECODED-MAX-SIZE
385 $cfg->setConfigEntry('stacker_package_handled_decoded_max_size', 200);
386
387 // CFG: STACKER-PACKAGE-CHUNKED-DECODED-MAX-SIZE
388 $cfg->setConfigEntry('stacker_package_chunked_decoded_max_size', 800);
389
390 // CFG: STACKER-PACKAGE-NEW-MESSAGE-MAX-SIZE
391 $cfg->setConfigEntry('stacker_package_new_message_max_size', 400);
392
393 // CFG: STACKER-PACKAGE-PROCESSED-MESSAGE-MAX-SIZE
394 $cfg->setConfigEntry('stacker_package_processed_message_max_size', 400);
395
396 // CFG: STACKER-PACKAGE-BACKBUFFER-MAX-SIZE
397 $cfg->setConfigEntry('stacker_package_backbuffer_max_size', 1000);
398
399 // CFG: STACKER-NODE-OBJECT-REGISTRY-MAX-SIZE
400 $cfg->setConfigEntry('stacker_node_object_registry_max_size', 100);
401
402 // CFG: STACKER-RAW-DATA-MAX-SIZE
403 $cfg->setConfigEntry('stacker_raw_data_max_size', 100);
404
405 // CFG: STACKER-FINAL-CHUNKS-MAX-SIZE
406 $cfg->setConfigEntry('stacker_final_chunks_max_size', 100);
407
408 // CFG: STACKER-PENDING-CHUNKS-MAX-SIZE
409 $cfg->setConfigEntry('stacker_pending_chunks_max_size', 500);
410
411 // CFG: STACKER-CHUNK-RAW-DATA-MAX-SIZE
412 $cfg->setConfigEntry('stacker_chunk_raw_data_max_size', 100);
413
414 // CFG: STACKER-DECODED-PACKAGE-MAX-SIZE
415 $cfg->setConfigEntry('stacker_decoded_package_max_size', 100);
416
417 // CFG: STACKER-DHT-BOOTSTRAP-MAX-SIZE
418 $cfg->setConfigEntry('stacker_dht_bootstrap_max_size', 10);
419
420 // CFG: STACKER-DHT-PUBLISH-MAX-SIZE
421 $cfg->setConfigEntry('stacker_dht_publish_max_size', 10);
422
423 // CFG: STACKER-DHT-INSERT-NODE-MAX-SIZE
424 $cfg->setConfigEntry('stacker_dht_insert_node_max_size', 100);
425
426 // CFG: STACKER-DHT-PENDING_PUBLISH-MAX-SIZE
427 $cfg->setConfigEntry('stacker_dht_pending_publish_max_size', 100);
428
429 // CFG: NEWS-MAIN-LIMIT
430 $cfg->setConfigEntry('news_main_limit', 5);
431
432 // CFG: TASK-HANDLER-CLASS
433 $cfg->setConfigEntry('task_handler_class', 'TaskHandler');
434
435 // CFG: TASK-PACKAGE-TAGS-INIT-STARTUP-DELAY
436 $cfg->setConfigEntry('task_package_tags_init_startup_delay', 50);
437
438 // CFG: TASK-PACKAGE-TAGS-INIT-INTERVAL-DELAY
439 $cfg->setConfigEntry('task_package_tags_init_interval_delay', 1000*60*60*24*7);
440
441 // CFG: TASK-PACKAGE-TAGS-INIT-MAX-RUNS
442 $cfg->setConfigEntry('task_package_tags_init_max_runs', 1);
443
444 // CFG: TASK-IDLE-LOOP-STARTUP-DELAY
445 $cfg->setConfigEntry('task_idle_loop_startup_delay', 0);
446
447 // CFG: TASK-IDLE-LOOP-INTERVAL-DELAY
448 $cfg->setConfigEntry('task_idle_loop_interval_delay', 0);
449
450 // CFG: TASK-IDLE-LOOP-MAX-RUNS
451 $cfg->setConfigEntry('task_idle_loop_max_runs', 0);
452
453 // CFG: TASK-SELF-CONNECT-STARTUP-DELAY
454 $cfg->setConfigEntry('task_self_connect_startup_delay', 4000);
455
456 // CFG: TASK-SELF-CONNECT-INTERVAL-DELAY
457 $cfg->setConfigEntry('task_self_connect_interval_delay', 1000*60*30);
458
459 // CFG: TASK-SELF-CONNECT-MAX-RUNS
460 $cfg->setConfigEntry('task_self_connect_max_runs', 0);
461
462 // CFG: TASK-ANNOUNCEMENT-STARTUP-DELAY
463 $cfg->setConfigEntry('task_announcement_startup_delay', 10000);
464
465 // CFG: TASK-ANNOUNCEMENT-INTERVAL-DELAY
466 $cfg->setConfigEntry('task_announcement_interval_delay', 1000);
467
468 // CFG: TASK-ANNOUNCEMENT-MAX-RUNS
469 $cfg->setConfigEntry('task_announcement_max_runs', 1);
470
471 // CFG: TASK-UPDATE-CHECK-STARTUP-DELAY
472 $cfg->setConfigEntry('task_update_check_startup_delay', 1000*60*60*6);
473
474 // CFG: TASK-UPDATE-CHECK-INTERVAL-DELAY
475 $cfg->setConfigEntry('task_update_check_interval_delay', 1000*60*60*24);
476
477 // CFG: TASK-UPDATE-CHECK-MAX-RUNS
478 $cfg->setConfigEntry('task_update_check_max_runs', 0);
479
480 // CFG: TASK-PING-STARTUP-DELAY
481 $cfg->setConfigEntry('task_ping_startup_delay', 1000*60);
482
483 // CFG: TASK-PING-INTERVAL-DELAY
484 $cfg->setConfigEntry('task_ping_interval_delay', 1000*60*60);
485
486 // CFG: TASK-PING-MAX-RUNS
487 $cfg->setConfigEntry('task_ping_max_runs', 0);
488
489 // CFG: IDLE-TASK-CLASS
490 $cfg->setConfigEntry('idle_task_class', 'IdleLoopTask');
491
492 // CFG: NODE-PACKAGE-TAGS-INIT-TASK-CLASS
493 $cfg->setConfigEntry('node_package_tags_init_task_class', 'NodePackageTagsInitTask');
494
495 // CFG: NODE-SELFCONNECT-TASK-CLASS
496 $cfg->setConfigEntry('node_selfconnect_task_class', 'NodeSelfConnectTask');
497
498 // CFG: NODE-UPDATE-CHECK-TASK-CLASS
499 $cfg->setConfigEntry('node_update_check_task_class', 'NodeUpdateCheckTask');
500
501 // CFG: NODE-PING-TASK-CLASS
502 $cfg->setConfigEntry('node_ping_task_class', 'NodePingTask');
503
504 // CFG: NODE-ANNOUNCEMENT-TASK-CLASS
505 $cfg->setConfigEntry('node_announcement_task_class', 'NodeAnnouncementTask');
506
507 // CFG: NODE-PACKAGE-WRITER-TASK-CLASS
508 $cfg->setConfigEntry('node_package_writer_task_class', 'NetworkPackageWriterTask');
509
510 // CFG: NODE-PACKAGE-READER-TASK-CLASS
511 $cfg->setConfigEntry('node_package_reader_task_class', 'NetworkPackageReaderTask');
512
513 // CFG: NODE-SOCKET-LISTENER-TASK-CLASS
514 $cfg->setConfigEntry('node_socket_listener_task_class', 'NodeSocketListenerTask');
515
516 // CFG: NODE-CHUNK-ASSEMBLER-TASK-CLASS
517 $cfg->setConfigEntry('node_chunk_assembler_task_class', 'NodeChunkAssemblerTask');
518
519 // CFG: NODE-PACKAGE-DECODER-TASK-CLASS
520 $cfg->setConfigEntry('node_package_decoder_task_class', 'NodePackageDecoderTask');
521
522 // CFG: NODE-DHT-INIT-TASK-CLASS
523 $cfg->setConfigEntry('node_dht_init_task_class', 'NodeDhtInitializationTask');
524
525 // CFG: NODE-DHT-BOOTSTRAP-TASK-CLASS
526 $cfg->setConfigEntry('node_dht_bootstrap_task_class', 'NodeDhtBootstrapTask');
527
528 // CFG: NODE-DHT-QUERY-TASK-CLASS
529 $cfg->setConfigEntry('node_dht_query_task_class', 'NodeDhtQueryTask');
530
531 // CFG: NODE-DHT-PUBLICATION-CHECK-TASK-CLASS
532 $cfg->setConfigEntry('node_dht_publication_check_task_class', 'NodeDhtPublicationCheckTask');
533
534 // CFG: NODE-DHT-PUBLICATION-TASK-CLASS
535 $cfg->setConfigEntry('node_dht_publication_task_class', 'NodeDhtPublicationTask');
536
537 // CFG: TASK-NETWORK-PACKAGE-WRITER-STARTUP-DELAY
538 $cfg->setConfigEntry('task_network_package_writer_startup_delay', 2500);
539
540 // CFG: TASK-NETWORK-PACKAGE-WRITER-INTERVAL-DELAY
541 $cfg->setConfigEntry('task_network_package_writer_interval_delay', 10);
542
543 // CFG: TASK-NETWORK-PACKAGE-WRITER-MAX-RUNS
544 $cfg->setConfigEntry('task_network_package_writer_max_runs', 0);
545
546 // CFG: TASK-NETWORK-PACKAGE-READER-STARTUP-DELAY
547 $cfg->setConfigEntry('task_network_package_reader_startup_delay', 2000);
548
549 // CFG: TASK-NETWORK-PACKAGE-READER-INTERVAL-DELAY
550 $cfg->setConfigEntry('task_network_package_reader_interval_delay', 10);
551
552 // CFG: TASK-NETWORK-PACKAGE-READER-MAX-RUNS
553 $cfg->setConfigEntry('task_network_package_reader_max_runs', 0);
554
555 // CFG: TASK-SOCKET-LISTENER-STATUP-DELAY
556 $cfg->setConfigEntry('task_socket_listener_startup_delay', 2500);
557
558 // CFG: TASK-SOCKET-LISTENER-INTERVAL-DELAY
559 $cfg->setConfigEntry('task_socket_listener_interval_delay', 10);
560
561 // CFG: TASK-SOCKET-LISTENER-MAX-RUNS
562 $cfg->setConfigEntry('task_socket_listener_max_runs', 0);
563
564 // CFG: TASK-PACKAGE-DECODER-STATUP-DELAY
565 $cfg->setConfigEntry('task_package_decoder_startup_delay', 1300);
566
567 // CFG: TASK-PACKAGE-DECODER-INTERVAL-DELAY
568 $cfg->setConfigEntry('task_package_decoder_interval_delay', 50);
569
570 // CFG: TASK-PACKAGE-DECODER-MAX-RUNS
571 $cfg->setConfigEntry('task_package_decoder_max_runs', 0);
572
573 // CFG: TASK-CHUNK-ASSEMBLER-STATUP-DELAY
574 $cfg->setConfigEntry('task_chunk_assembler_startup_delay', 1500);
575
576 // CFG: TASK-CHUNK-ASSEMBLER-INTERVAL-DELAY
577 $cfg->setConfigEntry('task_chunk_assembler_interval_delay', 50);
578
579 // CFG: TASK-CHUNK-ASSEMBLER-MAX-RUNS
580 $cfg->setConfigEntry('task_chunk_assembler_max_runs', 0);
581
582 // CFG: TASK-DHT-INIT-STATUP-DELAY
583 $cfg->setConfigEntry('task_dht_init_startup_delay', 100);
584
585 // CFG: TASK-DHT-INIT-INTERVAL-DELAY
586 $cfg->setConfigEntry('task_dht_init_interval_delay', 86400000); // = 1 day (won't matter anyway)
587
588 // CFG: TASK-DHT-INIT-MAX-RUNS
589 $cfg->setConfigEntry('task_dht_init_max_runs', 1);
590
591 // CFG: TASK-DHT-BOOTSTRAP-STATUP-DELAY
592 $cfg->setConfigEntry('task_dht_bootstrap_startup_delay', 100);
593
594 // CFG: TASK-DHT-BOOTSTRAP-INTERVAL-DELAY
595 $cfg->setConfigEntry('task_dht_bootstrap_interval_delay', 3600000); // = 1 hour (won't matter anyway)
596
597 // CFG: TASK-DHT-BOOTSTRAP-MAX-RUNS
598 $cfg->setConfigEntry('task_dht_bootstrap_max_runs', 1);
599
600 // CFG: TASK-DHT-QUERY-STATUP-DELAY
601 $cfg->setConfigEntry('task_dht_query_startup_delay', 1400);
602
603 // CFG: TASK-DHT-QUERY-INTERVAL-DELAY
604 $cfg->setConfigEntry('task_dht_query_interval_delay', 50);
605
606 // CFG: TASK-DHT-QUERY-MAX-RUNS
607 $cfg->setConfigEntry('task_dht_query_max_runs', 0);
608
609 // CFG: TASK-DHT-CHECK-PUBLICATION-STATUP-DELAY
610 $cfg->setConfigEntry('task_dht_check_publication_startup_delay', 10000);
611
612 // CFG: TASK-DHT-CHECK-PUBLICATION-INTERVAL-DELAY
613 $cfg->setConfigEntry('task_dht_check_publication_interval_delay', 1800000); // = 1/2 hour
614
615 // CFG: TASK-DHT-CHECK-PUBLICATION-MAX-RUNS
616 $cfg->setConfigEntry('task_dht_check_publication_max_runs', 0);
617
618 // CFG: TASK-DHT-PUBLICATION-STATUP-DELAY
619 $cfg->setConfigEntry('task_dht_publication_startup_delay', 8000);
620
621 // CFG: TASK-DHT-PUBLICATION-INTERVAL-DELAY
622 $cfg->setConfigEntry('task_dht_publication_interval_delay', 5000);
623
624 // CFG: TASK-DHT-PUBLICATION-MAX-RUNS
625 $cfg->setConfigEntry('task_dht_publication_max_runs', 0);
626
627 // CFG: TASK-LIST-CLASS
628 $cfg->setConfigEntry('task_list_class', 'TaskList');
629
630 // CFG: TASK-POOL-ITERATOR-CLASS
631 $cfg->setConfigEntry('task_pool_iterator_class', 'TaskPoolIterator');
632
633 // CFG: MONITOR-POOL-ITERATOR-CLASS
634 $cfg->setConfigEntry('monitor_pool_iterator_class', 'MonitorPoolIterator');
635
636 // CFG: DEFAULT-ITERATOR-CLASS
637 $cfg->setConfigEntry('default_iterator_class', 'DefaultIterator');
638
639 // CFG: QUERY-ITERATOR-CLASS
640 $cfg->setConfigEntry('query_iterator_class', 'DefaultIterator');
641
642 // CFG: NODE-PING-ITERATOR-CLASS
643 $cfg->setConfigEntry('node_ping_iterator_class', 'HubPingIterator');
644
645 // CFG: WEB-TEMPLATE-CLASS @OVERRIDE
646 $cfg->setConfigEntry('web_template_class', 'ConsoleTemplateEngine');
647
648 // CFG: NETWORK-PACKAGE-CLASS
649 $cfg->setConfigEntry('network_package_class', 'NetworkPackage');
650
651 // CFG: PACKAGE-COMPRESSOR-CLASS
652 $cfg->setConfigEntry('deco_package_compressor_class', 'NetworkPackageCompressorDecorator');
653
654 // CFG: RAW-PACKAGE-COMPRESSOR-CLASS
655 $cfg->setConfigEntry('raw_package_compressor_class', 'ZlibCompressor');
656
657 // CFG: SOCKET-REGISTRY-CLASS
658 $cfg->setConfigEntry('socket_registry_class', 'SocketRegistry');
659
660 // CFG: SOCKET-CONTAINER-CLASS
661 $cfg->setConfigEntry('socket_container_class', 'SocketContainer');
662
663 // CFG: PACKAGE-RECIPIENT-DISCOVERY-CLASS
664 $cfg->setConfigEntry('package_recipient_discovery_class', 'PackageRecipientDiscovery');
665
666 // CFG: SOCKET-DISCOVERY-CLASS
667 $cfg->setConfigEntry('socket_discovery_class', 'PackageSocketDiscovery');
668
669 // CFG: DHT-RECIPIENT-DISCOVERY-CLASS
670 $cfg->setConfigEntry('dht_recipient_discovery_class', 'DhtRecipientDiscovery');
671
672 // CFG: RECIPIENT-LIST-CLASS
673 $cfg->setConfigEntry('recipient_list_class', 'RecipientList');
674
675 // CFG: PACKAGE-TAGS-CLASS
676 $cfg->setConfigEntry('package_tags_class', 'PackageTags');
677
678 // CFG: TCP-CONNECTION-HELPER-CLASS
679 $cfg->setConfigEntry('tcp_connection_helper_class', 'TcpConnectionHelper');
680
681 // CFG: UDP-CONNECTION-HELPER-CLASS
682 $cfg->setConfigEntry('udp_connection_helper_class', 'UdpConnectionHelper');
683
684 // CFG: TCP-BUFFER-LENGTH
685 $cfg->setConfigEntry('tcp_buffer_length', 1024);
686
687 // CFG: UDP-BUFFER-LENGTH
688 $cfg->setConfigEntry('udp_buffer_length', 1024);
689
690 // CFG: TCP-CONNECT-RETRY-MAX
691 $cfg->setConfigEntry('tcp_connect_retry_max', 5);
692
693 // CFG: UDP-CONNECT-RETRY-MAX
694 $cfg->setConfigEntry('udp_connect_retry_max', 5);
695
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);
699
700 // CFG: TCP-SOCKET-ACCEPT-WAIT-USEC
701 $cfg->setConfigEntry('tcp_socket_accept_wait_usec', 0);
702
703 // CFG: NODE-STATE-CHECKED-PACKAGE-CLASS
704 $cfg->setConfigEntry('node_state_checked_package_class', 'NewConnectionNodeState');
705
706 // CFG: NODE-ID
707 $cfg->setConfigEntry('node_id', '');
708
709 // CFG: SESSION-ID
710 $cfg->setConfigEntry('session_id', '');
711
712 // CFG: PRIVATE-KEY
713 $cfg->setConfigEntry('private_key', '');
714
715 // CFG: PRIVATE-KEY-HASH
716 $cfg->setConfigEntry('private_key_hash', '');
717
718 // CFG: INTERNAL-IP
719 $cfg->setConfigEntry('internal_ip', ConsoleTools::acquireSelfIPAddress());
720
721 // CFG: EXTERNAL-IP
722 $cfg->setConfigEntry('external_ip', '');
723
724 // CFG: ALLOW-PUBLISH-INTERNAL-IP
725 $cfg->setConfigEntry('allow_publish_internal_ip', 'N');
726
727 // CFG: NODE-STATUS
728 $cfg->setConfigEntry('node_status', 'invalid');
729
730 // CFG: PACKAGE-FRAGMENTER-CLASS
731 $cfg->setConfigEntry('package_fragmenter_class', 'PackageFragmenter');
732
733 // CFG: PACKAGE-ASSEMBLER-CLASS
734 $cfg->setConfigEntry('package_assembler_class', 'PackageAssembler');
735
736 // CFG: PACKAGE-CHUNK-SIZE
737 $cfg->setConfigEntry('package_chunk_size', 256*8);
738
739 // CFG: NODE-RAW-DATA-OUTPUT-STREAM-CLASS
740 $cfg->setConfigEntry('node_raw_data_output_stream_class', 'RawDataOutputStream');
741
742 // CFG: NODE-RAW-DATA-INPUT-STREAM-CLASS
743 $cfg->setConfigEntry('node_raw_data_input_stream_class', 'RawDataInputStream');
744
745 // CFG: DEBUG-OUTPUT-TIMINGS
746 $cfg->setConfigEntry('debug_output_timings', 'Y');
747
748 // CFG: SOCKET-TIMEOUT-SECONDS
749 $cfg->setConfigEntry('socket_timeout_seconds', 3);
750
751 // CFG: SOCKET-TIMEOUT-MICROSECONDS
752 $cfg->setConfigEntry('socket_timeout_microseconds', 0);
753
754 // CFG: CHUNK-HANDLER-CLASS
755 $cfg->setConfigEntry('chunk_handler_class', 'ChunkHandler');
756
757 // CFG: PACKAGE-DECODER-CLASS
758 $cfg->setConfigEntry('package_decoder_class', 'PackageDecoder');
759
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);
763
764 // CFG: NODE-DHT-CLASS
765 $cfg->setConfigEntry('node_dht_class', 'NodeDhtFacade');
766
767 ///////////////////////////////////////////////////////////////////////////////
768 //                              Node states
769 ///////////////////////////////////////////////////////////////////////////////
770
771 // CFG: NODE-INIT-STATE-CLASS
772 $cfg->setConfigEntry('node_init_state_class', 'NodeInitState');
773
774 // CFG: NODE-VIRGIN-STATE-CLASS
775 $cfg->setConfigEntry('node_virgin_state_class', 'NodeVirginState');
776
777 // CFG: NODE-ACTIVE-STATE-CLASS
778 $cfg->setConfigEntry('node_active_state_class', 'NodeActiveState');
779
780 // CFG: NODE-ANNOUNCED-STATE-CLASS
781 $cfg->setConfigEntry('node_announced_state_class', 'NodeAnnouncedState');
782
783 // CFG: NODE-REACHABLE-STATE-CLASS
784 $cfg->setConfigEntry('node_reachable_state_class', 'NodeReachableState');
785
786 // CFG: NODE-ANNOUNCEMENT-COMPLETED-STATE-CLASS
787 $cfg->setConfigEntry('node_announcement_completed_state_class', 'NodeAnnouncementCompletedState');
788
789 ///////////////////////////////////////////////////////////////////////////////
790 //                              Peer states
791 ///////////////////////////////////////////////////////////////////////////////
792
793 // CFG: PEER-INIT-STATE-CLASS
794 $cfg->setConfigEntry('peer_init_state_class', 'InitPeerState');
795
796 // CFG: PEER-CONNECTED-STATE-CLASS
797 $cfg->setConfigEntry('peer_connected_state_class', 'ConnectedPeerState');
798
799 // CFG: PEER-PROBLEM-STATE-CLASS
800 $cfg->setConfigEntry('peer_problem_state_class', 'ProblemPeerState');
801
802 // CFG: PEER-CONNECTION-REFUSED-STATE-CLASS
803 $cfg->setConfigEntry('peer_connection_refused_state_class', 'ConnectionRefusedPeerState');
804
805 // CFG: PEER-CONNECTION-TIMED-OUT-STATE-CLASS
806 $cfg->setConfigEntry('peer_connection_timed_out_state_class', 'ConnectionTimedOutPeerState');
807
808 // CFG: PEER-TRANSPORT-ENDPOINT-STATE-CLASS
809 $cfg->setConfigEntry('peer_transport_endpoint_state_class', 'TransportEndpointGonePeerState');
810
811 // CFG: PEER-OPERATION-ALREADY-PROGRESS-STATE-CLASS
812 $cfg->setConfigEntry('peer_operation_already_progress_state_class', 'OperationAlreadyProgressPeerState');
813
814 // CFG: PEER-NO-ROUTE-TO-HOST-STATE-CLASS
815 $cfg->setConfigEntry('peer_no_route_to_host_state_class', 'NoRouteToHostPeerState');
816
817 ///////////////////////////////////////////////////////////////////////////////
818 //                               DHT states
819 ///////////////////////////////////////////////////////////////////////////////
820
821 // CFG: DHT-INIT-STATE-CLASS
822 $cfg->setConfigEntry('dht_init_state_class', 'DhtInitState');
823
824 // CFG: DHT-VIRGIN-STATE-CLASS
825 $cfg->setConfigEntry('dht_virgin_state_class', 'DhtVirginState');
826
827 // CFG: DHT-BOOTING-STATE-CLASS
828 $cfg->setConfigEntry('dht_booting_state_class', 'DhtBootingState');
829
830 // CFG: DHT-ACTIVE-STATE-CLASS
831 $cfg->setConfigEntry('dht_active_state_class', 'DhtActiveState');
832
833 ///////////////////////////////////////////////////////////////////////////////
834 //                       Message answer-status handler
835 ///////////////////////////////////////////////////////////////////////////////
836
837 // CFG: ANNOUNCEMENT-ANSWER-STATUS-OKAY-HANDLER-CLASS
838 $cfg->setConfigEntry('announcement_answer_status_okay_handler_class', 'AnnouncementAnswerOkayHandler');
839
840 // CFG: REQUEST-NODE-LIST-ANSWER-STATUS-OKAY-HANDLER-CLASS
841 $cfg->setConfigEntry('request_node_list_answer_status_okay_handler_class', 'RequestNodeListAnswerOkayHandler');
842
843 ///////////////////////////////////////////////////////////////////////////////
844 //                          Recipient resolver
845 ///////////////////////////////////////////////////////////////////////////////
846
847 // CFG: DIRECT-RECIPIENT-CLASS
848 $cfg->setConfigEntry('direct_recipient_class', 'DirectRecipient');
849
850 // CFG: DHT-RECIPIENT-CLASS
851 $cfg->setConfigEntry('dht_recipient_class', 'DhtRecipient');
852
853 // CFG: SELF-RECIPIENT-CLASS
854 $cfg->setConfigEntry('self_recipient_class', 'SelfRecipient');
855
856 // CFG: UPPER-RECIPIENT-CLASS
857 $cfg->setConfigEntry('upper_recipient_class', 'UpperRecipient');
858
859 ///////////////////////////////////////////////////////////////////////////////
860 //                        Cruncher configuration
861 ///////////////////////////////////////////////////////////////////////////////
862
863 // CFG: CRUNCHER-DEFAULT-MODE (can be only 'mcrypt' at the moment)
864 $cfg->setConfigEntry('cruncher_default_mode', 'mcrypt');
865
866 // CFG: CRUNCHER-BUFFER-STACKER-CLASS
867 $cfg->setConfigEntry('cruncher_buffer_stacker_class', 'FiFoStacker');
868
869 // CFG: HUBCONSOLE-CMD-CRUNCHER-RESOLVER-CLASS
870 $cfg->setConfigEntry('hubconsole_cmd_cruncher_resolver_class', 'HubConsoleCommandResolver');
871
872 // CFG: CRUNCHER-PHP-REQUIREMENTS-FILTER
873 $cfg->setConfigEntry('cruncher_php_requirements_filter', 'CruncherPhpRequirementsFilter');
874
875 // CFG: CRUNCHER-INITIALIZER-FILTER
876 $cfg->setConfigEntry('cruncher_initializer_filter', 'CruncherInitializationFilter');
877
878 // CFG: CRUNCHER-BOOTSTRAP-TASK-HANDLER-INITIALIZER-FILTER
879 $cfg->setConfigEntry('cruncher_bootstrap_task_handler_initializer_filter', 'CruncherTaskHandlerInitializerFilter');
880
881 // CFG: CRUNCHER-BOOTSTRAP-EXTRA-BOOTSTRAPPING-FILTER
882 $cfg->setConfigEntry('cruncher_bootstrap_extra_bootstrapping_filter', 'CruncherBootstrapExtraBootstrappingFilter');
883
884 // CFG: CRUNCHER-BOOTSTRAP-BUFFER-QUEUE-INITIALIZER-FILTER
885 $cfg->setConfigEntry('cruncher_bootstrap_buffer_queue_initializer_filter', 'CruncherBootstrapBufferQueueInitializerFilter');
886
887 // CFG: CRUNCHER-BOOTSTRAP-GENERIC-ACTIVATION-FILTER
888 $cfg->setConfigEntry('cruncher_bootstrap_generic_activation_filter', 'CruncherBootstrapGenericActivationFilter');
889
890 // CFG: CRUNCHER-WELCOME-TEASER-FILTER
891 $cfg->setConfigEntry('cruncher_welcome_teaser_filter', 'CruncherWelcomeTeaserFilter');
892
893 // CFG: CRUNCHER-SHUTDOWN-FILTER
894 $cfg->setConfigEntry('cruncher_shutdown_filter', 'CruncherShutdownFilter');
895
896 // CFG: CRUNCHER-WORK-UNIT-FETCHER-TASK-CLASS
897 $cfg->setConfigEntry('cruncher_work_unit_fetcher_task_class', 'CruncherWorkUnitFetcherTask');
898
899 // CFG: CRUNCHER-TEST-UNIT-PRODUCER-TASK-CLASS
900 $cfg->setConfigEntry('cruncher_test_unit_producer_task_class', 'CruncherTestUnitProducerTask');
901
902 // CFG: CRUNCHER-KEY-PRODUCER-TASK-CLASS
903 $cfg->setConfigEntry('cruncher_key_producer_task_class', 'CruncherKeyProducerTask');
904
905 // CFG: TASK-CRUNCHER-WORK-UNIT-FETCHER-STARTUP-DELAY
906 $cfg->setConfigEntry('task_cruncher_work_unit_fetcher_startup_delay', 1000);
907
908 // CFG: TASK-CRUNCHER-WORK-UNIT-FETCHER-INTERVAL-DELAY
909 $cfg->setConfigEntry('task_cruncher_work_unit_fetcher_interval_delay', 10);
910
911 // CFG: TASK-CRUNCHER-WORK-UNIT-FETCHER-MAX-RUNS
912 $cfg->setConfigEntry('task_cruncher_work_unit_fetcher_max_runs', 0);
913
914 // CFG: TASK-CRUNCHER-TEST-UNIT-PRODUCER-STARTUP-DELAY
915 $cfg->setConfigEntry('task_cruncher_test_unit_producer_startup_delay', 500);
916
917 // CFG: TASK-CRUNCHER-TEST-UNIT-PRODUCER-INTERVAL-DELAY
918 $cfg->setConfigEntry('task_cruncher_test_unit_producer_interval_delay', 1000*60*60);
919
920 // CFG: TASK-CRUNCHER-TEST-UNIT-PRODUCER-MAX-RUNS
921 $cfg->setConfigEntry('task_cruncher_test_unit_producer_max_runs', 0);
922
923 // CFG: TASK-CRUNCHER-KEY-PRODUCER-STARTUP-DELAY
924 $cfg->setConfigEntry('task_cruncher_key_producer_startup_delay', 750);
925
926 // CFG: TASK-CRUNCHER-KEY-PRODUCER-INTERVAL-DELAY
927 $cfg->setConfigEntry('task_cruncher_key_producer_interval_delay', 5);
928
929 // CFG: TASK-CRUNCHER-KEY-PRODUCER-MAX-RUNS
930 $cfg->setConfigEntry('task_cruncher_key_producer_max_runs', 0);
931
932 // CFG: CRUNCHER-TEST-UNITS-ENABLED
933 $cfg->setConfigEntry('cruncher_test_units_enabled', 'Y');
934
935 // CFG: CRUNCHER-IN-BUFFER-MIN-THRESHOLD
936 $cfg->setConfigEntry('cruncher_in_buffer_min_threshold', 3);
937
938 // CFG: CRUNCHER-TEST-UNIT-GENERATOR-CLASS
939 $cfg->setConfigEntry('cruncher_test_unit_generator_class', 'CruncherTestUnitHelper');
940
941 // CFG: CRUNCHER-MAX-TEST-UNIT-AMOUNT
942 $cfg->setConfigEntry('cruncher_max_text_unit_amount', 10);
943
944 // CFG: CRUNCHER-TEST-UNIT-PRODUCER-CLASS
945 $cfg->setConfigEntry('cruncher_test_unit_producer_class', 'CruncherTestUnitProducer');
946
947 // CFG: CRUNCHER-KEY-PRODUCER-CLASS
948 $cfg->setConfigEntry('cruncher_key_producer_class', 'CruncherKeyProducer');
949
950 // CFG: CRUNCHER-TEST-UNIT-PRODUCER-TEMPLATE-CLASS
951 $cfg->setConfigEntry('cruncher_test_unit_producer_template_class', 'XmlCruncherTestUnitTemplateEngine');
952
953 // CFG: CRUNCHER-MESSAGE-TEMPLATE-EXTENSION
954 $cfg->setConfigEntry('cruncher_message_template_extension', '.xml');
955
956 // CFG: CRUNCHER-TEST-UNIT-TEMPLATE-EXTENSION
957 $cfg->setConfigEntry('cruncher_test_unit_template_extension', '.xml');
958
959 // CFG: CRUNCHER-TEST-UNIT-STACKER-CLASS
960 $cfg->setConfigEntry('cruncher_test_unit_stacker_class', 'FiLoStacker');
961
962 // CFG: CRUNCHER-TEST-UNIT-TEMPLATE-TYPE
963 $cfg->setConfigEntry('cruncher_test_unit_template_type', 'xml/cruncher/producer');
964
965 // CFG: STACKER-CRUNCHER-TEST-UNIT-MAX-SIZE
966 $cfg->setConfigEntry('stacker_cruncher_test_unit_max_size', 20);
967
968 // CFG: STACKER-OUTGOING-QUEUE-MAX-SIZE
969 $cfg->setConfigEntry('stacker_outgoing_queue_max_size', 2000);
970
971 // CFG: CRUNCHER-TEST-UNIT-MAX-COUNT
972 $cfg->setConfigEntry('cruncher_test_unit_max_count', 1000);
973
974 // CFG: CRUNCHER-UNIT-DB-WRAPPER-CLASS
975 $cfg->setConfigEntry('cruncher_unit_db_wrapper_class', 'CruncherUnitDatabaseWrapper');
976
977 // CFG: CRUNCHER-RANDOM-SECRET-MESSAGE-LENGTH
978 $cfg->setConfigEntry('random_secret_message_length', 100);
979
980 // CFG: TEST-UNIT-PRODUCER-KEY-ITERATOR-CLASS
981 $cfg->setConfigEntry('test_unit_producer_key_iterator_class', 'TestUnitKeyProducerIterator');
982
983 // CFG: WORK-UNIT-PRODUCER-KEY-ITERATOR-CLASS
984 $cfg->setConfigEntry('work_unit_producer_key_iterator_class', 'WorkUnitKeyProducerIterator');
985
986 // CFG: TEST-UNIT-RANDOM-SECRET-KEY-LENGTH
987 $cfg->setConfigEntry('test_unit_random_secret_key_length', 8*4);
988
989 // CFG: TEST-UNIT-SOURCE-CLASS
990 $cfg->setConfigEntry('test_unit_source_class', 'TestUnitSource');
991
992 // CFG: CRYPTO-RANDOM-MESSAGE-HELPER-CLASS
993 $cfg->setConfigEntry('crypto_random_message_helper_class', 'CryptoRandomUnitMessageHelper');
994
995 // CFG: CRUNCHER-INIT-STATE-CLASS
996 $cfg->setConfigEntry('cruncher_init_state_class', 'CruncherInitState');
997
998 // CFG: CRUNCHER-VIRGIN-STATE-CLASS
999 $cfg->setConfigEntry('cruncher_virgin_state_class', 'CruncherVirginState');
1000
1001 // CFG: CRUNCHER-PER-UNIT-KEY-LIMIT
1002 $cfg->setConfigEntry('cruncher_per_unit_key_limit', 1000);
1003
1004 ///////////////////////////////////////////////////////////////////////////////
1005 //                            Chat Configuration
1006 ///////////////////////////////////////////////////////////////////////////////
1007
1008 // CFG: HUBCONSOLE-CMD-CHAT-RESOLVER-CLASS
1009 $cfg->setConfigEntry('hubconsole_cmd_chat_resolver_class', 'HubConsoleCommandResolver');
1010
1011 // CFG: CHAT-PHP-REQUIREMENTS-FILTER
1012 $cfg->setConfigEntry('chat_php_requirements_filter', 'ChatPhpRequirementsFilter');
1013
1014 // CFG: CHAT-INITIALIZER-FILTER
1015 $cfg->setConfigEntry('chat_initializer_filter', 'ChatInitializationFilter');
1016
1017 // CFG: NODE-CONSOLE-CHAT
1018 $cfg->setConfigEntry('node_console_chat_class', 'NodeConsoleChat');
1019
1020 // CFG: CHAT-WELCOME-TEASER-FILTER
1021 $cfg->setConfigEntry('chat_welcome_teaser_filter', 'ChatWelcomeTeaserFilter');
1022
1023 // CFG: CHAT-BOOTSTRAP-TASK-HANDLER-INITIALIZER-FILTER
1024 $cfg->setConfigEntry('chat_bootstrap_task_handler_initializer_filter', 'ChatTaskHandlerInitializerFilter');
1025
1026 // CFG: CHAT-BOOTSTRAP-EXTRA-BOOTSTRAPPING-FILTER
1027 $cfg->setConfigEntry('chat_bootstrap_extra_bootstrapping_filter', 'ChatBootstrapExtraBootstrappingFilter');
1028
1029 // CFG: CHAT-BOOTSTRAP-GENERIC-ACTIVATION-FILTER
1030 $cfg->setConfigEntry('chat_bootstrap_generic_activation_filter', 'ChatBootstrapGenericActivationFilter');
1031
1032 // CFG: CHAT-SHUTDOWN-FILTER
1033 $cfg->setConfigEntry('chat_shutdown_filter', 'ChatShutdownFilter');
1034
1035 // CFG: CHAT-TELNET-LISTENER-TASK-CLASS
1036 $cfg->setConfigEntry('chat_telnet_listener_task_class', 'ChatTelnetListenerTask');
1037
1038 // CFG: TASK-CHAT-TELNET-LISTENER-STARTUP-DELAY
1039 $cfg->setConfigEntry('task_chat_telnet_listener_startup_delay', 2500);
1040
1041 // CFG: TASK-CHAT-TELNET-LISTENER-INTERVAL-DELAY
1042 $cfg->setConfigEntry('task_chat_telnet_listener_interval_delay', 10);
1043
1044 // CFG: TASK-CHAT-TELNET-LISTENER-MAX-RUNS
1045 $cfg->setConfigEntry('task_chat_telnet_listener_max_runs', 0);
1046
1047 ///////////////////////////////////////////////////////////////////////////////
1048 //                            HTTP Configuration
1049 ///////////////////////////////////////////////////////////////////////////////
1050
1051 // CFG: DEFAULT-WEB-COMMAND
1052 $cfg->setConfigEntry('default_web_command', 'home');
1053
1054 // CFG: WEB-CMD-HOME-RESOLVER-CLASS
1055 $cfg->setConfigEntry('web_cmd_home_resolver_class', 'WebCommandResolver');
1056
1057 // CFG: NEWS-HOME-LIMIT
1058 $cfg->setConfigEntry('news_home_limit', 10);
1059
1060 ///////////////////////////////////////////////////////////////////////////////
1061 //                         Apt-Proxy Configuration
1062 ///////////////////////////////////////////////////////////////////////////////
1063
1064 // CFG: HUBCONSOLE-CMD-APT-PROXY-RESOLVER-CLASS
1065 $cfg->setConfigEntry('hubconsole_cmd_apt_proxy_resolver_class', 'HubConsoleCommandResolver');
1066
1067 // CFG: APT-PROXY-PHP-REQUIREMENTS-FILTER
1068 $cfg->setConfigEntry('apt_proxy_php_requirements_filter', 'AptProxyPhpRequirementsFilter');
1069
1070 // CFG: APT-PROXY-INITIALIZER-FILTER
1071 $cfg->setConfigEntry('apt_proxy_initializer_filter', 'AptProxyInitializationFilter');
1072
1073 // CFG: NODE-CONSOLE-APT-PROXY
1074 $cfg->setConfigEntry('node_console_apt_proxy_class', 'NodeConsoleAptProxy');
1075
1076 // CFG: APT-PROXY-WELCOME-TEASER-FILTER
1077 $cfg->setConfigEntry('apt_proxy_welcome_teaser_filter', 'AptProxyWelcomeTeaserFilter');
1078
1079 // CFG: APT-PROXY-BOOTSTRAP-TASK-HANDLER-INITIALIZER-FILTER
1080 $cfg->setConfigEntry('apt_proxy_bootstrap_task_handler_initializer_filter', 'AptProxyTaskHandlerInitializerFilter');
1081
1082 // CFG: APT-PROXY-BOOTSTRAP-EXTRA-BOOTSTRAPPING-FILTER
1083 $cfg->setConfigEntry('apt_proxy_bootstrap_extra_bootstrapping_filter', 'AptProxyBootstrapExtraBootstrappingFilter');
1084
1085 // CFG: APT-PROXY-BOOTSTRAP-GENERIC-ACTIVATION-FILTER
1086 $cfg->setConfigEntry('apt_proxy_bootstrap_generic_activation_filter', 'AptProxyBootstrapGenericActivationFilter');
1087
1088 // CFG: APT-PROXY-SHUTDOWN-FILTER
1089 $cfg->setConfigEntry('apt_proxy_shutdown_filter', 'AptProxyShutdownFilter');
1090
1091 // CFG: APT-PROXY-LISTENER-TASK-CLASS
1092 $cfg->setConfigEntry('apt_proxy_listener_task_class', 'AptProxyListenerTask');
1093
1094 // CFG: TASK-APT-PROXY-LISTENER-STARTUP-DELAY
1095 $cfg->setConfigEntry('task_apt_proxy_listener_startup_delay', 2500);
1096
1097 // CFG: TASK-APT-PROXY-LISTENER-INTERVAL-DELAY
1098 $cfg->setConfigEntry('task_apt_proxy_listener_interval_delay', 10);
1099
1100 // CFG: TASK-APT-PROXY-LISTENER-MAX-RUNS
1101 $cfg->setConfigEntry('task_apt_proxy_listener_max_runs', 0);
1102
1103 // [EOF]
1104 ?>