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 voidregisterAgentPlugin(String pluginPartName, File file)Registers agent plugin taken from it's .zip file.voidregisterAgentPlugin(ServerPluginInfo info)voidregisterNotLoadedAgentPlugin(ServerPluginInfo info)Register agent part of not loaded on server plugin.voidreplaceAgentPluginIfExists(ServerPluginInfo info)Replace old plugin info with new plugin info.voidunregisterAgentPlugin(String pluginName)
-
-
-
Constructor Detail
-
AgentPluginsRegistryImpl
public AgentPluginsRegistryImpl(@NotNull AgentPluginsHolder pluginsHolder)
-
-
Method Detail
-
registerAgentPlugin
public void registerAgentPlugin(@NotNull String pluginPartName, @NotNull File file) throws RegisterAgentPluginExceptionDescription copied from interface:AgentPluginsRegistryRegisters 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:
registerAgentPluginin 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:
registerAgentPluginin interfaceAgentPluginsRegistry- Parameters:
info- plugin info- Throws:
RegisterAgentPluginException
-
registerNotLoadedAgentPlugin
public void registerNotLoadedAgentPlugin(@NotNull ServerPluginInfo info) throws RegisterAgentPluginExceptionDescription copied from interface:AgentPluginsRegistryRegister agent part of not loaded on server plugin.- Specified by:
registerNotLoadedAgentPluginin interfaceAgentPluginsRegistry- Parameters:
info- plugin info- Throws:
RegisterAgentPluginException
-
replaceAgentPluginIfExists
public void replaceAgentPluginIfExists(@NotNull ServerPluginInfo info)Description copied from interface:AgentPluginsRegistryReplace old plugin info with new plugin info. Method does nothing if plugin with given name was not registered earlier- Specified by:
replaceAgentPluginIfExistsin interfaceAgentPluginsRegistry- Parameters:
info- plugin info
-
unregisterAgentPlugin
public void unregisterAgentPlugin(@NotNull String pluginName)- Specified by:
unregisterAgentPluginin interfaceAgentPluginsRegistry
-
-