Package hudson.slaves
Class AbstractCloudImpl
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Actionable
-
- hudson.slaves.Cloud
-
- hudson.slaves.AbstractCloudImpl
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Cloud>
,ModelObject
,SearchableModelObject
,SearchItem
,AccessControlled
,ModelObjectWithContextMenu
public abstract class AbstractCloudImpl extends Cloud
Additional convenience implementation on top ofCloud
that are likely useful to typicalCloud
implementations.Whereas
Cloud
is the contract between the rest of Jenkins and a cloud implementation, this class focuses on providing a convenience to minimize the effort it takes to integrate a new cloud to Jenkins.- Author:
- Kohsuke Kawaguchi
- See Also:
AbstractCloudSlave
-
-
Nested Class Summary
-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCloudImpl(String name, String instanceCapStr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getInstanceCap()
Gets the instance cap as int, where the capless is represented asInteger.MAX_VALUE
String
getInstanceCapStr()
Gets the instance cap as string.protected void
setInstanceCap(int v)
protected void
setInstanceCapStr(String value)
-
Methods inherited from class hudson.slaves.Cloud
all, canProvision, canProvision, getACL, getDescriptor, getDisplayName, getSearchUrl, getUrl, provision, provision, 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
-
-
-
-
Method Detail
-
setInstanceCapStr
protected void setInstanceCapStr(String value)
-
getInstanceCapStr
public String getInstanceCapStr()
Gets the instance cap as string. Used primarily for form binding.
-
getInstanceCap
public int getInstanceCap()
Gets the instance cap as int, where the capless is represented asInteger.MAX_VALUE
-
setInstanceCap
protected void setInstanceCap(int v)
-
-