public class LeaseFile extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
LEASE_FILE |
static String |
SSHCONFIG_FILE |
| Constructor and Description |
|---|
LeaseFile(hudson.remoting.Channel channel) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deletes the existing lease file.
|
LeaseContext |
get()
Gets the current lease context if one is available.
|
void |
set(LeaseContext context)
Generates ".jenkins.lease" file and the equivalent ssh_config file.
|
public static final String LEASE_FILE
public static final String SSHCONFIG_FILE
public void clear()
throws InterruptedException,
IOException
InterruptedExceptionIOExceptionpublic LeaseContext get() throws InterruptedException, IOException
InterruptedExceptionIOExceptionpublic void set(LeaseContext context) throws InterruptedException, IOException
InterruptedExceptionIOExceptionCopyright © 2004-2013. All Rights Reserved.