org.jenkinsci.plugins.scripted_cloud
Class scriptedCloud

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

Author:
Admin

Nested Class Summary
static class scriptedCloud.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
scriptedCloud(String vsDescription, String vsHost, String startScriptFile, String stopScriptFile)
           
 
Method Summary
 Boolean canMarkVMOnline(String slaveName, String vmName)
           
 boolean canProvision(hudson.model.Label label)
           
 org.jenkinsci.plugins.scripted_cloud.ManagedObjectReference findSnapshotInTree(org.jenkinsci.plugins.scripted_cloud.VirtualMachineSnapshotTree[] snapTree, String snapName)
           
 scriptedCloud.DescriptorImpl getDescriptor()
           
 org.jenkinsci.plugins.scripted_cloud.ServiceInstance getSI()
           
 org.jenkinsci.plugins.scripted_cloud.VirtualMachineSnapshot getSnapshotInTree(org.jenkinsci.plugins.scripted_cloud.VirtualMachine vm, String snapName)
           
 String getStartScriptFile()
           
 String getStopScriptFile()
           
 String getVsDescription()
           
 String getVsHost()
           
static void Log(hudson.slaves.SlaveComputer slave, hudson.model.TaskListener listener, String msg)
           
static void Log(hudson.slaves.SlaveComputer slave, hudson.model.TaskListener listener, String format, Object... args)
           
static void Log(hudson.model.Slave slave, hudson.model.TaskListener listener, String msg)
           
static void Log(hudson.model.Slave slave, hudson.model.TaskListener listener, String format, Object... args)
           
static void Log(String msg)
           
static void Log(String format, Object... args)
           
static void Log(hudson.model.TaskListener listener, String msg)
           
static void Log(hudson.model.TaskListener listener, String format, Object... args)
           
 void markVMOffline(String slaveName, String vmName)
           
 Boolean markVMOnline(String slaveName, String vmName)
           
 Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int excessWorkload)
           
 void setStartScriptFile(String scriptPath)
           
 void setStopScriptFile(String scriptPath)
           
 String toString()
           
 
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, wait, wait, wait
 

Constructor Detail

scriptedCloud

@DataBoundConstructor
public scriptedCloud(String vsDescription,
                                          String vsHost,
                                          String startScriptFile,
                                          String stopScriptFile)
Method Detail

Log

public static void Log(String msg)

Log

public static void Log(String format,
                       Object... args)

Log

public static void Log(hudson.model.TaskListener listener,
                       String msg)

Log

public static void Log(hudson.model.TaskListener listener,
                       String format,
                       Object... args)

Log

public static void Log(hudson.model.Slave slave,
                       hudson.model.TaskListener listener,
                       String msg)

Log

public static void Log(hudson.model.Slave slave,
                       hudson.model.TaskListener listener,
                       String format,
                       Object... args)

Log

public static void Log(hudson.slaves.SlaveComputer slave,
                       hudson.model.TaskListener listener,
                       String msg)

Log

public static void Log(hudson.slaves.SlaveComputer slave,
                       hudson.model.TaskListener listener,
                       String format,
                       Object... args)

getVsDescription

public String getVsDescription()

getVsHost

public String getVsHost()

setStopScriptFile

public void setStopScriptFile(String scriptPath)

getStopScriptFile

public String getStopScriptFile()

setStartScriptFile

public void setStartScriptFile(String scriptPath)

getStartScriptFile

public String getStartScriptFile()

canProvision

public boolean canProvision(hudson.model.Label label)
Specified by:
canProvision in class hudson.slaves.Cloud

provision

public Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label,
                                                                       int excessWorkload)
Specified by:
provision in class hudson.slaves.Cloud

toString

public String toString()
Overrides:
toString in class Object

getSI

public org.jenkinsci.plugins.scripted_cloud.ServiceInstance getSI()
                                                           throws Exception
Throws:
Exception

canMarkVMOnline

public Boolean canMarkVMOnline(String slaveName,
                               String vmName)

markVMOnline

public Boolean markVMOnline(String slaveName,
                            String vmName)

markVMOffline

public void markVMOffline(String slaveName,
                          String vmName)

getSnapshotInTree

public org.jenkinsci.plugins.scripted_cloud.VirtualMachineSnapshot getSnapshotInTree(org.jenkinsci.plugins.scripted_cloud.VirtualMachine vm,
                                                                                     String snapName)
                                                                              throws Exception
Throws:
Exception

findSnapshotInTree

public org.jenkinsci.plugins.scripted_cloud.ManagedObjectReference findSnapshotInTree(org.jenkinsci.plugins.scripted_cloud.VirtualMachineSnapshotTree[] snapTree,
                                                                                      String snapName)

getDescriptor

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


Copyright © 2004-2012. All Rights Reserved.