Package hudson.util
Class ProcessKillingVeto
java.lang.Object
hudson.util.ProcessKillingVeto
- All Implemented Interfaces:
 ExtensionPoint
Allows extensions to veto killing processes. If at least one extension vetoes
 the killing of a process, it will not be killed. This can be useful to keep
 daemon processes alive. An example is mspdbsrv.exe used by Microsoft
 compilers.
 See JENKINS-9104
- Since:
 - 1.619
 - Author:
 - Daniel Weber
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDescribes the cause for a process killing veto.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic List<ProcessKillingVeto>all()abstract ProcessKillingVeto.VetoCauseAsk the extension whether it vetoes killing of the given process 
- 
Constructor Details
- 
ProcessKillingVeto
public ProcessKillingVeto() 
 - 
 - 
Method Details
- 
all
- Returns:
 - All ProcessKillingVeto extensions currently registered. An empty list if Jenkins is not available, never null.
 
 - 
vetoProcessKilling
@CheckForNull public abstract ProcessKillingVeto.VetoCause vetoProcessKilling(@NonNull ProcessTreeRemoting.IOSProcess p) Ask the extension whether it vetoes killing of the given process- Parameters:
 p- The process that is about to be killed- Returns:
 - a 
ProcessKillingVeto.VetoCauseif the process should not be killed, null else. 
 
 -