implementing a ZFS based FileSystemProvisioner as a test to see if the abstraction works.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15351 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-02-14 18:26:19 +00:00
1 parent b6c0519b66
commit b9f7d5a480
3 files changed
+115 -6

No files matched your search

@@ -138,8 +138,14 @@ public abstract class FileSystemProvisioner implements ExtensionPoint, Describab
/**
* When a project is deleted, this method is called to undo the effect of
* {@link #prepareWorkspace(AbstractBuild, FilePath, TaskListener)}.
*
* @param project
* Project whose workspace is being discarded.
* @param ws
* Workspace to be discarded. This workspace is on the node
* this {@link FileSystemProvisioner} is provisioned for.
*/
public abstract void discardWorkspace(AbstractProject<?,?> project) throws IOException, InterruptedException;
public abstract void discardWorkspace(AbstractProject<?,?> project, FilePath ws) throws IOException, InterruptedException;
// public abstract void moveWorkspace(AbstractProject<?,?> project, File oldWorkspace, File newWorkspace) throws IOException;
@@ -186,7 +192,7 @@ public abstract class FileSystemProvisioner implements ExtensionPoint, Describab
public void prepareWorkspace(AbstractBuild<?, ?> build, FilePath ws, TaskListener listener) throws IOException, InterruptedException {
}
public void discardWorkspace(AbstractProject<?,?> project) throws IOException, InterruptedException {
public void discardWorkspace(AbstractProject<?,?> project, FilePath ws) throws IOException, InterruptedException {
}
/**