public abstract class OneShotProvisioner<T extends OneShotSlave> extends Object
OneShotSlave
s.
Plugins to manage lightweight agents can use this extension point to determine jobs which require.Constructor and Description |
---|
OneShotProvisioner() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canRun(hudson.model.Queue.Item item)
Determine if the underlying infrastructure has enough resources to create a slave
for this $
Queue.Item . |
abstract OneShotSlave |
prepareExecutorFor(hudson.model.Queue.BuildableItem item)
Prepare a $
OneShotSlave to run this $Queue.BuildableItem . |
protected abstract boolean |
usesOneShotExecutor(hudson.model.Queue.Item item)
Determine if this $
Queue.Item do rely on One-Shot executors, and should be
handled by this specific provisioner. |
protected abstract boolean usesOneShotExecutor(hudson.model.Queue.Item item)
Queue.Item
do rely on One-Shot executors, and should be
handled by this specific provisioner.public abstract boolean canRun(hudson.model.Queue.Item item)
Queue.Item
.
Implementation can rely on this to reduce concurrent executors on a static infrastructure, or to schedule new resources on an elastic one.
public abstract OneShotSlave prepareExecutorFor(hudson.model.Queue.BuildableItem item) throws Exception
OneShotSlave
to run this $Queue.BuildableItem
. The actual
slave isn't launched, just prepared which means we can use it's node name as
a label to for assignment.Exception
Copyright © 2016. All rights reserved.