jetbrains.buildServer.agentServer
Interface LowLevelAgentFileManager
public interface LowLevelAgentFileManager
Represents a low-level interface for requesting the files from agent.
TeamCity plugins are not expected to use this interface.
- Since:
- 6.0
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
|
Field Summary |
static java.lang.String |
HANDLER
|
|
Method Summary |
java.lang.String |
requestDirectoryStructureFast(java.lang.String fileName)
Requests the directory structure from the agent. |
boolean |
requestFile(java.lang.String sessionId,
java.lang.String publicKey,
java.lang.String fileName)
Requests a file or a directory from the agent. |
HANDLER
static final java.lang.String HANDLER
- See Also:
- Constant Field Values
requestFile
boolean requestFile(@NotNull
java.lang.String sessionId,
@NotNull
java.lang.String publicKey,
@NotNull
java.lang.String fileName)
- Requests a file or a directory from the agent.
- Parameters:
sessionId - session id (generated by server)publicKey - public key data (generated by server)fileName - the requested file
- Returns:
- true if the request was received, false otherwise
requestDirectoryStructureFast
@Nullable
java.lang.String requestDirectoryStructureFast(@NotNull
java.lang.String fileName)
- Requests the directory structure from the agent.
Serialized result is returned in this call (that's why method is "fast").
- Parameters:
fileName - the requested file
- Returns:
- serialized directory structure