@Singleton
public class DataSourceMetadataLoaderHealthCheck
extends com.codahale.metrics.health.HealthCheck
Constructor and Description |
---|
DataSourceMetadataLoaderHealthCheck(DataSourceMetadataLoadTask loader,
long executionWindow)
Creates a health check for a datasource metadata loader.
|
Modifier and Type | Method and Description |
---|---|
com.codahale.metrics.health.HealthCheck.Result |
check() |
public DataSourceMetadataLoaderHealthCheck(DataSourceMetadataLoadTask loader, long executionWindow)
loader
- Datasource metadata loader.executionWindow
- The duration within which a loader must run successfully to be considered healthy.Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.