hudson.plugins.ec2
Class SlaveTemplate
java.lang.Object
hudson.plugins.ec2.SlaveTemplate
- All Implemented Interfaces:
- hudson.model.Describable<SlaveTemplate>
public class SlaveTemplate
- extends java.lang.Object
- implements hudson.model.Describable<SlaveTemplate>
Template of EC2Slave to launch.
- Author:
- Kohsuke Kawaguchi
|
Constructor Summary |
SlaveTemplate(java.lang.String ami,
java.lang.String remoteFS,
com.xerox.amazonws.ec2.InstanceType type,
java.lang.String labels,
java.lang.String description,
java.lang.String initScript)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ami
public final java.lang.String ami
description
public final java.lang.String description
remoteFS
public final java.lang.String remoteFS
type
public final com.xerox.amazonws.ec2.InstanceType type
labels
public final java.lang.String labels
initScript
public final java.lang.String initScript
parent
protected transient EC2Cloud parent
SlaveTemplate
@DataBoundConstructor
public SlaveTemplate(java.lang.String ami,
java.lang.String remoteFS,
com.xerox.amazonws.ec2.InstanceType type,
java.lang.String labels,
java.lang.String description,
java.lang.String initScript)
getParent
public EC2Cloud getParent()
getDisplayName
public java.lang.String getDisplayName()
getNumExecutors
public int getNumExecutors()
containsLabel
public boolean containsLabel(hudson.model.Label l)
- Does this contain the given label?
- Parameters:
l - can be null to indicate "don't care".
provision
public EC2Slave provision(hudson.model.TaskListener listener)
throws com.xerox.amazonws.ec2.EC2Exception,
java.io.IOException
- Provisions a new EC2 slave.
- Returns:
- always non-null. This needs to be then added to
Hudson.addNode(Node).
- Throws:
com.xerox.amazonws.ec2.EC2Exception
java.io.IOException
attach
public EC2Slave attach(java.lang.String instanceId,
hudson.model.TaskListener listener)
throws com.xerox.amazonws.ec2.EC2Exception,
java.io.IOException
- Provisions a new EC2 slave based on the currently running instance on EC2,
instead of starting a new one.
- Throws:
com.xerox.amazonws.ec2.EC2Exception
java.io.IOException
getDescriptor
public hudson.model.Descriptor<SlaveTemplate> getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<SlaveTemplate>
Copyright © 2009. All Rights Reserved.