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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classDescribes the cause for a process killing veto.Nested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic List<ProcessKillingVeto> all()abstract ProcessKillingVeto.VetoCauseAsk the extension whether it vetoes killing of the given process
- 
Constructor Details- 
ProcessKillingVetopublic 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.
 
 
-