Class PluginPackagesWatcherImpl
- java.lang.Object
-
- jetbrains.buildServer.web.plugins.impl.PluginPackagesWatcherImpl
-
- All Implemented Interfaces:
PluginPackagesWatcher
public class PluginPackagesWatcherImpl extends Object implements PluginPackagesWatcher
-
-
Constructor Summary
Constructors Constructor Description PluginPackagesWatcherImpl(EventDispatcher<BuildServerListener> events, ServerPluginUnpacker serverPluginUnpacker, PluginPackagesEventDispatcher pluginPackagesEventDispatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()voidrunActionWithDisabledObserver(File root, Runnable action)Performs an action with disabled file observer if the root parameter is watched.voidwatchPluginsRootForUpdates(File root, File extractFolder)Starts watching root directory for updates
-
-
-
Constructor Detail
-
PluginPackagesWatcherImpl
public PluginPackagesWatcherImpl(@NotNull EventDispatcher<BuildServerListener> events, @NotNull ServerPluginUnpacker serverPluginUnpacker, @NotNull PluginPackagesEventDispatcher pluginPackagesEventDispatcher)
-
-
Method Detail
-
init
public void init()
-
runActionWithDisabledObserver
public void runActionWithDisabledObserver(@NotNull File root, @NotNull Runnable action)Description copied from interface:PluginPackagesWatcherPerforms an action with disabled file observer if the root parameter is watched. Calls action directly otherwise. Should be used when modifying packages by the code.- Specified by:
runActionWithDisabledObserverin interfacePluginPackagesWatcher- Parameters:
root- Directory with plugin packagesaction- Action to perform
-
watchPluginsRootForUpdates
public void watchPluginsRootForUpdates(@NotNull File root, @NotNull File extractFolder)Description copied from interface:PluginPackagesWatcherStarts watching root directory for updates- Specified by:
watchPluginsRootForUpdatesin interfacePluginPackagesWatcher- Parameters:
root- Directory with plugin packagesextractFolder- Directory with unpacked packages. Will be passed toPluginPackagesListenerevents.
-
-