@Properties(value={@Property(name="hc.name",label="Name",description="Name of this health check."),@Property(name="hc.tags",unbounded=ARRAY,label="Tags",description="List of tags for this health check, used to select subsets of health checks for execution e.g. by a composite health check."),@Property(name="hc.mbean.name",label="MBean Name",description="Name of the MBean to create for this health check. If empty, no MBean is registered.")}) @Service(value=HealthCheck.class) public class JmxAttributeHealthCheck extends Object implements HealthCheck
HealthCheck
that checks a single JMX attributeModifier and Type | Field and Description |
---|---|
static String |
PROP_ATTRIBUTE_NAME |
static String |
PROP_CONSTRAINT |
static String |
PROP_OBJECT_NAME |
ASYNC_CRON_EXPRESSION, MBEAN_NAME, NAME, TAGS
Constructor and Description |
---|
JmxAttributeHealthCheck() |
@Property(label="Check MBean Name", description="The name of the MBean to check by this health check.") public static final String PROP_OBJECT_NAME
@Property(label="Check Attribute Name", description="The name of the MBean attribute to check by this health check.") public static final String PROP_ATTRIBUTE_NAME
@Property(label="Check Attribute Constraint", description="Constraint on the MBean attribute value.") public static final String PROP_CONSTRAINT
public Result execute()
HealthCheck
Result
This is meant to execute quickly, access to external
systems, for example, should be managed asynchronously.execute
in interface HealthCheck
Copyright © 2013–2014 The Apache Software Foundation. All rights reserved.