com.atlassian.bamboo.agent.classserver
Class AgentClassServerImpl

java.lang.Object
  extended by com.atlassian.bamboo.agent.classserver.AgentClassServerImpl
All Implemented Interfaces:
AgentClassServer, org.springframework.web.context.ServletContextAware

public class AgentClassServerImpl
extends java.lang.Object
implements AgentClassServer, org.springframework.web.context.ServletContextAware


Constructor Summary
AgentClassServerImpl(ClasspathDiscoverer classpathDiscoverer, AgentPluginResolver agentPluginResolver)
           
 
Method Summary
 java.lang.Iterable<com.atlassian.plugin.Plugin> getPluginsAvailableForRemoteAgents()
           
 ClassServerManifest getSystemClasspath()
           
 ClassServerManifest getSystemClasspath(java.util.Set<FileHashDescriptor> fileHashDescriptorsFromAgent)
           
 com.google.common.io.InputSupplier<java.io.InputStream> getSystemClasspathZip()
           
 ClassServerManifest getSystemProvidedPlugins(java.util.Set<FileHashDescriptor> fileHashDescriptors)
           
 ClassServerManifest getUserInstalledPlugins(java.util.Set<FileHashDescriptor> fileHashDescriptors)
           
 void setServletContext(javax.servlet.ServletContext servletContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentClassServerImpl

public AgentClassServerImpl(ClasspathDiscoverer classpathDiscoverer,
                            AgentPluginResolver agentPluginResolver)
Method Detail

getSystemClasspath

@NotNull
public ClassServerManifest getSystemClasspath()
Specified by:
getSystemClasspath in interface AgentClassServer
Returns:
manifest of all the jars used to bootstrap a remote agent. Includes Plugins installed in WEB-INF/lib.

getSystemClasspath

@NotNull
public ClassServerManifest getSystemClasspath(@NotNull
                                                      java.util.Set<FileHashDescriptor> fileHashDescriptorsFromAgent)
Specified by:
getSystemClasspath in interface AgentClassServer
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 ClassServerManifest getUserInstalledPlugins(@NotNull
                                                           java.util.Set<FileHashDescriptor> fileHashDescriptors)
Specified by:
getUserInstalledPlugins in interface AgentClassServer
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 ClassServerManifest getSystemProvidedPlugins(@NotNull
                                                            java.util.Set<FileHashDescriptor> fileHashDescriptors)
Specified by:
getSystemProvidedPlugins in interface AgentClassServer
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

getPluginsAvailableForRemoteAgents

@NotNull
public java.lang.Iterable<com.atlassian.plugin.Plugin> getPluginsAvailableForRemoteAgents()
Specified by:
getPluginsAvailableForRemoteAgents in interface AgentClassServer
Returns:
plugins available for remote agents

getSystemClasspathZip

@NotNull
public com.google.common.io.InputSupplier<java.io.InputStream> getSystemClasspathZip()
Specified by:
getSystemClasspathZip in interface AgentClassServer
Returns:
InputStream to a zip file containing the complete agent classpath

setServletContext

public void setServletContext(javax.servlet.ServletContext servletContext)
Specified by:
setServletContext in interface org.springframework.web.context.ServletContextAware


Copyright © 2012 Atlassian. All Rights Reserved.