Class ServiceCriterion
java.lang.Object
org.sentrysoftware.maven.metricshub.connector.producer.model.criteria.AbstractCriterion
org.sentrysoftware.maven.metricshub.connector.producer.model.criteria.ServiceCriterion
Represents a criterion for filtering based on a service presence.
- See Also:
-
Constructor Summary
ConstructorDescriptionServiceCriterion
(com.fasterxml.jackson.databind.JsonNode criterion) Constructs ServiceCriterion with the specified JSON criterion. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ICriterionVisitor visitor) Accepts the given visitor.getName()
Gets the name from the current service criterion, ornull
if not present.
-
Constructor Details
-
ServiceCriterion
public ServiceCriterion(com.fasterxml.jackson.databind.JsonNode criterion) Constructs ServiceCriterion with the specified JSON criterion.- Parameters:
criterion
- The JSON criterion for service check.
-
-
Method Details
-
accept
Description copied from class:AbstractCriterion
Accepts the given visitor.- Specified by:
accept
in classAbstractCriterion
- Parameters:
visitor
- The visitor class with its specific business logic.
-
getName
Gets the name from the current service criterion, ornull
if not present.- Returns:
- The service name from the criterion, or
null
if not present.
-