public class ExecRemoteAgent extends Object implements RemoteAgent
| Modifier and Type | Method and Description |
|---|---|
void |
addIdentity(String privateKey,
String passphrase,
String comment,
TaskListener listener)
Adds the provided identity to the agent.
|
String |
getSocket()
Returns the value that the environment variable should be set to.
|
void |
stop(TaskListener listener)
Stops the agent.
|
public String getSocket()
getSocket in interface RemoteAgentpublic void addIdentity(String privateKey, String passphrase, String comment, TaskListener listener) throws IOException, InterruptedException
addIdentity in interface RemoteAgentprivateKey - the private key.passphrase - the passphrase or null.comment - the comment to give to the key.listener - for logging.IOException - if something went wrong.InterruptedExceptionpublic void stop(TaskListener listener) throws IOException, InterruptedException
stop in interface RemoteAgentlistener - for logging.IOExceptionInterruptedExceptionCopyright © 2016–2021. All rights reserved.