public interface IAgentConnection
| Modifier and Type | Method and Description |
|---|---|
long |
download(String remoteSourcePath,
Path localTargetDirectory,
FileDownloadCallback callback) |
RemoteRun.AgentToMaster.AgentInfo |
getAgentInfo() |
ConnectionState |
getConnectionState() |
long |
request(AgentRequest message) |
void |
setAgentInfo(RemoteRun.AgentToMaster.AgentInfo agentInfo) |
void |
setConnectionState(ConnectionState connectionState) |
void |
shutdown()
Disconnect this agent.
|
long |
upload(Path localSourcePath,
String remoteTargetDirectory,
UploadCompleteCallback callback)
Initiate the upload of a file from master to agent.
|
void |
write(RemoteRun.MasterToAgent message)
Transmit a message that has already been given a unique request ID, and commit to handling the responses yourself
with the AgentConnectionCallback registered.
|
ConnectionState getConnectionState()
void setConnectionState(ConnectionState connectionState)
RemoteRun.AgentToMaster.AgentInfo getAgentInfo()
void setAgentInfo(RemoteRun.AgentToMaster.AgentInfo agentInfo)
void shutdown()
long upload(Path localSourcePath, String remoteTargetDirectory, UploadCompleteCallback callback)
localSourcePath - path to read and send on this hostremoteTargetDirectory - where to try and store the data on the targetcallback - callback when the send is complete, can be nulllong download(String remoteSourcePath, Path localTargetDirectory, FileDownloadCallback callback)
long request(AgentRequest message)
void write(RemoteRun.MasterToAgent message)
Copyright © 2016 Formicary. All rights reserved.