blob: dbf79d2ae6afe6f07022c7e771827f0c96cdf2bc [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The SF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.apache.sling.hc.core.impl.executor;
import org.osgi.service.metatype.annotations.AttributeDefinition;
import org.osgi.service.metatype.annotations.ObjectClassDefinition;
@ObjectClassDefinition(
name = "Apache Sling Health Check Executor",
description = "Runs health checks for a given list of tags in parallel."
)
@interface HealthCheckExecutorImplConfiguration {
long TIMEOUT_DEFAULT_MS = 2000L;
long LONGRUNNING_FUTURE_THRESHOLD_CRITICAL_DEFAULT_MS = 1000L * 60 * 5;
long RESULT_CACHE_TTL_DEFAULT_MS = 1000L * 2;
@AttributeDefinition(
name = "Timeout",
description = "Timeout in ms until a check is marked as timed out"
)
long timeoutInMs() default TIMEOUT_DEFAULT_MS;
@AttributeDefinition(
name = "Timeout threshold for CRITICAL",
description = "Threshold in ms until a check is marked as 'exceedingly' timed out and will marked CRITICAL instead of WARN only"
)
long longRunningFutureThresholdForCriticalMs() default LONGRUNNING_FUTURE_THRESHOLD_CRITICAL_DEFAULT_MS;
@AttributeDefinition(
name = "Results Cache TTL in Ms",
description = "Result Cache time to live - results will be cached for the given time"
)
long resultCacheTtlInMs() default RESULT_CACHE_TTL_DEFAULT_MS;
}