Package hudson.plugins.libvirt
Class VirtualMachineSlave
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Node
-
- hudson.model.Slave
-
- hudson.plugins.libvirt.VirtualMachineSlave
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Node>
,ModelObject
,ReconfigurableDescribable<Node>
,Saveable
,SearchableModelObject
,SearchItem
,AccessControlled
,Serializable
,OnMaster
public class VirtualMachineSlave extends Slave
- Author:
- Marco Mornati, Philipp Bartsch
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VirtualMachineSlave.DescriptorImpl
static class
VirtualMachineSlave.VirtualMachineComputerListener
-
Nested classes/interfaces inherited from class hudson.model.Slave
Slave.JnlpJar, Slave.SlaveDescriptor
-
Nested classes/interfaces inherited from class hudson.model.Node
Node.InternalComputerListener, Node.Mode
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static VirtualMachineSlave.DescriptorImpl
DESCRIPTOR
-
Fields inherited from class hudson.model.Node
holdOffLaunchUntilSave, SKIP_BUILD_CHECK_ON_FLYWEIGHTS
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineSlave(String name, String nodeDescription, String remoteFS, String numExecutors, Node.Mode mode, String labelString, VirtualMachineLauncher launcher, ComputerLauncher delegateLauncher, RetentionStrategy<? extends Computer> retentionStrategy, List<? extends NodeProperty<?>> nodeProperties, String hypervisorDescription, String virtualMachineName, String snapshotName, int startupWaitingPeriodSeconds, String shutdownMethod, boolean rebootAfterRun, int startupTimesToRetryOnFailure, String beforeJobSnapshotName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Computer
createComputer()
String
getBeforeJobSnapshotName()
ComputerLauncher
getDelegateLauncher()
String
getHypervisorDescription()
boolean
getRebootAfterRun()
String
getShutdownMethod()
String
getSnapshotName()
int
getStartupTimesToRetryOnFailure()
int
getStartupWaitingPeriodSeconds()
String
getVirtualMachineName()
-
Methods inherited from class hudson.model.Slave
createLauncher, equals, getClockDifferenceCallable, getComputer, getDescriptor, getLabelString, getLauncher, getMode, getNodeDescription, getNodeName, getNodeProperties, getNumExecutors, getRemoteFS, getRetentionStrategy, getRootPath, getUserId, getWorkspaceFor, getWorkspaceRoot, hashCode, readResolve, setLabelString, setLauncher, setMode, setNodeDescription, setNodeName, setNodeProperties, setNumExecutors, setRetentionStrategy, setUserId, toString
-
Methods inherited from class hudson.model.Node
canTake, canTake, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodeProperty, getNodeProperty, getNodePropertyDescriptors, getSearchUrl, getSelfLabel, getTemporaryOfflineCause, isAcceptingTasks, isHoldOffLaunchUntilSave, reconfigure, save, 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, wait, wait, wait
-
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
-
-
-
-
Field Detail
-
DESCRIPTOR
public static final VirtualMachineSlave.DescriptorImpl DESCRIPTOR
-
-
Constructor Detail
-
VirtualMachineSlave
@DataBoundConstructor public VirtualMachineSlave(String name, String nodeDescription, String remoteFS, String numExecutors, Node.Mode mode, String labelString, VirtualMachineLauncher launcher, ComputerLauncher delegateLauncher, RetentionStrategy<? extends Computer> retentionStrategy, List<? extends NodeProperty<?>> nodeProperties, String hypervisorDescription, String virtualMachineName, String snapshotName, int startupWaitingPeriodSeconds, String shutdownMethod, boolean rebootAfterRun, int startupTimesToRetryOnFailure, String beforeJobSnapshotName) throws Descriptor.FormException, IOException
- Throws:
Descriptor.FormException
IOException
-
-
Method Detail
-
getHypervisorDescription
public String getHypervisorDescription()
-
getVirtualMachineName
public String getVirtualMachineName()
-
getSnapshotName
public String getSnapshotName()
-
getStartupWaitingPeriodSeconds
public int getStartupWaitingPeriodSeconds()
-
getShutdownMethod
public String getShutdownMethod()
-
getRebootAfterRun
public boolean getRebootAfterRun()
-
getStartupTimesToRetryOnFailure
public int getStartupTimesToRetryOnFailure()
-
getBeforeJobSnapshotName
public String getBeforeJobSnapshotName()
-
getDelegateLauncher
public ComputerLauncher getDelegateLauncher()
-
createComputer
public Computer createComputer()
- Overrides:
createComputer
in classSlave
-
-