Commit Graph

489 Commits

Author SHA1 Message Date
Karsten Loesing
a57b1f7698 Update to latest metrics-base. 2017-03-14 09:29:07 +01:00
Karsten Loesing
b1ea641627 Add tutorial link and examples. 2017-03-13 20:18:21 +01:00
Karsten Loesing
5b1db5d72b Bump version to 1.6.0-dev. 2017-02-17 16:45:13 +01:00
Karsten Loesing
10042d3ce2 Prepare for 1.6.0 release. 2017-02-17 16:20:41 +01:00
Karsten Loesing
880c6036a3 Tweak Javadocs. 2017-02-17 16:20:41 +01:00
Karsten Loesing
0502046462 Deprecate three classes using HttpURLConnection.
Fixes #20323.
2017-02-17 09:17:54 +01:00
iwakeh
b3d4ff1738 Only create javadoc for api, implements part of task-21469. 2017-02-15 14:00:19 +01:00
Karsten Loesing
110cb01250 Parse "shared-rand-.*" lines in consensuses and votes. 2017-02-14 15:29:33 +01:00
Karsten Loesing
2bcd6bb0e4 Parse new protocol versions lines. 2017-02-14 15:29:27 +01:00
iwakeh
74ee2145ee Make the reader thread a daemon thread. 2017-02-01 16:15:04 +01:00
Karsten Loesing
8d09f56568 Avoid deleting extraneous local descriptor files.
DescriptorIndexCollector deletes descriptor files from a previous or
concurrent collect run if it doesn't collect those files itself.  This
is unexpected behavior and differs from what DescriptorCollectorImpl
does.

Fixes #20525.
2017-01-31 17:48:09 +01:00
Karsten Loesing
c3079ae2ec Remove 604 checkstyle complaints.
Resolves #21144.
2017-01-25 11:27:09 +01:00
Karsten Loesing
ed26984902 Update copyright. 2017-01-13 16:47:42 +01:00
Karsten Loesing
65b7327a82 Update to latest metrics-base. 2017-01-05 15:35:44 +01:00
iwakeh
b7c236e0fb Added changelog entry. 2017-01-05 15:35:44 +01:00
iwakeh
5b75c254ab Added development description. 2017-01-05 15:35:44 +01:00
iwakeh
e8df8cf6f2 Implements task-20596: use metrics-base and reduced build.xml,
added bootstrap script.

Removed obsolete metrics_checks.xml and made bootstrap-development.sh
executable.

Only add metrics-lib class files to release jar.
2017-01-05 15:35:32 +01:00
iwakeh
fa2d227527 Make tests pass again. Gson demands no-args constructors. 2017-01-05 15:33:15 +01:00
Karsten Loesing
9a61983055 Log more, throw fewer RuntimeExceptions. 2017-01-05 10:56:58 +01:00
hiromipaw
d1ab93ba98 Update license 2017-01-03 10:04:03 +01:00
iwakeh
3e37f25eb2 Added test and cure for corrupted history file.
In that case a warning is logged and parsing continued.

Warning makes sense, as it could be due to problems with the
file system, which an operator can do something about.
2016-12-20 09:02:50 +01:00
Karsten Loesing
2f9c942ca1 Add tests for descriptor reader. 2016-12-20 09:02:49 +01:00
iwakeh
f0db82ad75 Some read/write modernization of DescriptorReaderImpl. 2016-12-20 09:02:44 +01:00
Karsten Loesing
56840df195 Add methods for loading and saving a history file.
The history file implementation in `DescriptorReader` writes the
history file passed in `setExcludeFiles()` immediately after reading
and parsing the last descriptor and putting it into the queue,
regardless of whether the application has finished processing those
descriptors.

If the application fails after the history file is written, it may not
be able to process descriptors in the next execution that have still
been in the queue at the time of failing.

This commit deprecates the `setExcludeFiles()` method and replaces it
by a `setHistoryFile()` and a `saveHistoryFile()` method.
Applications would use `setHistoryFile()` before starting to read
descriptors, process all descriptors, perform any cleaning up, and
then call `saveHistoryFile()`.

Implements #20521.
2016-12-20 09:02:40 +01:00
hiromipaw
ee4d69d4bf Revert "Prepare metrics-lib for jenkins build. Exclude checks when building in jenkins. Add clean task as dep for test."
This reverts commit d154982e5a.
2016-11-18 16:27:10 +01:00
hiromipaw
d154982e5a Prepare metrics-lib for jenkins build. Exclude checks when building in jenkins. Add clean task as dep for test. 2016-11-15 13:50:34 +01:00
Karsten Loesing
dd4b395357 Bump version to 1.5.0-dev. 2016-10-20 11:01:16 +02:00
Karsten Loesing
fb74059ae3 Prepare for 1.5.0 release. 2016-10-19 21:21:48 +02:00
iwakeh
421f38eeb9 Implements task-20039: DescriptorIndexCollector now accepts a URL path.
If only a base URL is given, try to retrieve 'index/index.json' from
the given host URL.
2016-10-19 16:44:43 +02:00
iwakeh
24a8d1d5f6 Added checkstyle unused imports module. 2016-10-19 16:44:43 +02:00
iwakeh
3acc8fe61d Logs the served implementation. Implements task-20334. 2016-10-19 16:44:43 +02:00
iwakeh
d00b8ac09b Changed 'descriptor.collector' default value to DescriptorIndexCollector.
Implements task-20404.
2016-10-19 16:44:39 +02:00
Karsten Loesing
f7f56dd83d Avoid running into an IOException and logging it.
When we recently switched from System.err printing to slf4j logging,
we started logging an IOException that we shouldn't be running into
and that we simply ignored before.  This exception gets thrown when
DescriptorReaderImpl attempts to read a parse history file that
doesn't exist (yet).  We should simply check whether that files exists
before attempting to read it.

Fixes #20320.
2016-10-09 08:51:55 +02:00
Karsten Loesing
38b18e3520 Bump version to 1.4.0-dev. 2016-08-31 11:02:14 +02:00
Karsten Loesing
adf4a67702 Prepare for 1.4.0 release. 2016-08-31 10:57:06 +02:00
iwakeh
799fc259b2 Added hints about new jar location to README.md and CHANGELOG.md. 2016-08-31 10:28:49 +02:00
iwakeh
d65b26e0db Added more inline comments and extended tests. 2016-08-30 16:32:09 +02:00
iwakeh
9cdce8c53e Corrected test file size. 2016-08-30 16:32:05 +02:00
Karsten Loesing
c4076089f2 Tweak change log for upcoming 1.4.0 release. 2016-08-24 22:10:14 +02:00
iwakeh
f95a347e93 Download using index.json; implements task-19791.
Added tests and adapted coverage checks.
2016-08-24 21:52:38 +02:00
iwakeh
e9c0731f39 Increased coverage for DescriptorSourceFactory from zero to 100%. 2016-08-23 21:51:11 +02:00
iwakeh
7a0e1097af Adapted build.xml to use Gson and tweaked some tasks and paths. 2016-08-23 21:51:05 +02:00
Karsten Loesing
f120e7f325 Add change log entry for #19643. 2016-08-22 11:27:08 +02:00
iwakeh
1dab40d450 Added slf4j for logging support; implements #19643.
Tests use logback; runtime will use whatever slf4j implementation supplied.
Also removed TODOs about testing, b/c this is noticeable in our coverage report.
2016-08-22 11:25:44 +02:00
Karsten Loesing
2ef622a0d3 Include resources in tarball.
Implements #19893.
2016-08-22 10:38:04 +02:00
iwakeh
7ee3038e0c Make checkstyle task fail, when new warnings appear. 2016-08-02 20:10:37 +02:00
Karsten Loesing
c68b09070a Bump version to 1.3.1-dev. 2016-08-01 14:48:57 +02:00
Karsten Loesing
ec268b51e3 Prepare for 1.3.1 release. 2016-08-01 14:38:36 +02:00
Karsten Loesing
6ac45212ce Update unit tests for 17943b0. 2016-08-01 14:38:25 +02:00
Karsten Loesing
6aa37108e2 Add change log entry for 17943b0. 2016-08-01 14:26:28 +02:00