org.jenkinsci.plugins.scripted_cloud
Class scriptedCloudLauncher

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.slaves.ComputerLauncher>
      extended by hudson.slaves.ComputerLauncher
          extended by org.jenkinsci.plugins.scripted_cloud.scriptedCloudLauncher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.slaves.ComputerLauncher>

public class scriptedCloudLauncher
extends hudson.slaves.ComputerLauncher

Author:
Admin

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.slaves.ComputerLauncher
LIST
 
Constructor Summary
scriptedCloudLauncher(hudson.slaves.ComputerLauncher delegate, String vsDescription, String vmName)
           
 
Method Summary
 void afterDisconnect(hudson.slaves.SlaveComputer s, hudson.model.TaskListener taskListener)
           
 void beforeDisconnect(hudson.slaves.SlaveComputer slaveComputer, hudson.model.TaskListener taskListener)
           
 void disableLaunch()
           
 void enableLaunch()
           
 scriptedCloud findOurVsInstance()
           
 hudson.slaves.ComputerLauncher getDelegate()
           
 hudson.model.Descriptor<hudson.slaves.ComputerLauncher> getDescriptor()
           
 Integer getLimitedTestRunCount()
           
 String getVmName()
           
 String getVsDescription()
           
 boolean isLaunchSupported()
           
 void launch(hudson.slaves.SlaveComputer slaveComputer, hudson.model.TaskListener listener)
           
 void stopSlave(scriptedCloudSlaveComputer slaveComputer, boolean forced)
           
 
Methods inherited from class hudson.slaves.ComputerLauncher
afterDisconnect, beforeDisconnect, launch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

scriptedCloudLauncher

@DataBoundConstructor
public scriptedCloudLauncher(hudson.slaves.ComputerLauncher delegate,
                                                  String vsDescription,
                                                  String vmName)
Method Detail

enableLaunch

public void enableLaunch()

disableLaunch

public void disableLaunch()

findOurVsInstance

public scriptedCloud findOurVsInstance()
                                throws RuntimeException
Throws:
RuntimeException

isLaunchSupported

public boolean isLaunchSupported()
Overrides:
isLaunchSupported in class hudson.slaves.ComputerLauncher

launch

public void launch(hudson.slaves.SlaveComputer slaveComputer,
                   hudson.model.TaskListener listener)
            throws IOException,
                   InterruptedException
Overrides:
launch in class hudson.slaves.ComputerLauncher
Throws:
IOException
InterruptedException

stopSlave

public void stopSlave(scriptedCloudSlaveComputer slaveComputer,
                      boolean forced)

beforeDisconnect

public void beforeDisconnect(hudson.slaves.SlaveComputer slaveComputer,
                             hudson.model.TaskListener taskListener)
Overrides:
beforeDisconnect in class hudson.slaves.ComputerLauncher

afterDisconnect

public void afterDisconnect(hudson.slaves.SlaveComputer s,
                            hudson.model.TaskListener taskListener)
Overrides:
afterDisconnect in class hudson.slaves.ComputerLauncher

getDelegate

public hudson.slaves.ComputerLauncher getDelegate()

getVmName

public String getVmName()

getVsDescription

public String getVsDescription()

getLimitedTestRunCount

public Integer getLimitedTestRunCount()

getDescriptor

public hudson.model.Descriptor<hudson.slaves.ComputerLauncher> getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.slaves.ComputerLauncher>
Overrides:
getDescriptor in class hudson.model.AbstractDescribableImpl<hudson.slaves.ComputerLauncher>


Copyright © 2004-2012. All Rights Reserved.