Class DefaultResourceStatusDelegate
java.lang.Object
com.inductiveautomation.ignition.gateway.config.DefaultResourceStatusDelegate
- All Implemented Interfaces:
ResourceStatusDelegate
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.inductiveautomation.ignition.gateway.config.ResourceStatusDelegate
NONE
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultResourceStatusDelegate
(List<org.apache.commons.lang3.tuple.Pair<String, String>> categoryMetrics, List<org.apache.commons.lang3.tuple.Pair<String, String>> instanceMetrics, List<org.apache.commons.lang3.tuple.Pair<String, String>> categoryHealthChecks, List<org.apache.commons.lang3.tuple.Pair<String, String>> instanceHealthChecks) -
Method Summary
Modifier and TypeMethodDescriptiongetCategoryHealthChecks
(com.codahale.metrics.health.HealthCheckRegistry registry) A set of healthchecks relevant to all resources of this typegetCategoryMetrics
(com.codahale.metrics.MetricRegistry registry) A set of diagnostic metrics relevant to all resources of this type.getInstanceHealthChecks
(com.codahale.metrics.health.HealthCheckRegistry registry, ResourcePath resource) A set of healthchecks relevant to the specific resourcegetInstanceMetrics
(com.codahale.metrics.MetricRegistry registry, ResourcePath resource) A set of diagnostic metrics relevant to the specific resource
-
Constructor Details
-
DefaultResourceStatusDelegate
public DefaultResourceStatusDelegate(@Nonnull List<org.apache.commons.lang3.tuple.Pair<String, String>> categoryMetrics, @Nonnull List<org.apache.commons.lang3.tuple.Pair<String, String>> instanceMetrics, @Nonnull List<org.apache.commons.lang3.tuple.Pair<String, String>> categoryHealthChecks, @Nonnull List<org.apache.commons.lang3.tuple.Pair<String, String>> instanceHealthChecks)
-
-
Method Details
-
getCategoryHealthCheckAliases
- Specified by:
getCategoryHealthCheckAliases
in interfaceResourceStatusDelegate
-
getInstanceHealthCheckAliases
- Specified by:
getInstanceHealthCheckAliases
in interfaceResourceStatusDelegate
-
getCategoryMetricAliases
- Specified by:
getCategoryMetricAliases
in interfaceResourceStatusDelegate
-
getInstanceMetricAliases
- Specified by:
getInstanceMetricAliases
in interfaceResourceStatusDelegate
-
getCategoryMetrics
public SortedMap<String,IdentifiedMetric> getCategoryMetrics(com.codahale.metrics.MetricRegistry registry) Description copied from interface:ResourceStatusDelegate
A set of diagnostic metrics relevant to all resources of this type.- Specified by:
getCategoryMetrics
in interfaceResourceStatusDelegate
- Parameters:
registry
- The shared metric registry for the gateway- Returns:
- A set of metrics relevant to all resources of this type
-
getCategoryHealthChecks
public SortedMap<String,IdentifiedHealthCheckResult> getCategoryHealthChecks(com.codahale.metrics.health.HealthCheckRegistry registry) Description copied from interface:ResourceStatusDelegate
A set of healthchecks relevant to all resources of this type- Specified by:
getCategoryHealthChecks
in interfaceResourceStatusDelegate
-
getInstanceHealthChecks
public SortedMap<String,IdentifiedHealthCheckResult> getInstanceHealthChecks(com.codahale.metrics.health.HealthCheckRegistry registry, ResourcePath resource) Description copied from interface:ResourceStatusDelegate
A set of healthchecks relevant to the specific resource- Specified by:
getInstanceHealthChecks
in interfaceResourceStatusDelegate
-
getInstanceMetrics
public SortedMap<String,IdentifiedMetric> getInstanceMetrics(com.codahale.metrics.MetricRegistry registry, ResourcePath resource) Description copied from interface:ResourceStatusDelegate
A set of diagnostic metrics relevant to the specific resource- Specified by:
getInstanceMetrics
in interfaceResourceStatusDelegate
- Parameters:
registry
- The shared metric registry for the gatewayresource
- The resource to get metrics for- Returns:
- A set of metrics relevant to the specific resource
-