hudson.plugins.ec2
Class EC2Slave

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.Node
          extended by hudson.model.Slave
              extended by hudson.plugins.ec2.EC2Slave
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.Node>, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem, hudson.security.AccessControlled, java.io.Serializable

public final class EC2Slave
extends hudson.model.Slave

Slave running on EC2.

Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Nested Class Summary
static class EC2Slave.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.model.Slave
hudson.model.Slave.JnlpJar, hudson.model.Slave.SlaveDescriptor
 
Nested classes/interfaces inherited from class hudson.model.Node
hudson.model.Node.Mode
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 java.lang.String initScript
          Comes from SlaveTemplate.initScript.
 java.lang.String jvmopts
           
 java.lang.String remoteAdmin
           
 java.lang.String rootCommandPrefix
           
 
Fields inherited from class hudson.model.Slave
name, remoteFS
 
Fields inherited from class hudson.model.Node
holdOffLaunchUntilSave
 
Constructor Summary
EC2Slave(java.lang.String instanceId)
          Constructor for debugging.
EC2Slave(java.lang.String instanceId, java.lang.String description, java.lang.String remoteFS, int numExecutors, hudson.model.Node.Mode mode, java.lang.String labelString, java.lang.String initScript, java.util.List<? extends hudson.slaves.NodeProperty<?>> nodeProperties, java.lang.String remoteAdmin, java.lang.String rootCommandPrefix, java.lang.String jvmopts)
           
EC2Slave(java.lang.String instanceId, java.lang.String description, java.lang.String remoteFS, int numExecutors, java.lang.String labelString, java.lang.String initScript, java.lang.String remoteAdmin, java.lang.String rootCommandPrefix, java.lang.String jvmopts)
           
 
Method Summary
 hudson.model.Computer createComputer()
           
 java.lang.String getInstanceId()
          EC2 instance ID.
 void terminate()
          Terminates the instance in EC2.
 
Methods inherited from class hudson.model.Slave
createLauncher, equals, getClockDifference, getComputer, getDescriptor, getLabelString, getLauncher, getMode, getNodeDescription, getNodeName, getNodeProperties, getNumExecutors, getRemoteFS, getRetentionStrategy, getRootPath, getWorkspaceFor, getWorkspaceRoot, hashCode, setLauncher, setMode, setNodeName, setRetentionStrategy
 
Methods inherited from class hudson.model.Node
checkPermission, createPath, getACL, getAssignedLabels, getChannel, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodePropertyDescriptors, getSearchUrl, getSelfLabel, hasPermission, isHoldOffLaunchUntilSave, toComputer
 
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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initScript

public final java.lang.String initScript
Comes from SlaveTemplate.initScript.


remoteAdmin

public final java.lang.String remoteAdmin

rootCommandPrefix

public final java.lang.String rootCommandPrefix

jvmopts

public final java.lang.String jvmopts
Constructor Detail

EC2Slave

public EC2Slave(java.lang.String instanceId,
                java.lang.String description,
                java.lang.String remoteFS,
                int numExecutors,
                java.lang.String labelString,
                java.lang.String initScript,
                java.lang.String remoteAdmin,
                java.lang.String rootCommandPrefix,
                java.lang.String jvmopts)
         throws hudson.model.Descriptor.FormException,
                java.io.IOException
Throws:
hudson.model.Descriptor.FormException
java.io.IOException

EC2Slave

@DataBoundConstructor
public EC2Slave(java.lang.String instanceId,
                                     java.lang.String description,
                                     java.lang.String remoteFS,
                                     int numExecutors,
                                     hudson.model.Node.Mode mode,
                                     java.lang.String labelString,
                                     java.lang.String initScript,
                                     java.util.List<? extends hudson.slaves.NodeProperty<?>> nodeProperties,
                                     java.lang.String remoteAdmin,
                                     java.lang.String rootCommandPrefix,
                                     java.lang.String jvmopts)
         throws hudson.model.Descriptor.FormException,
                java.io.IOException
Throws:
hudson.model.Descriptor.FormException
java.io.IOException

EC2Slave

public EC2Slave(java.lang.String instanceId)
         throws hudson.model.Descriptor.FormException,
                java.io.IOException
Constructor for debugging.

Throws:
hudson.model.Descriptor.FormException
java.io.IOException
Method Detail

getInstanceId

public java.lang.String getInstanceId()
EC2 instance ID.


createComputer

public hudson.model.Computer createComputer()
Overrides:
createComputer in class hudson.model.Slave

terminate

public void terminate()
Terminates the instance in EC2.



Copyright © 2010. All Rights Reserved.