@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=org.apache.sling.hc.api.HealthCheck.class) public class JmxAttributeHealthCheck extends Object implements org.apache.sling.hc.api.HealthCheck
HealthCheck that checks a single JMX attribute| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_ATTRIBUTE_NAME |
static String |
PROP_CONSTRAINT |
static String |
PROP_OBJECT_NAME |
| Constructor and Description |
|---|
JmxAttributeHealthCheck() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(Map<String,Object> properties) |
org.apache.sling.hc.api.Result |
execute() |
@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
Copyright © 2013–2017 The Apache Software Foundation. All rights reserved.