Package org.elasticsearch.monitor.fs
Class FsHealthService
java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.monitor.fs.FsHealthService
- All Implemented Interfaces:
Closeable,AutoCloseable,LifecycleComponent,org.elasticsearch.core.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 Summary
FieldsModifier and TypeFieldDescriptionstatic Setting<org.elasticsearch.core.TimeValue>static Setting<org.elasticsearch.core.TimeValue>Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle -
Constructor Summary
ConstructorsConstructorDescriptionFsHealthService(Settings settings, ClusterSettings clusterSettings, ThreadPool threadPool, NodeEnvironment nodeEnv) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoClose()protected voiddoStart()protected voiddoStop()voidsetEnabled(boolean enabled)voidsetSlowPathLoggingThreshold(org.elasticsearch.core.TimeValue slowPathLoggingThreshold)Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
-
Field Details
-
ENABLED_SETTING
-
REFRESH_INTERVAL_SETTING
-
SLOW_PATH_LOGGING_THRESHOLD_SETTING
-
-
Constructor Details
-
FsHealthService
public FsHealthService(Settings settings, ClusterSettings clusterSettings, ThreadPool threadPool, NodeEnvironment nodeEnv)
-
-
Method Details
-
doStart
protected void doStart()- Specified by:
doStartin classAbstractLifecycleComponent
-
doStop
protected void doStop()- Specified by:
doStopin classAbstractLifecycleComponent
-
doClose
protected void doClose()- Specified by:
doClosein classAbstractLifecycleComponent
-
setEnabled
public void setEnabled(boolean enabled) -
setSlowPathLoggingThreshold
public void setSlowPathLoggingThreshold(org.elasticsearch.core.TimeValue slowPathLoggingThreshold) -
getHealth
- Specified by:
getHealthin interfaceNodeHealthService
-