hudson.plugins.virtualbox
Class VirtualBoxSlave

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

public class VirtualBoxSlave
extends hudson.model.Slave

Slave running on VirtualBox.

Author:
Evgeny Mandrikov
See Also:
Serialized Form

Nested Class Summary
static class VirtualBoxSlave.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.InternalComputerListener, hudson.model.Node.Mode
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.Slave
name, remoteFS
 
Fields inherited from class hudson.model.Node
holdOffLaunchUntilSave
 
Constructor Summary
VirtualBoxSlave(String name, String nodeDescription, String remoteFS, String numExecutors, hudson.model.Node.Mode mode, String labelString, hudson.slaves.ComputerLauncher delegateLauncher, hudson.slaves.RetentionStrategy retentionStrategy, List<? extends hudson.slaves.NodeProperty<?>> nodeProperties, String hostName, String virtualMachineName, String virtualMachineType)
           
VirtualBoxSlave(String name, String nodeDescription, String remoteFS, String numExecutors, hudson.model.Node.Mode mode, String labelString, hudson.slaves.ComputerLauncher delegateLauncher, hudson.slaves.RetentionStrategy retentionStrategy, List<? extends hudson.slaves.NodeProperty<?>> nodeProperties, String hostName, String virtualMachineName, String virtualMachineType, String virtualMachineStopMode)
           
 
Method Summary
 hudson.model.Computer createComputer()
           
 hudson.slaves.ComputerLauncher getDelegateLauncher()
          For UI.
 String getHostName()
           
 VirtualBoxComputerLauncher getLauncher()
           
 String getVirtualMachineName()
           
 String getVirtualMachineStopMode()
           
 String getVirtualMachineType()
           
 
Methods inherited from class hudson.model.Slave
createLauncher, equals, getClockDifference, getComputer, getDescriptor, getLabelString, getMode, getNodeDescription, getNodeName, getNodeProperties, getNumExecutors, getRemoteFS, getRetentionStrategy, getRootPath, getWorkspaceFor, getWorkspaceRoot, hashCode, setLauncher, setMode, setNodeName, setRetentionStrategy
 
Methods inherited from class hudson.model.Node
canTake, canTake, checkPermission, createPath, getACL, getAssignedLabels, getChannel, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodePropertyDescriptors, getSearchUrl, getSelfLabel, hasPermission, isHoldOffLaunchUntilSave, reconfigure, 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
 

Constructor Detail

VirtualBoxSlave

@DataBoundConstructor
public VirtualBoxSlave(String name,
                                            String nodeDescription,
                                            String remoteFS,
                                            String numExecutors,
                                            hudson.model.Node.Mode mode,
                                            String labelString,
                                            hudson.slaves.ComputerLauncher delegateLauncher,
                                            hudson.slaves.RetentionStrategy retentionStrategy,
                                            List<? extends hudson.slaves.NodeProperty<?>> nodeProperties,
                                            String hostName,
                                            String virtualMachineName,
                                            String virtualMachineType,
                                            String virtualMachineStopMode)
                throws hudson.model.Descriptor.FormException,
                       IOException
Throws:
hudson.model.Descriptor.FormException
IOException

VirtualBoxSlave

public VirtualBoxSlave(String name,
                       String nodeDescription,
                       String remoteFS,
                       String numExecutors,
                       hudson.model.Node.Mode mode,
                       String labelString,
                       hudson.slaves.ComputerLauncher delegateLauncher,
                       hudson.slaves.RetentionStrategy retentionStrategy,
                       List<? extends hudson.slaves.NodeProperty<?>> nodeProperties,
                       String hostName,
                       String virtualMachineName,
                       String virtualMachineType)
                throws hudson.model.Descriptor.FormException,
                       IOException
Throws:
hudson.model.Descriptor.FormException
IOException
Method Detail

createComputer

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

getHostName

public String getHostName()
Returns:
host name

getVirtualMachineName

public String getVirtualMachineName()
Returns:
virtual machine name

getVirtualMachineType

public String getVirtualMachineType()
Returns:
type of virtual machine, can be headless, vrdp, gui, or sdl

getVirtualMachineStopMode

public String getVirtualMachineStopMode()
Returns:
type of stop mode for virtual machine, can be powerdown or pause

getLauncher

public VirtualBoxComputerLauncher getLauncher()
Overrides:
getLauncher in class hudson.model.Slave

getDelegateLauncher

public hudson.slaves.ComputerLauncher getDelegateLauncher()
For UI.

Returns:
original launcher


Copyright © 2004-2013. All Rights Reserved.