Package org.jenkinci.plugins.mock_slave
Class MockCloud
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Actionable
-
- hudson.slaves.Cloud
-
- org.jenkinci.plugins.mock_slave.MockCloud
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Cloud>
,ModelObject
,SearchableModelObject
,SearchItem
,AccessControlled
,ModelObjectWithContextMenu
public final class MockCloud extends Cloud
Simple cloud that creates mock slaves on demand.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MockCloud.DescriptorImpl
static class
MockCloud.NoDelayProvisionerStrategy
-
Nested classes/interfaces inherited from class hudson.slaves.Cloud
Cloud.CloudState
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canProvision(Cloud.CloudState state)
int
getExecutors()
String
getLabels()
boolean
getOneShot()
boolean
isInbound()
Collection<NodeProvisioner.PlannedNode>
provision(Cloud.CloudState state, int excessWorkload)
void
setExecutors(int executors)
void
setInbound(boolean inbound)
void
setLabels(String labels)
void
setOneShot(boolean oneShot)
-
Methods inherited from class hudson.slaves.Cloud
all, canProvision, doConfigSubmit, doDoDelete, getACL, getDescriptor, getDisplayName, getIcon, getIconAltText, getIconClassName, getSearchUrl, getUrl, provision, reconfigure, registerPermissions
-
Methods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
-
-
-
-
Field Detail
-
mode
@DataBoundSetter public Node.Mode mode
-
-
Constructor Detail
-
MockCloud
@DataBoundConstructor public MockCloud(String name)
-
-
Method Detail
-
getLabels
public String getLabels()
-
setLabels
@DataBoundSetter public void setLabels(String labels)
-
getOneShot
public boolean getOneShot()
-
setOneShot
@DataBoundSetter public void setOneShot(boolean oneShot)
-
getExecutors
public int getExecutors()
-
setExecutors
@DataBoundSetter public void setExecutors(int executors)
-
isInbound
public boolean isInbound()
-
setInbound
@DataBoundSetter public void setInbound(boolean inbound)
-
canProvision
public boolean canProvision(Cloud.CloudState state)
- Overrides:
canProvision
in classCloud
-
provision
public Collection<NodeProvisioner.PlannedNode> provision(Cloud.CloudState state, int excessWorkload)
-
-