From e7204cbcf6af61856330cffc541b6f5c78476a09 Mon Sep 17 00:00:00 2001 From: Filip Krzywka Date: Thu, 24 Jan 2019 11:21:26 +0100 Subject: Correct totalConnections metric In previous implementation performed healthcheck on container was counted as client connection, because metric was notified for every TCP channel opened. This was making this metric less useful (to avoid saying "useless" ;) ). - refactored NettyTcpServer trying to extract functions with logic not so strictly related to HV-VES behavior. This also resolves discussions in https://gerrit.onap.org/r/#/c/76274/ - some renames and methods splitting was made in attempt to make code more readable - hv-ves should not count connections from either "127.0.0.1" or "localhost" to his `totalConnections` metric - removed redundant logging by adding new methods to Logger Change-Id: I5f10dac8dac82eafd3b0de92a7ec43f2c23b8c16 Issue-ID: DCAEGEN2-1119 Signed-off-by: Filip Krzywka --- build/hv-collector-analysis/src/main/resources/onap-detekt-config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build/hv-collector-analysis/src') diff --git a/build/hv-collector-analysis/src/main/resources/onap-detekt-config.yml b/build/hv-collector-analysis/src/main/resources/onap-detekt-config.yml index 36f092dd..f8d8b1ee 100644 --- a/build/hv-collector-analysis/src/main/resources/onap-detekt-config.yml +++ b/build/hv-collector-analysis/src/main/resources/onap-detekt-config.yml @@ -116,7 +116,7 @@ complexity: thresholdInObjects: 11 thresholdInEnums: 11 ignoreDeprecated: false - ignorePrivate: true + ignorePrivate: false empty-blocks: active: true -- cgit 1.2.3-korg