Package org.apache.sling.hc.util
Class HealthCheckMetadata
- java.lang.Object
-
- org.apache.sling.hc.util.HealthCheckMetadata
-
@Deprecated @ProviderType public class HealthCheckMetadata extends java.lang.Object
Deprecated.This class helps retrieving meta data information about a health check service.- Since:
- 1.1
-
-
Constructor Summary
Constructors Constructor Description HealthCheckMetadata(ServiceReference ref)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Deprecated.java.lang.String
getAsyncCronExpression()
Deprecated.Return the cron expression used for asynchronous execution.java.lang.String
getMBeanName()
Deprecated.The mbean name of the health check as defined through theHealthCheck.MBEAN_NAME
property.java.lang.String
getName()
Deprecated.The name of the health check as defined through theHealthCheck.NAME
property.java.lang.Long
getResultCacheTtlInMs()
Deprecated.TTL for the result cache in ms.long
getServiceId()
Deprecated.Return the service id.ServiceReference
getServiceReference()
Deprecated.Get the service reference.java.util.List<java.lang.String>
getTags()
Deprecated.Return the list of defined tags for this check as set throughtags
java.lang.String
getTitle()
Deprecated.The title of the health check.java.lang.Long
getWarningsStickForMinutes()
Deprecated.Make warnings stick for the given amount of time.int
hashCode()
Deprecated.java.lang.String
toString()
Deprecated.
-
-
-
Constructor Detail
-
HealthCheckMetadata
public HealthCheckMetadata(ServiceReference ref)
Deprecated.
-
-
Method Detail
-
getName
public java.lang.String getName()
Deprecated.The name of the health check as defined through theHealthCheck.NAME
property.- Returns:
- The name or
null
-
getMBeanName
public java.lang.String getMBeanName()
Deprecated.The mbean name of the health check as defined through theHealthCheck.MBEAN_NAME
property.- Returns:
- The mbean name or
null
-
getTitle
public java.lang.String getTitle()
Deprecated.The title of the health check. If the health check has a name, this is used as the title. Otherwise the description, PID and service ID are checked for values.
-
getTags
public java.util.List<java.lang.String> getTags()
Deprecated.Return the list of defined tags for this check as set throughtags
- Returns:
-
getAsyncCronExpression
public java.lang.String getAsyncCronExpression()
Deprecated.Return the cron expression used for asynchronous execution.
-
getServiceId
public long getServiceId()
Deprecated.Return the service id.
-
getServiceReference
public ServiceReference getServiceReference()
Deprecated.Get the service reference.
-
getResultCacheTtlInMs
public java.lang.Long getResultCacheTtlInMs()
Deprecated.TTL for the result cache in ms.- Returns:
- TTL for the result cache or
null
if not configured.
-
getWarningsStickForMinutes
public java.lang.Long getWarningsStickForMinutes()
Deprecated.Make warnings stick for the given amount of time.- Returns:
- Time to make warn results sticky in minutes.
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-