public class JNRRemoteAgent extends Object implements RemoteAgent
| Constructor and Description |
|---|
JNRRemoteAgent(hudson.model.TaskListener listener,
File temp)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIdentity(String privateKey,
String passphrase,
String comment,
hudson.model.TaskListener listener)
Adds the provided identity to the agent.
|
String |
getSocket()
Returns the value that the environment variable should be set to.
|
void |
stop(hudson.model.TaskListener listener)
Stops the agent.
|
public JNRRemoteAgent(hudson.model.TaskListener listener,
@CheckForNull
File temp)
throws Exception
listener - the listener.Exception - if the agent could not start.public String getSocket()
getSocket in interface RemoteAgentpublic void addIdentity(String privateKey, String passphrase, String comment, hudson.model.TaskListener listener) throws IOException
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.public void stop(hudson.model.TaskListener listener)
stop in interface RemoteAgentlistener - for logging.Copyright © 2016–2020. All rights reserved.