Package com.veertu.plugin.anka
Class AbstractAnkaSlave
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Node
hudson.model.Slave
com.veertu.plugin.anka.AbstractAnkaSlave
- All Implemented Interfaces:
ExtensionPoint
,Describable<Node>
,ModelObject
,ReconfigurableDescribable<Node>
,Saveable
,SearchableModelObject
,SearchItem
,AccessControlled
,Serializable
,OnMaster
- Direct Known Subclasses:
AnkaOnDemandSlave
Created by asafgur on 28/11/2016.
- See Also:
-
Nested Class Summary
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
Modifier and TypeFieldDescriptionprotected String
protected boolean
protected String
final int
protected boolean
protected boolean
protected AnkaCloudSlaveTemplate
Fields inherited from class hudson.model.Node
holdOffLaunchUntilSave, SKIP_BUILD_CHECK_ON_FLYWEIGHTS
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractAnkaSlave
(AnkaMgmtCloud cloud, String name, String nodeDescription, String remoteFS, int numExecutors, Node.Mode mode, String labelString, ComputerLauncher launcher, RetentionStrategy retentionStrategy, List<? extends NodeProperty<?>> nodeProperties, AnkaCloudSlaveTemplate template, String instanceId) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
getCloud()
boolean
isAlive()
boolean
boolean
void
setBuildId
(String buildId) void
setDescription
(String jobAndNumber) void
setDisplayName
(String displayName) void
setHadErrorsOnBuild
(boolean value) void
setJobNameAndNumber
(String jobNameAndNumber) void
setTaskExecuted
(boolean didExec) void
taskAccepted
(Executor executor, Queue.Task task) void
taskCompleted
(Executor executor, Queue.Task task, long durationMS) void
Methods inherited from class hudson.model.Slave
createLauncher, equals, getClockDifferenceCallable, getComputer, getLabelString, getLauncher, getMode, getNodeDescription, 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, 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 Details
-
template
-
launchTimeout
public final int launchTimeout- See Also:
-
displayName
-
taskExecuted
protected boolean taskExecuted -
saveImageSent
protected boolean saveImageSent -
hadProblemsInBuild
protected boolean hadProblemsInBuild -
jobNameAndNumber
-
-
Constructor Details
-
AbstractAnkaSlave
protected AbstractAnkaSlave(AnkaMgmtCloud cloud, String name, String nodeDescription, String remoteFS, int numExecutors, Node.Mode mode, String labelString, ComputerLauncher launcher, RetentionStrategy retentionStrategy, List<? extends NodeProperty<?>> nodeProperties, AnkaCloudSlaveTemplate template, String instanceId) throws IOException, Descriptor.FormException - Throws:
IOException
Descriptor.FormException
-
-
Method Details
-
getCloud
-
getJobNameAndNumber
-
setJobNameAndNumber
-
getNodeName
- Overrides:
getNodeName
in classSlave
-
getTemplate
-
getDisplayName
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in classNode
-
setDisplayName
-
createComputer
- Overrides:
createComputer
in classSlave
-
terminate
- Throws:
IOException
-
setTaskExecuted
public void setTaskExecuted(boolean didExec) -
connected
public void connected() -
taskAccepted
-
getInstanceId
-
isKeepAliveOnError
public boolean isKeepAliveOnError() -
canTerminate
public boolean canTerminate() -
setHadErrorsOnBuild
public void setHadErrorsOnBuild(boolean value) -
setDescription
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<Node>
- Overrides:
getDescriptor
in classSlave
-
isAlive
public boolean isAlive() -
isSchedulingOrPulling
public boolean isSchedulingOrPulling() -
taskCompleted
-
setBuildId
-