org.jenkinsci.plugins.mesos
Class MesosCloud

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.slaves.Cloud
          extended by org.jenkinsci.plugins.mesos.MesosCloud
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 MesosCloud
extends hudson.slaves.Cloud


Nested Class Summary
static class MesosCloud.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
MesosCloud(String nativeLibraryPath, String master, String description, int slaveCpus, int slaveMem, int maxExecutors, int executorCpus, int executorMem, int idleTerminationMinutes)
           
 
Method Summary
 boolean canProvision(hudson.model.Label label)
           
static MesosCloud get()
           
 String getDescription()
           
 MesosCloud.DescriptorImpl getDescriptor()
           
 String getMaster()
           
 String getNativeLibraryPath()
           
 Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int excessWorkload)
           
 void setDescription(String description)
           
 void setMaster(String master)
           
 void setNativeLibraryPath(String nativeLibraryPath)
           
 
Methods inherited from class hudson.slaves.Cloud
all, checkPermission, getACL, 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

MesosCloud

@DataBoundConstructor
public MesosCloud(String nativeLibraryPath,
                                       String master,
                                       String description,
                                       int slaveCpus,
                                       int slaveMem,
                                       int maxExecutors,
                                       int executorCpus,
                                       int executorMem,
                                       int idleTerminationMinutes)
           throws NumberFormatException
Throws:
NumberFormatException
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

getNativeLibraryPath

public String getNativeLibraryPath()

setNativeLibraryPath

public void setNativeLibraryPath(String nativeLibraryPath)

getMaster

public String getMaster()

setMaster

public void setMaster(String master)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getDescriptor

public MesosCloud.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.slaves.Cloud>
Overrides:
getDescriptor in class hudson.slaves.Cloud

get

public static MesosCloud get()


Copyright © 2004-2014. All Rights Reserved.