com.elasticbox.jenkins
Class ElasticBoxCloud

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

public class ElasticBoxCloud
extends hudson.slaves.AbstractCloudImpl

Author:
Phong Nguyen Le

Nested Class Summary
static class ElasticBoxCloud.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.slaves.Cloud
ALL, name, PROVISION
 
Constructor Summary
ElasticBoxCloud(String endpointUrl, int maxInstances, int retentionTime, String username, String password)
           
 
Method Summary
 boolean canProvision(hudson.model.Label label)
           
 String getEndpointUrl()
           
static ElasticBoxCloud getInstance()
           
static ElasticBoxCloud getInstance(String name)
           
 int getMaxInstances()
           
 String getPassword()
           
 int getRetentionTime()
           
 String getUsername()
           
 Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int excessWorkload)
           
 
Methods inherited from class hudson.slaves.AbstractCloudImpl
getInstanceCap, getInstanceCapStr, setInstanceCap, setInstanceCapStr
 
Methods inherited from class hudson.slaves.Cloud
all, checkPermission, getACL, getDescriptor, getDisplayName, getSearchUrl, hasPermission
 
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

ElasticBoxCloud

@DataBoundConstructor
public ElasticBoxCloud(String endpointUrl,
                                            int maxInstances,
                                            int retentionTime,
                                            String username,
                                            String password)
Method Detail

provision

public Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label,
                                                                       int excessWorkload)
Specified by:
provision in class hudson.slaves.Cloud

canProvision

public boolean canProvision(hudson.model.Label label)
Specified by:
canProvision in class hudson.slaves.Cloud

getEndpointUrl

public String getEndpointUrl()

getUsername

public String getUsername()

getPassword

public String getPassword()

getMaxInstances

public int getMaxInstances()

getRetentionTime

public int getRetentionTime()

getInstance

public static final ElasticBoxCloud getInstance()

getInstance

public static final ElasticBoxCloud getInstance(String name)


Copyright © 2004-2014. All Rights Reserved.