Package com.amazon.jenkins.ec2fleet
Class EC2FleetNode
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Node
hudson.model.Slave
com.amazon.jenkins.ec2fleet.EC2FleetNode
- All Implemented Interfaces:
ExtensionPoint,Describable<Node>,ModelObject,PersistenceRoot,ReconfigurableDescribable<Node>,Saveable,SearchableModelObject,SearchItem,AccessControlled,EphemeralNode,Serializable,OnMaster
The
EC2FleetNode represents an agent running on an EC2 instance, responsible for creating EC2FleetNodeComputer.- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.model.Slave
Slave.JnlpJar, Slave.SlaveDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Node
holdOffLaunchUntilSave, SKIP_BUILD_CHECK_ON_FLYWEIGHTS -
Constructor Summary
ConstructorsConstructorDescriptionEC2FleetNode(String instanceId, String nodeDescription, String remoteFS, int numExecutors, Node.Mode mode, String label, List<? extends NodeProperty<?>> nodeProperties, String cloudName, ComputerLauncher launcher, int maxTotalUses) -
Method Summary
Modifier and TypeMethodDescriptionasNode()voidgetCloud()intintvoidsetInstanceId(String instanceId) Methods inherited from class hudson.model.Slave
createLauncher, equals, getClockDifferenceCallable, getComputer, getLabelAtomSet, getLabelString, getLauncher, getMode, getNodeDescription, getNodeName, getNodeProperties, getNumExecutors, getRemoteFS, getRetentionStrategy, getRootPath, getUserId, getWorkspaceFor, getWorkspaceRoot, hashCode, readResolve, setLabelString, setLauncher, setMode, setNodeDescription, setNodeName, setNodeProperties, setNumExecutors, setRetentionStrategy, setUserId, toStringMethods inherited from class hudson.model.Node
canTake, canTake, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getConfigFile, getFileSystemProvisioner, getLabelCloud, getNodeProperty, getNodeProperty, getNodePropertyDescriptors, getRootDir, getSearchUrl, getSelfLabel, getTemporaryOfflineCause, isAcceptingTasks, isHoldOffLaunchUntilSave, onLoad, reconfigure, reconfigure, save, toComputerMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2Methods inherited from interface hudson.search.SearchItem
getSearchIcon
-
Constructor Details
-
EC2FleetNode
public EC2FleetNode(String instanceId, String nodeDescription, String remoteFS, int numExecutors, Node.Mode mode, String label, List<? extends NodeProperty<?>> nodeProperties, String cloudName, ComputerLauncher launcher, int maxTotalUses) throws IOException, Descriptor.FormException - Throws:
IOExceptionDescriptor.FormException
-
-
Method Details
-
getCloudName
-
getInstanceId
-
setInstanceId
-
getMaxTotalUses
public int getMaxTotalUses() -
getUsesRemaining
public int getUsesRemaining() -
decrementUsesRemaining
public void decrementUsesRemaining() -
asNode
- Specified by:
asNodein interfaceEphemeralNode
-
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject- Overrides:
getDisplayNamein classNode
-
createComputer
- Overrides:
createComputerin classSlave
-
getCloud
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<Node>- Overrides:
getDescriptorin classSlave
-