Class AgentClassServerImpl
java.lang.Object
com.atlassian.bamboo.agent.classserver.AgentClassServerImpl
- All Implemented Interfaces:
AgentClassServer,org.springframework.beans.factory.Aware,org.springframework.web.context.ServletContextAware
public class AgentClassServerImpl
extends Object
implements AgentClassServer, org.springframework.web.context.ServletContextAware
-
Constructor Summary
ConstructorsConstructorDescriptionAgentClassServerImpl(AgentPluginResolver agentPluginResolver, ClasspathDiscoverer classpathDiscoverer, FrameworkBundlesResolver frameworkBundlesResolver) -
Method Summary
Modifier and TypeMethodDescription@NotNull Map<String,JarDescriptor> @NotNull Map<String,JarDescriptor> @NotNull Map<String,JarDescriptor> @NotNull Map<String,JarDescriptor> getPluginFrameworkBundles(@NotNull Set<FileHashDescriptor> fileHashDescriptors) @NotNull Iterable<com.atlassian.plugin.Plugin>@NotNull Iterable<com.atlassian.plugin.Plugin>@NotNull ClassServerManifest@NotNull ClassServerManifestgetSystemClasspath(@NotNull Set<FileHashDescriptor> fileHashDescriptorsFromAgent) @NotNull ByteSource@NotNull ClassServerManifestgetSystemProvidedPlugins(@NotNull Set<FileHashDescriptor> fileHashDescriptors) @NotNull ClassServerManifestgetUserInstalledPlugins(@NotNull Set<FileHashDescriptor> fileHashDescriptors) voidsetServletContext(javax.servlet.ServletContext servletContext)
-
Constructor Details
-
AgentClassServerImpl
public AgentClassServerImpl(AgentPluginResolver agentPluginResolver, ClasspathDiscoverer classpathDiscoverer, FrameworkBundlesResolver frameworkBundlesResolver)
-
-
Method Details
-
getSystemClasspath
- Specified by:
getSystemClasspathin interfaceAgentClassServer- Returns:
- manifest of all the jars used to bootstrap a remote agent. Includes Plugins installed in WEB-INF/lib.
-
getJarsOnSystemClasspath
- Specified by:
getJarsOnSystemClasspathin interfaceAgentClassServer- Returns:
- jars on system classpath (including P1 plugins).
-
getJarsOfUserInstalledPlugins
- Specified by:
getJarsOfUserInstalledPluginsin interfaceAgentClassServer- Returns:
- jarDescriptors for all the user installed and enabled plugins that are able to run on remote agents
-
getJarsOfSystemProvidedPlugins
- Specified by:
getJarsOfSystemProvidedPluginsin interfaceAgentClassServer- Returns:
- jars on enabled system provided P2 plugins.
-
getJarsOfFrameworkBundle
- Specified by:
getJarsOfFrameworkBundlein interfaceAgentClassServer- Returns:
- jars comprising framework bundle.
-
getSystemClasspath
@NotNull public @NotNull ClassServerManifest getSystemClasspath(@NotNull @NotNull Set<FileHashDescriptor> fileHashDescriptorsFromAgent) - Specified by:
getSystemClasspathin interfaceAgentClassServer- Parameters:
fileHashDescriptorsFromAgent- of the jars that the agent already has locally- Returns:
- manifest of all the jars used to bootstrap a remote agent. Includes Plugins 1 plugins installed in WEB-INF/lib.
-
getUserInstalledPlugins
@NotNull public @NotNull ClassServerManifest getUserInstalledPlugins(@NotNull @NotNull Set<FileHashDescriptor> fileHashDescriptors) - Specified by:
getUserInstalledPluginsin interfaceAgentClassServer- Parameters:
fileHashDescriptors- of the jars that the agent already has locally- Returns:
- jarDescriptors for all the user installed plugins that are able to run on remote agents
-
getSystemProvidedPlugins
@NotNull public @NotNull ClassServerManifest getSystemProvidedPlugins(@NotNull @NotNull Set<FileHashDescriptor> fileHashDescriptors) - Specified by:
getSystemProvidedPluginsin interfaceAgentClassServer- Parameters:
fileHashDescriptors- of the jars that the agent already has locally- Returns:
- jarDescriptors for all the system provided plugins that are able to run on remote agents
-
getPluginFrameworkBundles
public ClassServerManifest getPluginFrameworkBundles(@NotNull @NotNull Set<FileHashDescriptor> fileHashDescriptors) - Specified by:
getPluginFrameworkBundlesin interfaceAgentClassServer- Parameters:
fileHashDescriptors- of the jars that the agent already has locally- Returns:
- jarDescriptors for all the plugin framework bundles
-
getPluginsAvailableForRemoteAgents
- Specified by:
getPluginsAvailableForRemoteAgentsin interfaceAgentClassServer- Returns:
- plugins available for remote agents
-
getPluginsEnabledForRemoteAgents
- Specified by:
getPluginsEnabledForRemoteAgentsin interfaceAgentClassServer- Returns:
- plugins enabled for remote agents
-
getSystemClasspathZip
- Specified by:
getSystemClasspathZipin interfaceAgentClassServer- Returns:
InputStreamto a zip file containing the complete agent classpath
-
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext) - Specified by:
setServletContextin interfaceorg.springframework.web.context.ServletContextAware
-