Package jenkins.branch
Class WorkspaceLocatorImpl.Deleter
- java.lang.Object
-
- hudson.model.listeners.ItemListener
-
- jenkins.branch.WorkspaceLocatorImpl.Deleter
-
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- WorkspaceLocatorImpl
@Extension public static class WorkspaceLocatorImpl.Deleter extends ItemListener
Cleans up workspace when an orphaned project is deleted. Also moves workspace when it is renamed or moved.- See Also:
- "JENKINS-2111"
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description Deleter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acquireThread()
void
onDeleted(Item item)
void
onLocationChanged(Item item, String oldFullName, String newFullName)
void
releaseThread()
-
Methods inherited from class hudson.model.listeners.ItemListener
all, checkBeforeCopy, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onCopied, onCreated, onLoaded, onRenamed, onUpdated, register
-
-
-
-
Method Detail
-
onDeleted
public void onDeleted(Item item)
- Overrides:
onDeleted
in classItemListener
-
onLocationChanged
public void onLocationChanged(Item item, String oldFullName, String newFullName)
- Overrides:
onLocationChanged
in classItemListener
-
acquireThread
public void acquireThread() throws InterruptedException
- Throws:
InterruptedException
-
releaseThread
public void releaseThread()
-
-