Package org.jenkinsci.plugins.proxmox
Class ProxmoxRetentionStrategy
java.lang.Object
hudson.slaves.RetentionStrategy<ProxmoxComputer>
org.jenkinsci.plugins.proxmox.ProxmoxRetentionStrategy
- All Implemented Interfaces:
ExtensionPoint,Describable<RetentionStrategy<?>>
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.slaves.RetentionStrategy
RetentionStrategy.Always, RetentionStrategy.DemandNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.slaves.RetentionStrategy
INSTANCE, LIST, NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanGate dispatch the instant the reuse cap is reached.voidMethods inherited from class hudson.slaves.RetentionStrategy
all, isManualLaunchAllowedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
ProxmoxRetentionStrategy
public ProxmoxRetentionStrategy()
-
-
Method Details
-
isAcceptingTasks
Gate dispatch the instant the reuse cap is reached. The queue consults this at dispatch time (far more often thancheck(org.jenkinsci.plugins.proxmox.ProxmoxComputer), which runs ~once a minute), so it closes the race where a capped agent could still be handed new builds between periodic checks.- Overrides:
isAcceptingTasksin classRetentionStrategy<ProxmoxComputer>
-
check
- Specified by:
checkin classRetentionStrategy<ProxmoxComputer>
-
start
- Overrides:
startin classRetentionStrategy<ProxmoxComputer>
-