hudson.slaves
Class WorkspaceList.Lease

java.lang.Object
  extended by hudson.slaves.WorkspaceList.Lease
Enclosing class:
WorkspaceList

public abstract static class WorkspaceList.Lease
extends Object

Represents a leased workspace that needs to be returned later.


Field Summary
 FilePath path
           
 
Constructor Summary
protected WorkspaceList.Lease(FilePath path)
           
 
Method Summary
static WorkspaceList.Lease createDummyLease(FilePath p)
          Creates a dummy WorkspaceList.Lease object that does no-op in the release.
static WorkspaceList.Lease createLinkedDummyLease(FilePath p, WorkspaceList.Lease parent)
          Creates a WorkspaceList.Lease object that points to the specified path, but the lock is controlled by the given parent lease object.
abstract  void release()
          Releases this lease.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

public final FilePath path
Constructor Detail

WorkspaceList.Lease

protected WorkspaceList.Lease(FilePath path)
Method Detail

release

public abstract void release()
Releases this lease.


createDummyLease

public static WorkspaceList.Lease createDummyLease(FilePath p)
Creates a dummy WorkspaceList.Lease object that does no-op in the release.


createLinkedDummyLease

public static WorkspaceList.Lease createLinkedDummyLease(FilePath p,
                                                         WorkspaceList.Lease parent)
Creates a WorkspaceList.Lease object that points to the specified path, but the lock is controlled by the given parent lease object.



Copyright © 2004-2013. All Rights Reserved.