public class AgentClassServerImpl extends Object implements AgentClassServer, org.springframework.web.context.ServletContextAware
Constructor and Description |
---|
AgentClassServerImpl(AgentPluginResolver agentPluginResolver,
ClasspathDiscoverer classpathDiscoverer,
FrameworkBundlesResolver frameworkBundlesResolver) |
Modifier and Type | Method and Description |
---|---|
Map<String,JarDescriptor> |
getJarsOfFrameworkBundle() |
Map<String,JarDescriptor> |
getJarsOfSystemProvidedPlugins() |
Map<String,JarDescriptor> |
getJarsOfUserInstalledPlugins() |
Map<String,JarDescriptor> |
getJarsOnSystemClasspath() |
ClassServerManifest |
getPluginFrameworkBundles(Set<FileHashDescriptor> fileHashDescriptors) |
Iterable<com.atlassian.plugin.Plugin> |
getPluginsAvailableForRemoteAgents() |
ClassServerManifest |
getSystemClasspath() |
ClassServerManifest |
getSystemClasspath(Set<FileHashDescriptor> fileHashDescriptorsFromAgent) |
com.google.common.io.ByteSource |
getSystemClasspathZip() |
ClassServerManifest |
getSystemProvidedPlugins(Set<FileHashDescriptor> fileHashDescriptors) |
ClassServerManifest |
getUserInstalledPlugins(Set<FileHashDescriptor> fileHashDescriptors) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
public AgentClassServerImpl(AgentPluginResolver agentPluginResolver, ClasspathDiscoverer classpathDiscoverer, FrameworkBundlesResolver frameworkBundlesResolver)
@NotNull public ClassServerManifest getSystemClasspath()
getSystemClasspath
in interface AgentClassServer
@NotNull public Map<String,JarDescriptor> getJarsOnSystemClasspath()
getJarsOnSystemClasspath
in interface AgentClassServer
@NotNull public Map<String,JarDescriptor> getJarsOfUserInstalledPlugins()
getJarsOfUserInstalledPlugins
in interface AgentClassServer
@NotNull public Map<String,JarDescriptor> getJarsOfSystemProvidedPlugins()
getJarsOfSystemProvidedPlugins
in interface AgentClassServer
@NotNull public Map<String,JarDescriptor> getJarsOfFrameworkBundle()
getJarsOfFrameworkBundle
in interface AgentClassServer
@NotNull public ClassServerManifest getSystemClasspath(@NotNull Set<FileHashDescriptor> fileHashDescriptorsFromAgent)
getSystemClasspath
in interface AgentClassServer
fileHashDescriptorsFromAgent
- of the jars that the agent already has locally@NotNull public ClassServerManifest getUserInstalledPlugins(@NotNull Set<FileHashDescriptor> fileHashDescriptors)
getUserInstalledPlugins
in interface AgentClassServer
fileHashDescriptors
- of the jars that the agent already has locally@NotNull public ClassServerManifest getSystemProvidedPlugins(@NotNull Set<FileHashDescriptor> fileHashDescriptors)
getSystemProvidedPlugins
in interface AgentClassServer
fileHashDescriptors
- of the jars that the agent already has locallypublic ClassServerManifest getPluginFrameworkBundles(@NotNull Set<FileHashDescriptor> fileHashDescriptors)
getPluginFrameworkBundles
in interface AgentClassServer
fileHashDescriptors
- of the jars that the agent already has locally@NotNull public Iterable<com.atlassian.plugin.Plugin> getPluginsAvailableForRemoteAgents()
getPluginsAvailableForRemoteAgents
in interface AgentClassServer
@NotNull public com.google.common.io.ByteSource getSystemClasspathZip()
getSystemClasspathZip
in interface AgentClassServer
InputStream
to a zip file containing the complete agent classpathpublic void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext
in interface org.springframework.web.context.ServletContextAware
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.