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

Jean-Noel Rouvignac
21.47.2013 fdf45a4e5bac10be08f8387749caa737feead9fa
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
commitfdf45a4e5bac10be08f8387749caa737feead9fa
tree 44dfe4a2a1dfb0fd706e308beb485cc64adcceca tree | zip | gz
parent 1f5e914e5379b346e1c257278ee8e0348e59c98a 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
opendj-sdk/opends/src/admin/defn/org/opends/server/admin/std/FileBasedHTTPAccessLogPublisherConfiguration.xml 29 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/admin/messages/FileBasedHTTPAccessLogPublisherCfgDefn.properties 2 ●●● diff | view | raw | blame | history
opendj-sdk/opends/src/messages/messages/config.properties 5 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/loggers/HTTPRequestInfo.java 7 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/loggers/TextHTTPAccessLogPublisher.java 137 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/protocols/http/HTTPClientConnection.java 31 ●●●● diff | view | raw | blame | history