hudson.slaves
Class AbstractCloudImpl

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.slaves.Cloud
          extended by hudson.slaves.AbstractCloudImpl
All Implemented Interfaces:
ExtensionPoint, Describable<Cloud>, ModelObject, SearchableModelObject, SearchItem, AccessControlled

public abstract class AbstractCloudImpl
extends Cloud

Additional convenience implementation on top of Cloud that are likely useful to typical Cloud 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 interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.slaves.Cloud
ALL, name, PROVISION
 
Constructor Summary
protected AbstractCloudImpl(String name, String instanceCapStr)
           
 
Method Summary
 int getInstanceCap()
          Gets the instance cap as int, where the capless is represented as Integer.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, checkPermission, getACL, getDescriptor, getDisplayName, getSearchUrl, hasPermission, provision
 
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
 

Constructor Detail

AbstractCloudImpl

protected AbstractCloudImpl(String name,
                            String instanceCapStr)
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 as Integer.MAX_VALUE


setInstanceCap

protected void setInstanceCap(int v)


Copyright © 2004-2013. All Rights Reserved.