jenkins.plugins.jclouds.compute
Class JCloudsSlaveTemplate

java.lang.Object
  extended by jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate
All Implemented Interfaces:
hudson.model.Describable<JCloudsSlaveTemplate>

public class JCloudsSlaveTemplate
extends Object
implements hudson.model.Describable<JCloudsSlaveTemplate>

Author:
Vijay Kiran

Nested Class Summary
static class JCloudsSlaveTemplate.DescriptorImpl
           
 
Field Summary
 boolean allowSudo
           
protected  JCloudsCloud cloud
           
 double cores
           
 String description
           
 String hardwareId
           
 String imageId
           
 String initScript
           
 String labelString
           
 String name
           
 String numExecutors
           
 String osFamily
           
 String osVersion
           
 boolean preInstalledJava
           
 int ram
           
 boolean stopOnTerminate
           
 String vmPassword
           
 String vmUser
           
 
Constructor Summary
JCloudsSlaveTemplate(String name, String imageId, String hardwareId, double cores, int ram, String osFamily, String osVersion, String labelString, String description, String initScript, String numExecutors, boolean stopOnTerminate, String vmPassword, String vmUser, boolean preInstalledJava, String jenkinsUser, String fsRoot, boolean allowSudo)
           
 
Method Summary
 JCloudsCloud getCloud()
           
 hudson.model.Descriptor<JCloudsSlaveTemplate> getDescriptor()
           
 String getFsRoot()
           
 String getJenkinsUser()
           
 Set<hudson.model.labels.LabelAtom> getLabelSet()
           
 org.jclouds.compute.domain.NodeMetadata provision(hudson.model.TaskListener listener)
           
 JCloudsSlave provisionSlave(hudson.model.TaskListener listener)
           
protected  Object readResolve()
          Initializes data structure that we don't persist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public final String name

imageId

public final String imageId

hardwareId

public final String hardwareId

cores

public final double cores

ram

public final int ram

osFamily

public final String osFamily

labelString

public final String labelString

description

public final String description

osVersion

public final String osVersion

initScript

public final String initScript

numExecutors

public final String numExecutors

stopOnTerminate

public final boolean stopOnTerminate

vmUser

public final String vmUser

vmPassword

public final String vmPassword

preInstalledJava

public final boolean preInstalledJava

allowSudo

public final boolean allowSudo

cloud

protected transient JCloudsCloud cloud
Constructor Detail

JCloudsSlaveTemplate

@DataBoundConstructor
public JCloudsSlaveTemplate(String name,
                                                 String imageId,
                                                 String hardwareId,
                                                 double cores,
                                                 int ram,
                                                 String osFamily,
                                                 String osVersion,
                                                 String labelString,
                                                 String description,
                                                 String initScript,
                                                 String numExecutors,
                                                 boolean stopOnTerminate,
                                                 String vmPassword,
                                                 String vmUser,
                                                 boolean preInstalledJava,
                                                 String jenkinsUser,
                                                 String fsRoot,
                                                 boolean allowSudo)
Method Detail

getCloud

public JCloudsCloud getCloud()

readResolve

protected Object readResolve()
Initializes data structure that we don't persist.


getJenkinsUser

public String getJenkinsUser()

getFsRoot

public String getFsRoot()

getLabelSet

public Set<hudson.model.labels.LabelAtom> getLabelSet()

provisionSlave

public JCloudsSlave provisionSlave(hudson.model.TaskListener listener)
                            throws IOException
Throws:
IOException

provision

public org.jclouds.compute.domain.NodeMetadata provision(hudson.model.TaskListener listener)
                                                  throws IOException
Throws:
IOException

getDescriptor

public hudson.model.Descriptor<JCloudsSlaveTemplate> getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<JCloudsSlaveTemplate>


Copyright © 2004-2012. All Rights Reserved.