mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
21.47.2013 d13f4bb71bcd9e903cd87e6f2625a9f8dc1b5ed6
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, May 21, 2013 14:47 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, May 21, 2013 14:47 +0200
commitd13f4bb71bcd9e903cd87e6f2625a9f8dc1b5ed6
tree 32834277ff4e92d2f059aef4c7cff630ed14a06a tree | zip | gz
parent 24adcc2ab34db36272264c29ecb56ef2f2991d91 view | diff
OPENDJ-902 (CR-1702) Add connectionID to the HTTP access log + move to extended log format
OPENDJ-858 (CR-1702) Add stats tracking to HTTP client connections



In HTTP access log, changed the name of the non standard "datetime" field to "x-datetime".
Added the "x-etime" field that outputs as a number.
Added validation for the log format that outputs error messages.


FileBasedHTTPAccessLogPublisherConfiguration.xml, FileBasedHTTPAccessLogPublisherConfiguration.properties:
Renamed the "datetime" field to "x-datetime" + added the "x-etime" field.
Improved the description of the ds-cfg-log-format.

TextHTTPAccessLogPublisher.java, config.properties:
Extracted constants for all supported field names.
Added ALL_SUPPORTED_FIELDS constant.
Changed logFormatFields instance member from String[] to List<String>.
Added validateLogFormat() which can output new error messages and called it from applyConfigurationChange() and initializeLogPublisher().
Added subtract().

HTTPClientConnection.java, HTTPRequestInfo.java:
Added instance member totalProcessingTime.
In sendResponse(), added to the totalProcessingTime + extracted method getProcessingTime().
Added getTotalProcessingTime().
6 files modified
211 ■■■■ changed files
opends/src/admin/defn/org/opends/server/admin/std/FileBasedHTTPAccessLogPublisherConfiguration.xml 29 ●●●●● diff | view | raw | blame | history
opends/src/admin/messages/FileBasedHTTPAccessLogPublisherCfgDefn.properties 2 ●●● diff | view | raw | blame | history
opends/src/messages/messages/config.properties 5 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/loggers/HTTPRequestInfo.java 7 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/loggers/TextHTTPAccessLogPublisher.java 137 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/protocols/http/HTTPClientConnection.java 31 ●●●● diff | view | raw | blame | history