java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.monitor.fs.FsHealthService
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- LifecycleComponent,- Releasable,- NodeHealthService
Runs periodically and attempts to create a temp file to see if the filesystem is writable. If not then it marks the path as unhealthy.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionFields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponentlifecycle
- 
Constructor SummaryConstructorsConstructorDescriptionFsHealthService(Settings settings, ClusterSettings clusterSettings, ThreadPool threadPool, NodeEnvironment nodeEnv) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddoClose()protected voiddoStart()protected voiddoStop()voidsetEnabled(boolean enabled) voidsetSlowPathLoggingThreshold(TimeValue slowPathLoggingThreshold) Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponentaddLifecycleListener, close, lifecycleState, start, stop
- 
Field Details- 
ENABLED_SETTING
- 
REFRESH_INTERVAL_SETTING
- 
SLOW_PATH_LOGGING_THRESHOLD_SETTING
 
- 
- 
Constructor Details- 
FsHealthServicepublic FsHealthService(Settings settings, ClusterSettings clusterSettings, ThreadPool threadPool, NodeEnvironment nodeEnv) 
 
- 
- 
Method Details- 
doStartprotected void doStart()- Specified by:
- doStartin class- AbstractLifecycleComponent
 
- 
doStopprotected void doStop()- Specified by:
- doStopin class- AbstractLifecycleComponent
 
- 
doCloseprotected void doClose()- Specified by:
- doClosein class- AbstractLifecycleComponent
 
- 
setEnabledpublic void setEnabled(boolean enabled) 
- 
setSlowPathLoggingThreshold
- 
getHealth- Specified by:
- getHealthin interface- NodeHealthService
 
 
-