/
HarvesterSettings.java
862 lines (734 loc) · 43.9 KB
/
HarvesterSettings.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
/*
* #%L
* Netarchivesuite - harvester
* %%
* Copyright (C) 2005 - 2018 The Royal Danish Library,
* the National Library of France and the Austrian National Library.
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 2.1 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-2.1.html>.
* #L%
*/
package dk.netarkivet.harvester;
import java.util.regex.Pattern;
import dk.netarkivet.common.utils.Settings;
import dk.netarkivet.harvester.harvesting.distribute.HarvesterReadyMessage;
import dk.netarkivet.harvester.harvesting.report.HarvestReport;
/** Settings specific to the harvester module of NetarchiveSuite. */
public class HarvesterSettings {
/** The default place in classpath where the settings file can be found. */
private static final String DEFAULT_SETTINGS_CLASSPATH = "dk/netarkivet/harvester/settings.xml";
/*
* The static initialiser is called when the class is loaded. It will add default values for all settings defined in
* this class, by loading them from a settings.xml file in classpath.
*/
static {
Settings.addDefaultClasspathSettings(DEFAULT_SETTINGS_CLASSPATH);
}
// NOTE: The constants defining setting names below are left non-final on
// purpose! Otherwise, the static initialiser that loads default values
// will not run.
/**
* <b>settings.harvester.datamodel.domain.defaultSeedlist</b>: <br>
* Default name of the seedlist to use when new domains are created.
*/
public static String DEFAULT_SEEDLIST = "settings.harvester.datamodel.domain.defaultSeedlist";
/**
* <b>settings.harvester.datamodel.domain.validSeedRegex</b>: <br>
* Regular expression used to validate a seed within a seedlist.
* <p>
* Default value accepts all non-empty strings.
*/
public static String VALID_SEED_REGEX = "settings.harvester.datamodel.domain.validSeedRegex";
/**
* <b>settings.harvester.datamodel.domain.defaultConfig</b>: <br>
* The name of a configuration that is created by default and which is initially used for snapshot harvests.
*/
public static String DOMAIN_DEFAULT_CONFIG = "settings.harvester.datamodel.domain.defaultConfig";
/**
* <b>settings.harvester.datamodel.domain.defaultOrderxml</b>: <br>
* Name of order xml template used for domains if nothing else is specified. The newly created configurations use
* this. This template must exist before harvesting can commence
*/
public static String DOMAIN_DEFAULT_ORDERXML = "settings.harvester.datamodel.domain.defaultOrderxml";
/**
* <b>settings.harvester.datamodel.domain.defaultMaxrate</b>: <br>
* Default download rate for domain configuration. Not currently enforced.
*/
public static String DOMAIN_CONFIG_MAXRATE = "settings.harvester.datamodel.domain.defaultMaxrate";
/**
* <b>settings.harvester.datamodel.domain.defaultMaxbytes</b>: <br>
* Default byte limit for domain configuration.
*/
public static String DOMAIN_CONFIG_MAXBYTES = "settings.harvester.datamodel.domain.defaultMaxbytes";
/**
* <b>settings.harvester.datamodel.domain.defaultMaxobjects</b>: <br>
* Default object limit for domain configuration.
*/
public static String DOMAIN_CONFIG_MAXOBJECTS = "settings.harvester.datamodel.domain.defaultMaxobjects";
/**
* <b>settings.harvester.datamodel.domain.defaultSchedule</b>: <br>
* Default schedule for selective harvesting,. No default by default.
*/
public static String DOMAIN_CONFIG_SCHEDULE = "settings.harvester.datamodel.domain.defaultSchedule";
/**
* <b>settings.harvester.scheduler.jobGen.config.errorFactorPrevResult</b>: <br>
* Used when calculating expected size of a harvest of some configuration during job-creation process. This defines
* how great a possible factor we will permit a harvest to be larger then the expectation, when basing the
* expectation on a previous completed job.
*/
public static String ERRORFACTOR_PERMITTED_PREVRESULT = "settings.harvester.scheduler.jobGen.config.errorFactorPrevResult";
/**
* <b>settings.harvester.scheduler.jobGen.config.errorFactorBestGuess</b>: <br>
* Used when calculating expected size of a harvest of some configuration during job-creation process. This defines
* how great a possible factor we will permit a harvest to be larger then the expectation, when basing the
* expectation on previous uncompleted harvests or no harvest data at all.
*/
public static String ERRORFACTOR_PERMITTED_BESTGUESS = "settings.harvester.scheduler.jobGen.config.errorFactorBestGuess";
/**
* <b>settings.harvester.scheduler.jobGen.config.expectedAverageBytesPerObject</b>: <br>
* How many bytes the average object is expected to be on domains where we don't know any better. This number should
* grow over time, as of end of 2005 empirical data shows 38000.
*/
public static String EXPECTED_AVERAGE_BYTES_PER_OBJECT = "settings.harvester.scheduler.jobGen.config.expectedAverageBytesPerObject";
/**
* <b>settings.harvester.scheduler.jobGen.config.maxDomainSize</b>: <br>
* The initial guess of the domain size (number of objects) of an unknown domain.
*/
public static String MAX_DOMAIN_SIZE = "settings.harvester.scheduler.jobGen.config.maxDomainSize";
/**
* <b>settings.harvester.scheduler.jobGen.config.maxRelativeSizeDifference</b>: <br>
* The maximum allowed relative difference in expected number of objects retrieved in a single job definition. To
* avoid job splitting, set the value as Long.MAX_VALUE.
*/
public static String JOBS_MAX_RELATIVE_SIZE_DIFFERENCE = "settings.harvester.scheduler.jobGen.config.maxRelativeSizeDifference";
/**
* <b>settings.harvester.scheduler.jobGen.config.minAbsoluteSizeDifference</b>: <br>
* Size differences for jobs below this threshold are ignored, regardless of the limits for the relative size
* difference. To avoid job splitting, set the value as Long.MAX_VALUE.
*/
public static String JOBS_MIN_ABSOLUTE_SIZE_DIFFERENCE = "settings.harvester.scheduler.jobGen.config.minAbsoluteSizeDifference";
/**
* <b>settings.harvester.scheduler.jobGen.config.maxTotalSize</b>: <br>
* When this limit is exceeded no more configurations may be added to a job. To avoid job splitting, set the value
* as Long.MAX_VALUE.
*/
public static String JOBS_MAX_TOTAL_JOBSIZE = "settings.harvester.scheduler.jobGen.config.maxTotalSize";
/**
* <b>settings.harvester.scheduler.jobGen.maxTimeToCompleteJob</b>: <br>
* The limit on how many seconds Heritrix should continue on each job. O means no limit.
*/
public static String JOBS_MAX_TIME_TO_COMPLETE = "settings.harvester.scheduler.jobGen.maxTimeToCompleteJob";
/**
* <b>settings.harvester.scheduler.jobGen.domainConfigSubsetSize</b>: <br>
* How many domain configurations we will process in one go before making jobs out of them. This amount of domains
* will be stored in memory at the same time. To avoid job splitting, set this value as Long.MAX_VALUE.
*/
public static String JOBGEN_DOMAIN_CONFIG_SUBSET_SIZE = "settings.harvester.scheduler.jobGen.domainConfigSubsetSize";
/**
* <b>settings.harvester.scheduler.jobGen.config.fixedDomainCountFocused</b>: <br>
* If the job generator is {@link FixedDomainConfigurationCountJobGenerator}, then this parameter represents the
* maximum number of domain configurations in a partial harvest job.
*/
public static String JOBGEN_FIXED_CONFIG_COUNT_FOCUSED = "settings.harvester.scheduler.jobGen.config.fixedDomainCountFocused";
/**
* <b>settings.harvester.scheduler.jobGen.config.fixedDomainCountSnapshot</b>: <br>
* If the job generator is {@link FixedDomainConfigurationCountJobGenerator}, then this parameter represents the
* maximum number of domain configurations in a full harvest job.
*/
public static String JOBGEN_FIXED_CONFIG_COUNT_SNAPSHOT = "settings.harvester.scheduler.jobGen.config.fixedDomainCountSnapshot";
/**
* <b>settings.harvester.scheduler.jobGen.config.excludeDomainsWithZeroBudget</b>: <br>
* If the job generator is {@link FixedDomainConfigurationCountJobGenerator}, then this parameter toggles whether or
* not domain configurations with a budget of zero (byte or objects) should be excluded from jobs. The default value
* is 'false'.
*/
public static String JOBGEN_FIXED_CONFIG_COUNT_EXCLUDE_ZERO_BUDGET = "settings.harvester.scheduler.jobGen.config.excludeDomainsWithZeroBudget";
/**
* <b>settings.harvester.scheduler.jobGen.config.postponeUnregisteredChannel</b>: <br>
* If this property is true, then the job generator will postpone job generation for harvest definitions that are
* mapped to a harvest channel not registered to at least one harvester. The default value is 'true'.
*/
public static String JOBGEN_POSTPONE_UNREGISTERED_HARVEST_CHANNEL = "settings.harvester.scheduler.jobGen.config.postponeUnregisteredChannel";
/**
* <b>settings.harvester.scheduler.jobGen.class</b>: <br>
* The fully qualified class name of the chosen job generator implementation, currently either
* {@link DefaultJobGenerator} or {@link FixedDomainConfigurationCountJobGenerator}. The default is
* {@link DefaultJobGenerator}.
*/
public static String JOBGEN_CLASS = "settings.harvester.scheduler.jobGen.class";
/**
* <b>settings.harvester.scheduler.jobGen.config.splitByObjectLimit</b>: <br>
* By default the byte limit is used as the base criterion for how many domain configurations are put into one
* harvest job. However if this parameter is set to "true", then the object limit is used instead as the base
* criterion.
*/
public static String SPLIT_BY_OBJECTLIMIT = "settings.harvester.scheduler.jobGen.config.splitByObjectLimit";
/**
* <b>settings.harvester.scheduler.jobGen.objectLimitIsSetByQuotaEnforcer</b>: <br>
* Controls whether the domain configuration object limit should be set in Heritrix's crawl order through the
* QuotaEnforcer configuration (parameter set to true) or through the frontier parameter 'queue-total-budget' (
* parameter set to false).
* <p>
* Default value is true, as legacy implementation was to use only the QuotaEnforcer.
*/
public static String OBJECT_LIMIT_SET_BY_QUOTA_ENFORCER = "settings.harvester.scheduler.jobGen.objectLimitIsSetByQuotaEnforcer";
/**
* <b>settings.harvester.scheduler.jobGen.useAlternateSnapShotJobgenerationMethod</b>:</br>
* If value is true, we use an alternate method for jobgeneration of a snapshotharvest continuing a previous harvest.
* Default value is false.
*/
public static String USE_ALTERNATE_SNAPSHOT_JOBGENERATION_METHOD = "settings.harvester.scheduler.jobGen.useAlternateSnapshotJobgenerationMethod";
/**
* <b>settings.harvester.scheduler.jobtimeouttime</b>:<br />
* Time before a STARTED job times out and change status to FAILED. In seconds.
*/
public static String JOB_TIMEOUT_TIME = "settings.harvester.scheduler.jobtimeouttime";
/**
* <b>settings.harvester.scheduler.jobgenerationperiod</b>: <br>
* The period between checking if new jobs should be generated, in seconds. This is one minute because that's the
* finest we can define in a harvest definition.
*/
public static String GENERATE_JOBS_PERIOD = "settings.harvester.scheduler.jobgenerationperiod";
/**
* <b>settings.harvester.harvesting.serverDir</b>: <br>
* Each job gets a subdir of this dir. Job data is written and Heritrix writes to that subdir.
*/
public static String HARVEST_CONTROLLER_SERVERDIR = "settings.harvester.harvesting.serverDir";
/**
* <b>settings.harvester.harvesting.minSpaceLeft</b>: <br>
* The minimum amount of free bytes in the serverDir required before accepting any harvest-jobs.
*/
public static String HARVEST_SERVERDIR_MINSPACE = "settings.harvester.harvesting.minSpaceLeft";
/**
* <b>settings.harvester.harvesting.oldjobsDir</b>: <br>
* The directory in which data from old jobs is kept after uploading. Each directory from serverDir will be moved to
* here if any data remains, either due to failed uploads or because it wasn't attempted uploaded.
*/
public static String HARVEST_CONTROLLER_OLDJOBSDIR = "settings.harvester.harvesting.oldjobsDir";
/**
* <b>settings.harvester.harvesting.channel</b>: <br>
* Harvest channel to take jobs from. This is the default channel assigned to the harvest controller.
*
* @see dk.netarkivet.harvester.datamodel.HarvestChannel <p>
* NOTE: this one is also used in SingleMBeanObject parsing information to System state
*/
public static String HARVEST_CONTROLLER_CHANNEL = "settings.harvester.harvesting.channel";
/**
* <b>settings.harvester.harvesting.heritrix.inactivityTimeout</b>: <br>
* The timeout setting for aborting a crawl based on crawler-inactivity. If the crawler is inactive for this amount
* of seconds the crawl will be aborted. The inactivity is measured on the crawlController.activeToeCount().
*/
public static String INACTIVITY_TIMEOUT_IN_SECS = "settings.harvester.harvesting.heritrix.inactivityTimeout";
/**
* <b>settings.harvester.harvesting.heritrix.noresponseTimeout</b>: <br>
* The timeout value (in seconds) used in HeritrixLauncher for aborting crawl when no bytes are being received from
* web servers.
*/
public static String CRAWLER_TIMEOUT_NON_RESPONDING = "settings.harvester.harvesting.heritrix.noresponseTimeout";
/**
* If true, upload failures will not cause a job to be marked as failed
*/
public static String ALLOW_UPLOAD_FAILURES = "settings.harvester.harvesting.allowUploadFailures";
/**
* <b>settings.harvester.monitor.refreshInterval</b>:<br>
* Time interval in seconds after which the harvest monitor pages will be automatically refreshed.
*/
public static String HARVEST_MONITOR_REFRESH_INTERVAL = "settings.harvester.monitor.refreshInterval";
/**
* <b>settings.harvester.monitor.historySampleRate</b>:<br>
* Time interval in seconds between historical records stores in the DB. Default value is 5 minutes.
*/
public static String HARVEST_MONITOR_HISTORY_SAMPLE_RATE = "settings.harvester.monitor.historySampleRate";
/**
* <b>settings.harvester.monitor.historyChartGenIntervall</b>:<br>
* Time interval in seconds between regenerating the chart of historical data for a running job. Default value is 5
* minutes.
*/
public static String HARVEST_MONITOR_HISTORY_CHART_GEN_INTERVAL = "settings.harvester.monitor.historyChartGenInterval";
/**
* <b>settings.harvester.monitor.displayedHistorySize</b>:<br>
* Maximum number of most recent history records displayed on the running job details page.
*/
public static String HARVEST_MONITOR_DISPLAYED_HISTORY_SIZE = "settings.harvester.monitor.displayedHistorySize";
/**
* <b>settings.harvester.monitor.displayedFrontierQueuesSize</b>:<br>
* Maximum number of frontier queues displayed on the running job details page.
*/
public static String HARVEST_MONITOR_DISPLAYED_FRONTIER_QUEUE_SIZE = "settings.harvester.monitor.displayedFrontierQueuesSize";
/**
* <b>settings.harvester.harvesting.heritrix.crawlLoopWaitTime</b>:<br>
* Time interval in seconds to wait during a crawl loop in the harvest controller. Default value is 20 seconds.
*
* TODO Maybe move this from the heritrix settings (settings.harvester.harvesting.heritrix) to
* settings.harvester.harvesting.controller.
*/
public static String CRAWL_LOOP_WAIT_TIME = "settings.harvester.harvesting.heritrix.crawlLoopWaitTime";
/**
* <b>settings.harvester.harvesting.sendReadyInterval</b>:<br>
* Time interval in seconds to wait before transmitting a {@link HarvesterReadyMessage} to the {@link JobDispatcher}
* .
* <p>
* <p>
* Lower values will make the JobDispatcher detect ready harvester faster, but will make it more likely that the
* harvester may send two ready messages before a job is received, causing the JobDispatcher to dispatch two jobs.
* <p>
* Default value is 30 second.
*/
public static String SEND_READY_INTERVAL = "settings.harvester.harvesting.sendReadyInterval";
/**
* <b>settings.harvester.harvesting.sendReadyDelay</b>:<br>
* Time in milliseconds to wait from starting to listen on the job queue to a potential ready message is sent to the
* HarvestJobManager. This small delay is used to retrieve any left over jobs on the queue before sending the ready
* message to the harvester. Default value is 1000 millisecond.
*/
public static String SEND_READY_DELAY = "settings.harvester.harvesting.sendReadyDelay";
/**
* Support for limiting the number of submitted messages in each harvestchannel using a javax.jms.QueueBrowser.
* Default value is: false
*/
public static String SCHEDULER_LIMIT_SUBMITTED_JOBS_IN_QUEUE = "settings.harvester.scheduler.limitSubmittedJobsInQueue";
/**
* The limit for submitted messages in each harvestchannel. Not enabled if SCHEDULER_LIMIT_SUBMITTED_JOBS_IN_QUEUE is false
* Default value is: 1
*/
public static String SCHEDULER_SUBMITTED_JOBS_IN_QUEUE_LIMIT = "settings.harvester.scheduler.submittedJobsInQueueLimit";
/**
* <b>settings.harvester.harvesting.frontier.frontierReportWaitTime</b>:<br>
* Time interval in seconds to wait between two requests to generate a full frontier report. Default value is 600
* seconds (10 min).
*/
public static String FRONTIER_REPORT_WAIT_TIME = "settings.harvester.harvesting.frontier.frontierReportWaitTime";
/**
* <b>settings.harvester.harvesting.frontier.filter.class</b> Defines a filter to apply to the full frontier report.
* the default class: {@link TopTotalEnqueuesFilter}
*/
public static String FRONTIER_REPORT_FILTER_CLASS = "settings.harvester.harvesting.frontier.filter.class";
/**
* <b>settings.harvester.harvesting.frontier.filter.args</b> Defines a frontier report filter's arguments. Arguments
* should be separated by semicolons.
*/
public static String FRONTIER_REPORT_FILTER_ARGS = "settings.harvester.harvesting.frontier.filter.args";
/**
* <b>settings.harvester.harvesting.heritrix.abortIfConnectionLost</b>:<br>
* Boolean flag. If set to true, the harvest controller will abort the current crawl when the JMX connection is
* lost. If set to true it will only log a warning, leaving the crawl operator shutting down harvester manually.
* Default value is true.
*
* @see BnfHeritrixController
*/
public static String ABORT_IF_CONNECTION_LOST = "settings.harvester.harvesting.heritrix.abortIfConnectionLost";
/**
* <b>settings.harvester.harvesting.heritrix.waitForReportGenerationTimeout</b>:<br>
* Maximum time in seconds to wait for Heritrix to generate report files once crawling is over.
*/
public static String WAIT_FOR_REPORT_GENERATION_TIMEOUT = "settings.harvester.harvesting.heritrix.waitForReportGenerationTimeout";
/**
* <b>settings.harvester.harvesting.heritrix</b>: <br>
* The path to the Heritrix SETTINGS.
*/
public static String HERITRIX = "settings.harvester.harvesting.heritrix";
/**
* <b>settings.harvester.harvesting.heritrix.adminName</b>: <br>
* The name used to access the Heritrix GUI.
*/
public static String HERITRIX_ADMIN_NAME = "settings.harvester.harvesting.heritrix.adminName";
/**
* <b>settings.harvester.harvesting.heritrix.adminPassword</b>: <br>
* The password used to access the Heritrix GUI.
*/
public static String HERITRIX_ADMIN_PASSWORD = "settings.harvester.harvesting.heritrix.adminPassword";
/**
* <b>settings.harvester.harvesting.heritrix.guiPort</b>: <br>
* Port used to access the Heritrix web user interface. This port must not be used by anything else on the machine.
* Note that apart from pausing a job, modifications done directly on Heritrix may cause unexpected breakage.
*/
public static String HERITRIX_GUI_PORT = "settings.harvester.harvesting.heritrix.guiPort";
/**
* <b>settings.harvester.harvesting.heritrix.jmxPort</b>: <br>
* The port that Heritrix 1.14.4 uses to expose its JMX interface. This port must not be used by anything else on the
* machine, but does not need to be accessible from other machines unless you want to be able to use jconsole to
* access Heritrix directly. Note that apart from pausing a job, modifications done directly on Heritrix may cause
* unexpected breakage. Irrelevant for Heritrix 3+
*/
public static String HERITRIX_JMX_PORT = "settings.harvester.harvesting.heritrix.jmxPort";
/**
* <b>settings.harvester.harvesting.heritrix.jmxUsername</b>: <br>
* The username used to connect to Heritrix 1.14.4 JMX interface The username must correspond to the value stored in the
* jmxremote.password file (name defined in setting settings.common.jmx.passwordFile).
* Irrelevant for Heritrix 3+
*/
public static String HERITRIX_JMX_USERNAME = "settings.harvester.harvesting.heritrix.jmxUsername";
/**
* <b>settings.harvester.harvesting.heritrix.jmxPassword</b>: <br>
* The password used to connect to Heritrix JMX interface The password must correspond to the value stored in the
* jmxremote.password file (name defined in setting settings.common.jmx.passwordFile).
* Irrelevant for Heritrix 3+
*/
public static String HERITRIX_JMX_PASSWORD = "settings.harvester.harvesting.heritrix.jmxPassword";
/**
* <b>settings.harvester.harvesting.heritrix.heapSize</b>: <br>
* The heap size to use for the Heritrix sub-process. This should probably be fairly large. It can be specified in
* the same way as for the -Xmx argument to Java, e.g. 512M, 2G etc.
*/
public static String HERITRIX_HEAP_SIZE = "settings.harvester.harvesting.heritrix.heapSize";
/**
* <b>settings.harvester.harvesting.heritrix.javaOpts</b>: <br>
* Additional JVM options for the Heritrix sub-process. By default there is no additional JVM option.
*/
public static String HERITRIX_JVM_OPTS = "settings.harvester.harvesting.heritrix.javaOpts";
/**
* <b>settings.harvester.harvesting.heritrixControllerClass</b>:<br/>
* The implementation of the HeritrixController interface to be used.
*/
public static String HERITRIX_CONTROLLER_CLASS = "settings.harvester.harvesting.heritrixController.class";
/**
* <b>settings.harvester.harvesting.heritrixLauncherClass</b>:<br/>
* The implementation of the HeritrixLauncher abstract class to be used.
*/
public static String HERITRIX_LAUNCHER_CLASS = "settings.harvester.harvesting.heritrixLauncher.class";
/**
* <b>settings.harvester.harvesting.harvestReport</b>:<br/>
* The implementation of {@link HarvestReport} interface to be used.
*/
public static String HARVEST_REPORT_CLASS = "settings.harvester.harvesting.harvestReport.class";
/**
* <b>settings.harvester.harvesting.harvestReport.disregardSeedsURLInfo</b>:<br/>
* Should we disregard seedURL-information and thus assign the harvested bytes to the domain of the harvested URL
* instead of the seed url domain? The default is false;
*/
public static String DISREGARD_SEEDURL_INFORMATION_IN_CRAWLLOG = "settings.harvester.harvesting.harvestReport.disregardSeedURLInfo";
/**
* <b>settings.harvester.harvesting.deduplication.enabled</b>:<br/>
* This setting tells the system whether or not to use deduplication. This setting is true by default.
*/
public static String DEDUPLICATION_ENABLED = "settings.harvester.harvesting.deduplication.enabled";
/**
* <b>settings.harvester.harvesting.metadata.heritrixFilePattern</b> This setting allows to filter which Heritrix
* files should be stored in the metadata (W)ARC file..
*
* @see Pattern
*/
public static String METADATA_HERITRIX_FILE_PATTERN = "settings.harvester.harvesting.metadata.heritrixFilePattern";
/**
* <b>settings.harvester.harvesting.metadata.reportFilePattern</b> This setting allows to filter which Heritrix
* files that should be stored in the metadata (W)ARC file are to be classified as a report.
*
* @see Pattern
*/
public static String METADATA_REPORT_FILE_PATTERN = "settings.harvester.harvesting.metadata.reportFilePattern";
/**
* <b>settings.harvester.harvesting.metadata.logFilePattern</b> This setting allows to filter which Heritrix log
* files should be stored in the metadata (W)ARC file.
*
* @see Pattern
*/
public static String METADATA_LOG_FILE_PATTERN = "settings.harvester.harvesting.metadata.logFilePattern";
/**
* <b>settings.harvester.harvesting.metadata.generateArchiveFilesReport</b> This setting is a boolean flag that
* enables/disables the generation of an ARC/WARC files report. Default value is 'true'.
*
* @see HarvestDocumentation#documentHarvest(dk.netarkivet.harvester.harvesting.IngestableFiles)
*/
public static String METADATA_GENERATE_ARCHIVE_FILES_REPORT = "settings.harvester.harvesting.metadata.archiveFilesReport.generate";
/**
* <b>settings.harvester.harvesting.metadata.archiveFilesReportName</b> If
* {@link #METADATA_GENERATE_ARCHIVE_FILES_REPORT} is set to true, sets the name of the generated report file.
* Default value is 'archivefiles-report.txt'.
*
* @see HarvestDocumentation#documentHarvest(dk.netarkivet.harvester.harvesting.IngestableFiles)
*/
public static String METADATA_ARCHIVE_FILES_REPORT_NAME = "settings.harvester.harvesting.metadata.archiveFilesReport.fileName";
/**
* <b>settings.harvester.harvesting.metadata.archiveFilesReportName</b> If
* {@link #METADATA_GENERATE_ARCHIVE_FILES_REPORT} is set to true, sets the header of the generated report file.
* This setting should generally be left to its default value, which is '[ARCHIVEFILE] [Closed] [Size]'.
*
* @see HarvestDocumentation#documentHarvest(dk.netarkivet.harvester.harvesting.IngestableFiles)
*/
public static String METADATA_ARCHIVE_FILES_REPORT_HEADER = "settings.harvester.harvesting.metadata.archiveFilesReport.fileHeader";
/**
* The version number which goes in metadata file names like 12345-metadata-<version number>.warc.gz
*/
public static String METADATA_FILE_VERSION_NUMBER = "settings.harvester.harvesting.metadata.filename.versionnumber";
/**
* <b>settings.harvester.aliases.timeout</b> The amount of time in seconds before an alias times out, and needs to
* be re-evaluated. The default value is one year, i.e 31536000 seconds.
*/
public static String ALIAS_TIMEOUT = "settings.harvester.aliases.timeout";
/**
* <b>settings.harvester.harvesting.continuationFromHeritrixRecoverlogEnabled</b>:</br> Setting for whether or not a
* restarted job should try fetching the recoverlog of the previous failed job, and ask Heritrix to continue from
* this log. The default is false.
*/
public static String RECOVERlOG_CONTINUATION_ENABLED = "settings.harvester.harvesting.continuationFromHeritrixRecoverlogEnabled";
/**
* <b>settings.harvester.harvesting.metadata.metadataFormat</b> The dataformat used by Netarchivesuite to write the
* metadata associated with a given harvest job. default: arc (alternative: warc)
*/
public static String METADATA_FORMAT = "settings.harvester.harvesting.metadata.metadataFormat";
/**
* <b>settings.harvester.harvesting.metadata.metadataFileNameFormat</b> The format of the name of the metadata file :
* By default, it will be jobID-metadata.1.extension for example 3161-metadata-1.warc
* If the value is "prefix", it will be named like a warc file : Prefix-61-3161-metadata-1.warc
* default value : default (alternative: prefix)
*/
public static String METADATA_FILENAME_FORMAT = "settings.harvester.harvesting.metadata.metadataFileNameFormat";
/**
* <b>settings.harvester.harvesting.metadata.compression</b> Do we compress the
* metadata associated with a given harvest job.
* default: false
*/
public static String METADATA_COMPRESSION = "settings.harvester.harvesting.metadata.compression";
/**
* <b>settings.harvester.harvesting.heritrix.archiveNaming.collectionName</b>
* prefix for archive file
* if METADATA_FILENAME_FORMAT is "prefix", then check of a collection name to prefix metadata filename
*/
public static String HERITRIX_PREFIX_COLLECTION_NAME = "settings.harvester.harvesting.heritrix.archiveNaming.collectionName";
/**
* <b>settings.harvester.harvesting.heritrix.archiveFormat</b> The dataformat used by heritrix to write the
* harvested data. default: warc (alternative: arc)
*/
public static String HERITRIX_ARCHIVE_FORMAT = "settings.harvester.harvesting.heritrix.archiveFormat";
/**
* <b>settings.harvester.harvesting.heritrix.archiveNaming.class</b> The class implementing the chosen way of naming
* your archive-files default: LegacyNamingConvention. This class decides what to put into the Heritrix "prefix"
* property of the org.archive.crawler.writer.ARCWriterProcessor and/or
* org.archive.crawler.writer.WARCWriterProcessor.
*/
public static String HERITRIX_ARCHIVE_NAMING_CLASS = "settings.harvester.harvesting.heritrix.archiveNaming.class";
/**
* <b>settings.harvester.harvesting.heritrix.warc.warcParametersOverride</b> This paramater define NAS behaviour
* regarding warc parameters (write request, write metadata, etc.) : if this parameter is true, the warc parameters
* defined in harvester templates are not considered. The default is true.
*/
public static String HERITRIX_WARC_PARAMETERS_OVERRIDE = "settings.harvester.harvesting.heritrix.warc.warcParametersOverride";
/**
* <b>settings.harvester.harvesting.heritrix.warc.skipIdenticalDigests</b> Represents the 'skip-identical-digests'
* setting in the Heritrix WARCWriterProcessor. The default is false.
*/
public static String HERITRIX_WARC_SKIP_IDENTICAL_DIGESTS = "settings.harvester.harvesting.heritrix.warc.skipIdenticalDigests";
/**
* <b>settings.harvester.harvesting.heritrix.warc.writeRequests</b> Represents the 'write-requests' setting in the
* Heritrix WARCWriterProcessor. The default is true
*/
public static String HERITRIX_WARC_WRITE_REQUESTS = "settings.harvester.harvesting.heritrix.warc.writeRequests";
/**
* <b>settings.harvester.harvesting.heritrix.warc.writeMetadata</b> Represents the 'write-metadata' setting in the
* Heritrix WARCWriterProcessor. The default is true.
*/
public static String HERITRIX_WARC_WRITE_METADATA = "settings.harvester.harvesting.heritrix.warc.writeMetadata";
/**
* <b>settings.harvester.harvesting.heritrix.warc.writeMetadataOutlinks</b> Represents the 'write-metadata-outlinks' setting in the Heritrix
* WARCWriterProcessor. The default is false.s
*/
public static String HERITRIX_WARC_WRITE_METADATA_OUTLINKS = "settings.harvester.harvesting.heritrix.warc.writeMetadataOutlinks";
/**
* <b>settings.harvester.harvesting.heritrix.warc.writeRevisitForIdenticalDigests</b> Represents the
* 'write-revisit-for-identical-digests' setting in the Heritrix WARCWriterProcessor. The default is true.
*/
public static String HERITRIX_WARC_WRITE_REVISIT_FOR_IDENTICAL_DIGESTS = "settings.harvester.harvesting.heritrix.warc.writeRevisitForIdenticalDigests";
/**
* <b>settings.harvester.harvesting.heritrix.warc.writeRevisitForNotModified</b> Represents the
* 'write-revisit-for-not-modified' setting in the Heritrix WARCWriterProcessor. The default is true.
*/
public static String HERITRIX_WARC_WRITE_REVISIT_FOR_NOT_MODIFIED = "settings.harvester.harvesting.heritrix.warc.writeRevisitForNotModified";
/**
* <b>settings.harvester.harvesting.heritrix.warc.startNewFilesOnCheckpoint</b> Represents the
* 'startNewFilesOnCheckpoint' setting in the Heritrix WARCWriterProcessor. Only available with H3. The default is true.
*/
public static String HERITRIX_WARC_START_NEW_FILES_ON_CHECKPOINT
= "settings.harvester.harvesting.heritrix.warc.startNewFilesOnCheckpoint";
/**
* Currently UNUSED.
* <b>settings.harvester.harvesting.heritrix.version</b> Represents the version of Heritrix used by Netarchivesuite
* The default is h3. The optional value is h1.
*
*
* If h1 is chosen, we assume that our templates is h1, as well.
* If h3 is chosen, we assume that our templates is h3, as well.
* There is no attempt at migration from one to the other. This must be done by an commandline-tool.
*/
public static String HERITRIX_VERSION = "settings.harvester.harvesting.heritrix.version";
/**
* <b>settings.harvester.performer</b>: <br>
* The agent performing these harvests. The default is: ""
*/
public static String PERFORMER = "settings.harvester.performer";
/***************************/
/* Indexserver - settings. */
/***************************/
/**
* <b>settings.harvester.indexserver.requestdir</b>: <br>
* Setting for where the requests of the indexserver are stored.
*/
public static String INDEXSERVER_INDEXING_REQUESTDIR = "settings.harvester.indexserver.requestdir";
/**
* <b>settings.harvester.indexserver.maxclients</b>: <br>
* Setting for the max number of clients the indexserver can handle simultaneously.
*/
public static String INDEXSERVER_INDEXING_MAXCLIENTS = "settings.harvester.indexserver.maxclients";
/**
* <b>settings.harvester.indexserver.maxthreads</b>: <br>
* Setting for the max number of threads the deduplication indexer shall use.
*/
public static String INDEXSERVER_INDEXING_MAXTHREADS = "settings.harvester.indexserver.maxthreads";
/**
* <b>settings.harvester.indexserver.checkinterval</b>: <br>
* Setting for the time in milliseconds between each check of the state of sub-indexing. Default: 30 seconds (30000
* milliseconds).
*/
public static String INDEXSERVER_INDEXING_CHECKINTERVAL = "settings.harvester.indexserver.checkinterval";
/**
* <b>settings.harvester.indexserver.indexingtimeout</b>: <br>
* Setting for the indexing timeout in milliseconds. The default is 259200000 (3 days).
*/
public static String INDEXSERVER_INDEXING_TIMEOUT = "settings.harvester.indexserver.indexingtimeout";
/**
* <b>settings.harvester.indexserver.maxsegments</b>: <br>
* Setting for how many segments we will accept in our lucene indices. The default is 15.
*/
public static String INDEXSERVER_INDEXING_MAX_SEGMENTS = "settings.harvester.indexserver.maxsegments";
/**
* <b>settings.harvester.indexserver.listeningcheckinterval</b>: <br>
* Setting for the interval between each listening check in milliseconds. The default is 30000 (5 minutes).
*/
public static String INDEXSERVER_INDEXING_LISTENING_INTERVAL = "settings.harvester.indexserver.listeningcheckinterval";
/**
* <b>settings.harvester.indexserver.satisfactorythresholdpercentage</b>: <br>
* Setting for the satisfactory threshold of the indexing result as a percentage. The default is 70 percent
*/
public static String INDEXSERVER_INDEXING_SATISFACTORYTHRESHOLD_PERCENTAGE = "settings.harvester.indexserver.satisfactorythresholdpercentage";
/**
* <b>settings.harvester.indexserver.tryToMigrateDuplicationRecords</b>: <br>
* Setting for trying to migrate deduplicate information from old jobs with duplicationmigration records.
* The default is false;
*/
public static String INDEXSERVER_INDEXING_TRY_TO_MIGRATE_DUPLICATION_RECORDS = "settings.harvester.indexserver.tryToMigrateDuplicationRecords";
/**
* <b>settings.harvester.indexserver.indexrequestserver.class</b>: <br>
* Setting for which type of indexrequestserver to use. The default is:
* {@link dk.netarkivet.harvester.indexserver.distribute.IndexRequestServer}
*/
public static String INDEXREQUEST_SERVER_CLASS = "settings.harvester.indexserver.indexrequestserver.class";
/**
* b>settings.harvester.indexserver.lookfordataInAllBitarchiveReplicas</b>: <br>
* Setting for whether or not data not found in the default bitarchive replica shall be looked for in other
* bitarchive replicas. The default is false.
*/
public static String INDEXSERVER_INDEXING_LOOKFORDATAINOTHERBITARCHIVEREPLICAS = "settings.harvester.indexserver.lookfordataInAllBitarchiveReplicas";
/***************************/
/* Viewerproxy - settings. */
/***************************/
/**
* <b>settings.viewerproxy.baseDir</b>: <br>
* The main directory for the ViewerProxy, used for storing the Lucene index for the jobs being viewed. This
* directory can be used by multiple ViewerProxy applications running on the same machine.
*/
public static String VIEWERPROXY_DIR = "settings.harvester.viewerproxy.baseDir";
/**
* <b>settings.viewerproxy.tryLookupUriAsFtp</b>: <br>
* If we fail to lookup an URI, we will try changing the protocol to ftp, if this setting is set to true. The
* default is false.
*/
public static String TRY_LOOKUP_URI_AS_FTP = "settings.harvester.viewerproxy.tryLookupUriAsFtp";
/**
* <b>settings.viewerproxy.maxSizeInBrowser</b> The size (in bytes) of the largest object to be returned for viewing
* in the browser window. Larger objects will be returned with the appropriate http header for saving them to a
* file.
*/
public static String MAXIMUM_OBJECT_IN_BROWSER = "settings.harvester.viewerproxy.maxSizeInBrowser";
/**
* <b>settings.harvester.viewerproxy.allowFileDownloads</b> If set to false, there will be no links to
* allow download of warcfiles via the Viewerproxy GUI.
*/
public static String ALLOW_FILE_DOWNLOADS = "settings.harvester.viewerproxy.allowFileDownloads";
/**
* <b>settings.harvester.webinterface.maxCrawlLogInBrowser</b>: The maximum length (in lines) of
* crawllog to be displayed in a browser window.
* default value: 1000
*/
public static String MAX_CRAWLLOG_IN_BROWSER = "settings.harvester.webinterface.maxCrawlLogInBrowser";
/**
* <b>settings.harvester.webinterface.runningjobsFilteringMethod</b>: The filtering method using on the running jobs page.
* There are two available methods. Searching in the cached crawllogs (cachedLogs) or in the harvest database (database)
* default: database
*/
public static String RUNNINGJOBS_FILTERING_METHOD = "settings.harvester.webinterface.runningjobsFilteringMethod";
/**
* <b>settings.harvester.harvesting.heritrix</b>: <br>
* The path to the Heritrix3 SETTINGS.
*/
public static String HERITRIX3 = "settings.harvester.harvesting.heritrix3";
/** Heritrix3 ArcWriter settings **/
public static String HERITRIX3_ARC_COMPRESSION = "settings.harvester.harvesting.heritrix3.arc.compression";
public static String HERITRIX3_ARC_SUFFIX = "settings.harvester.harvesting.heritrix3.arc.suffix";
public static String HERITRIX3_ARC_MAXSIZE = "settings.harvester.harvesting.heritrix3.arc.maxFileSizeBytes";
public static String HERITRIX3_ARC_POOL_MAXACTIVE = "settings.harvester.harvesting.heritrix3.arc.poolMaxActive";
public static String HERITRIX3_ARC_SKIP_IDENTICAL_DIGESTS = "settings.harvester.harvesting.heritrix3.arc.skipIdenticalDigests";
/**
* <b>settings.harvester.harvesting.heritrix3.warc.template</b>: <br>
* The template for warcfiles created by Heritrix.
* Default value in NAS: ${prefix}-${timestamp17}-${serialno}-${heritrix.hostname}
* Default value in H3: ${prefix}-${timestamp17}-${serialno}-${heritrix.pid}~${heritrix.hostname}~${heritrix.port}
*/
public static String HERITRIX3_WARC_TEMPLATE = "settings.harvester.harvesting.heritrix3.warc.template";
public static String HERITRIX3_WARC_COMPRESSION = "settings.harvester.harvesting.heritrix3.warc.compression";
public static String HERITRIX3_WARC_POOL_MAXACTIVE = "settings.harvester.harvesting.heritrix3.warc.poolMaxActive";
public static String HERITRIX3_WARC_MAXSIZE = "settings.harvester.harvesting.heritrix3.warc.maxFileSizeBytes";
public static String HERITRIX3_WARC_WRITE_REQUESTS = "settings.harvester.harvesting.heritrix3.warc.writeRequests";
public static String HERITRIX3_WARC_WRITE_METADATA = "settings.harvester.harvesting.heritrix3.warc.writeMetadata";
public static String HERITRIX3_WARC_WRITE_METADATA_OUTLINKS = "settings.harvester.harvesting.heritrix3.warc.writeMetadataOutlinks";
public static String HERITRIX3_WARC_SKIP_IDENTICAL_DIGESTS = "settings.harvester.harvesting.heritrix3.warc.skipIdenticalDigests";
public static String HERITRIX3_WARC_START_NEW_FILES_ON_CHECKPOINT = "settings.harvester.harvesting.heritrix3.warc.startNewFilesOnCheckpoint";
/**
* <b>settings.harvester.harvesting.heritrix.archiveFormat</b> The dataformat used by heritrix to write the
* harvested data. default: warc (alternative: arc)
*/
public static String HERITRIX3_ARCHIVE_FORMAT = "settings.harvester.harvesting.heritrix3.archiveFormat";
/**
* <b>settings.harvester.harvesting.heritrix.archiveNaming.class</b> The class implementing the chosen way of naming
* your archive-files default: LegacyNamingConvention. This class decides what to put into the Heritrix "prefix"
* property of the org.archive.crawler.writer.ARCWriterProcessor and/or
* org.archive.crawler.writer.WARCWriterProcessor.
*/
public static String HERITRIX3_ARCHIVE_NAMING_CLASS = "settings.harvester.harvesting.heritrix3.archiveNaming.class";
/**
* <b>settings.harvester.harvesting.heritrix.warc.writeMetadataOutlinks</b> This paramater define NAS behaviour
* regarding warc parameters (write request, write metadata, etc.) : if this parameter is true, the warc parameters
* defined in harvester templates are not considered. The default is true.
*/
public static String HERITRIX3_WARC_PARAMETERS_OVERRIDE = "settings.harvester.harvesting.heritrix3.warc.warcParametersOverride";
/**
* <b>settings.harvester.harvesting.heritrix.bundle</b>Points to the Heritrix3 zipfile bundled with
* netarchiveSuite classes. Currently no default value
*/
public static String HERITRIX3_BUNDLE = "settings.harvester.harvesting.heritrix3.bundle";
/**
* <b>settings.harvester.harvesting.heritrix.certificate</b>Points to the jks keystore to use for connection to the
* Heritrix3 rest api. If undefined the keystore provided with the heritrix3 bundler is used.
*/
public static String HERITRIX3_CERTIFICATE = "settings.harvester.harvesting.heritrix3.certificate";
/**
* <b>settings.harvester.harvesting.heritrix.certificatePassword</b>Points to the password to use for connection to the
* Heritrix3 rest api.
*/
public static String HERITRIX3_CERTIFICATE_PASSWORD = "settings.harvester.harvesting.heritrix3.certificatePassword";
/**
* <b>settings.harvester.harvesting.monitor.tempPath</b>: The directory used to cache the h3 crawllogs.
* Default value: cached_crawllogs
*/
public static String HERITRIX3_MONITOR_TEMP_PATH = "settings.harvester.harvesting.monitor.tempPath";
}