Class AgentPluginsRegistryImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.agent.AgentPluginsRegistryImpl
-
- All Implemented Interfaces:
AgentPluginsRegistry
public class AgentPluginsRegistryImpl extends Object implements AgentPluginsRegistry
-
-
Constructor Summary
Constructors Constructor Description AgentPluginsRegistryImpl(AgentPluginsHolder pluginsHolder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
registerAgentPlugin(String pluginPartName, File file)
Registers agent plugin taken from it's .zip file.void
registerAgentPlugin(ServerPluginInfo info)
void
registerNotLoadedAgentPlugin(ServerPluginInfo info)
Register agent part of not loaded on server plugin.void
replaceAgentPluginIfExists(ServerPluginInfo info)
Replace old plugin info with new plugin info.void
unregisterAgentPlugin(String pluginName)
-
-
-
Constructor Detail
-
AgentPluginsRegistryImpl
public AgentPluginsRegistryImpl(@NotNull AgentPluginsHolder pluginsHolder)
-
-
Method Detail
-
registerAgentPlugin
public void registerAgentPlugin(@NotNull String pluginPartName, @NotNull File file) throws RegisterAgentPluginException
Description copied from interface:AgentPluginsRegistry
Registers agent plugin taken from it's .zip file. NOTE: if some new plugin is published after {@see BuildServerListener#serverStartup()} event, unnecessary agent upgrade may cause as a race condition effect.- Specified by:
registerAgentPlugin
in interfaceAgentPluginsRegistry
- Parameters:
pluginPartName
- plugin part namefile
- path to agent .zip plugin- Throws:
RegisterAgentPluginException
- if agent plugin with same name was allredy registered
-
registerAgentPlugin
public void registerAgentPlugin(@NotNull ServerPluginInfo info) throws RegisterAgentPluginException
- Specified by:
registerAgentPlugin
in interfaceAgentPluginsRegistry
- Parameters:
info
- plugin info- Throws:
RegisterAgentPluginException
-
registerNotLoadedAgentPlugin
public void registerNotLoadedAgentPlugin(@NotNull ServerPluginInfo info) throws RegisterAgentPluginException
Description copied from interface:AgentPluginsRegistry
Register agent part of not loaded on server plugin.- Specified by:
registerNotLoadedAgentPlugin
in interfaceAgentPluginsRegistry
- Parameters:
info
- plugin info- Throws:
RegisterAgentPluginException
-
replaceAgentPluginIfExists
public void replaceAgentPluginIfExists(@NotNull ServerPluginInfo info)
Description copied from interface:AgentPluginsRegistry
Replace old plugin info with new plugin info. Method does nothing if plugin with given name was not registered earlier- Specified by:
replaceAgentPluginIfExists
in interfaceAgentPluginsRegistry
- Parameters:
info
- plugin info
-
unregisterAgentPlugin
public void unregisterAgentPlugin(@NotNull String pluginName)
- Specified by:
unregisterAgentPlugin
in interfaceAgentPluginsRegistry
-
-