Class ConfigWatcher
- java.lang.Object
-
- com.redhat.devtools.intellij.common.utils.ConfigWatcher
-
- All Implemented Interfaces:
java.lang.Runnable
public class ConfigWatcher extends java.lang.Object implements java.lang.Runnable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConfigWatcher.Listener
-
Field Summary
Fields Modifier and Type Field Description protected ConfigWatcher.Listenerlistener
-
Constructor Summary
Constructors Constructor Description ConfigWatcher(java.lang.String config, ConfigWatcher.Listener listener)ConfigWatcher(java.nio.file.Path config, ConfigWatcher.Listener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisConfigPath(java.nio.file.WatchEvent<?> event)protected io.fabric8.kubernetes.api.model.ConfigloadConfig()protected java.nio.file.WatchServicenewWatchService()voidrun()
-
-
-
Field Detail
-
listener
protected ConfigWatcher.Listener listener
-
-
Constructor Detail
-
ConfigWatcher
public ConfigWatcher(java.lang.String config, ConfigWatcher.Listener listener)
-
ConfigWatcher
public ConfigWatcher(java.nio.file.Path config, ConfigWatcher.Listener listener)
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
loadConfig
protected io.fabric8.kubernetes.api.model.Config loadConfig()
-
newWatchService
protected java.nio.file.WatchService newWatchService() throws java.io.IOException- Throws:
java.io.IOException
-
isConfigPath
protected boolean isConfigPath(java.nio.file.WatchEvent<?> event)
-
-