Class AgentFilesProvider
- java.lang.Object
-
- jetbrains.buildServer.controllers.agentServer.AgentFilesProvider
-
public class AgentFilesProvider extends Object
A web-level API to access the remote agent files.All the files received from the agents are cleaned after 10 minutes.
- Since:
- 8.1
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Constructor Summary
Constructors Constructor Description AgentFilesProvider(SAgentFileManager agentFileManager, ScheduledExecutorService executor, boolean allowLookupInCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getAgentFile(String agentName, String fileName)
void
streamAgentFile(File file, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
-
-
Constructor Detail
-
AgentFilesProvider
public AgentFilesProvider(@NotNull SAgentFileManager agentFileManager, @NotNull ScheduledExecutorService executor, boolean allowLookupInCache)
-
-
Method Detail
-
getAgentFile
@NotNull public File getAgentFile(@NotNull String agentName, @NotNull String fileName)
-
streamAgentFile
public void streamAgentFile(@NotNull File file, @NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response) throws IOException
- Throws:
IOException
-
-