Class BaremetalCloudAgent
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Node
hudson.model.Slave
hudson.slaves.AbstractCloudSlave
com.oracle.cloud.baremetal.jenkins.BaremetalCloudAgent
- All Implemented Interfaces:
ExtensionPoint, Describable<Node>, ModelObject, PersistenceRoot, ReconfigurableDescribable<Node>, Saveable, SearchableModelObject, SearchItem, AccessControlled, Serializable, OnMaster
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Slave
Slave.JnlpJar, Slave.SlaveDescriptorNested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Stringfinal Stringfinal Stringfinal Stringfinal Stringintfinal intbooleanFields inherited from class Node
holdOffLaunchUntilSave, SKIP_BUILD_CHECK_ON_FLYWEIGHTS -
Constructor Summary
ConstructorsConstructorDescriptionBaremetalCloudAgent(String name, BaremetalCloudAgentTemplate template, String cloudName, String instanceId, String host) BaremetalCloudAgent(String name, String description, String remoteFS, String sshCredentialsId, Boolean assignPublicIP, Boolean usePrivateIP, int numExecutors, Node.Mode mode, String labelString, String idleTerminationMinutes, List<? extends NodeProperty<?>> nodeProperties, String cloudName, int sshConnectTimeoutMillis, boolean verificationStrategy, String instanceId, String jenkinsAgentUser, String customJavaPath, String customJVMOpts, String initScript, int initScriptTimeoutSeconds, String host, int templateId, int maxTotalUses) -
Method Summary
Modifier and TypeMethodDescriptionprotected void_terminate(TaskListener listener) getCloud()protected booleanisAlive()reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) Methods inherited from class AbstractCloudSlave
terminateMethods inherited from class Slave
createLauncher, drainLabelsToTrim, equals, getClockDifferenceCallable, getComputer, getDescriptor, getLabelAtomSet, getLabelString, getLauncher, getMode, getNodeDescription, getNodeName, getNodeProperties, getNumExecutors, getRemoteFS, getRetentionStrategy, getRootPath, getUserId, getWorkspaceFor, getWorkspaceRoot, hashCode, readResolve, save, setLabelString, setLauncher, setMode, setNodeDescription, setNodeName, setNodeProperties, setNumExecutors, setRetentionStrategy, setUserId, toStringMethods inherited from class Node
canTake, canTake, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getConfigFile, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodeProperty, getNodeProperty, getNodePropertyDescriptors, getRootDir, getSearchUrl, getSelfLabel, getTemporaryOfflineCause, isAcceptingTasks, isHoldOffLaunchUntilSave, onLoad, reconfigure, toComputerMethods inherited from class AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from interface AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2Methods inherited from interface SearchItem
getSearchGroup, getSearchIcon
-
Field Details
-
cloudName
-
jenkinsAgentUser
-
customJavaPath
-
customJVMOpts
-
initScript
-
templateId
public final int templateId -
verificationStrategy
public boolean verificationStrategy -
maxTotalUses
public int maxTotalUses
-
-
Constructor Details
-
BaremetalCloudAgent
public BaremetalCloudAgent(String name, BaremetalCloudAgentTemplate template, String cloudName, String instanceId, String host) throws IOException, Descriptor.FormException - Throws:
IOExceptionDescriptor.FormException
-
BaremetalCloudAgent
@DataBoundConstructor public BaremetalCloudAgent(String name, String description, String remoteFS, String sshCredentialsId, Boolean assignPublicIP, Boolean usePrivateIP, int numExecutors, Node.Mode mode, String labelString, String idleTerminationMinutes, List<? extends NodeProperty<?>> nodeProperties, String cloudName, int sshConnectTimeoutMillis, boolean verificationStrategy, String instanceId, String jenkinsAgentUser, String customJavaPath, String customJVMOpts, String initScript, int initScriptTimeoutSeconds, String host, int templateId, int maxTotalUses) throws IOException, Descriptor.FormException - Throws:
IOExceptionDescriptor.FormException
-
-
Method Details
-
getJenkinsAgentUser
-
getInstanceId
-
createComputer
- Specified by:
createComputerin classAbstractCloudSlave
-
getCloud
-
_terminate
- Specified by:
_terminatein classAbstractCloudSlave- Throws:
IOExceptionInterruptedException
-
isAlive
- Throws:
IOExceptionInterruptedException
-
reconfigure
- Specified by:
reconfigurein interfaceReconfigurableDescribable<Node>- Overrides:
reconfigurein classNode
-