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
,ReconfigurableDescribable<Node>
,Saveable
,SearchableModelObject
,SearchItem
,AccessControlled
,Serializable
,OnMaster
public class BaremetalCloudAgent extends AbstractCloudSlave
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BaremetalCloudAgent.BaremetalAgentDescriptor
-
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 String
cloudName
String
customJavaPath
String
customJVMOpts
String
initScript
String
jenkinsAgentUser
int
templateId
boolean
verificationStrategy
-
Fields inherited from class hudson.model.Node
holdOffLaunchUntilSave, SKIP_BUILD_CHECK_ON_FLYWEIGHTS
-
-
Constructor Summary
Constructors Constructor Description BaremetalCloudAgent(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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_terminate(TaskListener listener)
AbstractCloudComputer<BaremetalCloudAgent>
createComputer()
BaremetalCloud
getCloud()
String
getInstanceId()
String
getJenkinsAgentUser()
protected boolean
isAlive()
Node
reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form)
-
Methods inherited from class hudson.slaves.AbstractCloudSlave
terminate
-
Methods inherited from class hudson.model.Slave
createLauncher, equals, getClockDifferenceCallable, getComputer, getDescriptor, 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, 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, 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
-
cloudName
public final String cloudName
-
jenkinsAgentUser
public final String jenkinsAgentUser
-
customJavaPath
public final String customJavaPath
-
customJVMOpts
public final String customJVMOpts
-
initScript
public final String initScript
-
templateId
public final int templateId
-
verificationStrategy
public boolean verificationStrategy
-
-
Constructor Detail
-
BaremetalCloudAgent
public BaremetalCloudAgent(String name, BaremetalCloudAgentTemplate template, String cloudName, String instanceId, String host) throws IOException, Descriptor.FormException
- Throws:
IOException
Descriptor.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) throws IOException, Descriptor.FormException
- Throws:
IOException
Descriptor.FormException
-
-
Method Detail
-
getJenkinsAgentUser
public String getJenkinsAgentUser()
-
getInstanceId
public String getInstanceId()
-
createComputer
public AbstractCloudComputer<BaremetalCloudAgent> createComputer()
- Specified by:
createComputer
in classAbstractCloudSlave
-
getCloud
public BaremetalCloud getCloud()
-
_terminate
protected void _terminate(TaskListener listener) throws IOException, InterruptedException
- Specified by:
_terminate
in classAbstractCloudSlave
- Throws:
IOException
InterruptedException
-
isAlive
protected boolean isAlive() throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
reconfigure
public Node reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form)
- Specified by:
reconfigure
in interfaceReconfigurableDescribable<Node>
- Overrides:
reconfigure
in classNode
-
-