|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SAgentFileManager
Represents the high-level interface for agent file operations.
The whole service consists of two parts: server and agent side. Server initiates the file transfer via XML-RPC call providing all necessary session and encryption data, agent replies back via HTTP call possibly archiving and encrypting the contents. The client is then notified of a completion.
| Nested Class Summary | |
|---|---|
static interface |
SAgentFileManager.Callback
The callback for firing the completion of an operation or the error. |
| Method Summary | |
|---|---|
RemoteFileStructure |
requestDirectoryStructure(java.lang.String agentName,
java.lang.String directoryName)
Performs a synchronous request on agent agentName and returns the remote structure
of the directory directoryName (or possibly a file). |
void |
requestForFile(java.lang.String agentName,
java.lang.String fileName,
boolean lookupInCache,
SAgentFileManager.Callback callback)
Performs asynchronous request to the agent agentName for a
fileName file (or directory). |
| Method Detail |
|---|
void requestForFile(@NotNull
java.lang.String agentName,
@NotNull
java.lang.String fileName,
boolean lookupInCache,
@NotNull
SAgentFileManager.Callback callback)
agentName for a
fileName file (or directory). The caller is notified about the result
via callback. In case of success the caller is provided with the local
copy of the requested file.
The fileName supports several useful macros:
"#home", "#work", "#temp", "#logs",
"#plugins", "#lib", "#update", "#conf",
and "#cache", each referring to a specific agent directory.
These macros are to be used to specify the root of the requested file (or directory).
Examples:
"#logs" - full logs directory
"#work/directory.map" - a "directory.map" file inside agent working directory
"#plugins/ant/lib" - full "lib" directory of the Ant plugin
Current limitations:
'/' instead of '\')
"?" and "*" are not supported
By default all transferred data is encrypted.
agentName - the name of agent to request tofileName - file (or directory) name in the format abovelookupInCache - if set to true, server will try to use cached datacallback - the callback
@Nullable
RemoteFileStructure requestDirectoryStructure(@NotNull
java.lang.String agentName,
@NotNull
java.lang.String directoryName)
agentName and returns the remote structure
of the directory directoryName (or possibly a file).
Method returns null in case of error.
The directoryName format is the same as in requestForFile(String, String, boolean, Callback).
agentName - the name of agent to request todirectoryName - directory (or file) name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||