You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by gh...@apache.org on 2020/07/10 15:00:21 UTC
[felix-dev] branch master updated: FELIX-6250 Documentation dynamic
mode and logging
This is an automated email from the ASF dual-hosted git repository.
ghenzler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/felix-dev.git
The following commit(s) were added to refs/heads/master by this push:
new 77a69c0 FELIX-6250 Documentation dynamic mode and logging
77a69c0 is described below
commit 77a69c0fff4852ea1de498ea3bb128af01be7189
Author: georg.henzler <ge...@netcentric.biz>
AuthorDate: Fri Jul 10 17:00:08 2020 +0200
FELIX-6250 Documentation dynamic mode and logging
---
healthcheck/README.md | 2 ++
.../java/org/apache/felix/hc/core/impl/monitor/HealthCheckMonitor.java | 1 -
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/healthcheck/README.md b/healthcheck/README.md
index cc729ac..2007d5f 100644
--- a/healthcheck/README.md
+++ b/healthcheck/README.md
@@ -275,6 +275,8 @@ Property | Type | Default | Description
`registerUnhealthyMarkerService` | boolean | false | For the case a given tag/name is **un**healthy, will register a service `org.apache.felix.hc.api.condition.Unhealthy` with property tag=<tagname> (or name=<hc.name>) that other services can depend on
`treatWarnAsHealthy` | boolean | true | `WARN` usually means [the system is usable](#semantic-meaning-of-health-check-results), hence WARN is treated as healthy by default. When set to false `WARN` is treated as `Unhealthy`
`sendEvents` | enum `NONE`, `STATUS_CHANGES` or `ALL` | `STATUS_CHANGES` | Whether to send events for health check status changes. See [below](#osgi-events-for-health-check-status-changes) for details.
+`logResults` | enum `NONE`, `STATUS_CHANGES` or `ALL` | `NONE ` | Whether to log the result of the monitor to the regular log file
+`isDynamic` | boolean | false | In dynamic mode all checks for names/tags are monitored individually (this means events are sent/services registered for name only, never for given tags). This mode allows to use `*` in tags to query for all health checks in system. It is also possible to query for all except certain tags by using `-`, e.g. by configuring the values `*`, `-tag1` and `-tag2` for `tags`.
### Marker Service to depend on a health status in SCR Components
diff --git a/healthcheck/core/src/main/java/org/apache/felix/hc/core/impl/monitor/HealthCheckMonitor.java b/healthcheck/core/src/main/java/org/apache/felix/hc/core/impl/monitor/HealthCheckMonitor.java
index 3dc6903..a1529c1 100644
--- a/healthcheck/core/src/main/java/org/apache/felix/hc/core/impl/monitor/HealthCheckMonitor.java
+++ b/healthcheck/core/src/main/java/org/apache/felix/hc/core/impl/monitor/HealthCheckMonitor.java
@@ -21,7 +21,6 @@ import static java.util.stream.Collectors.toList;
import java.util.ArrayList;
import java.util.Arrays;
-import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;