Class AciAgent
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Node
-
- hudson.model.Slave
-
- hudson.slaves.AbstractCloudSlave
-
- com.microsoft.jenkins.containeragents.aci.AciAgent
-
- All Implemented Interfaces:
ISSHLaunchable
,ExtensionPoint
,Describable<Node>
,ModelObject
,ReconfigurableDescribable<Node>
,Saveable
,SearchableModelObject
,SearchItem
,AccessControlled
,Serializable
,OnMaster
,org.jenkinsci.plugins.cloudstats.TrackedItem
public class AciAgent extends AbstractCloudSlave implements ISSHLaunchable, org.jenkinsci.plugins.cloudstats.TrackedItem
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AciAgent.DescriptorImpl
-
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 inherited from class hudson.model.Node
holdOffLaunchUntilSave, SKIP_BUILD_CHECK_ON_FLYWEIGHTS
-
-
Constructor Summary
Constructors Constructor Description AciAgent(AciCloud cloud, AciContainerTemplate template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_terminate(TaskListener listener)
AciComputer
createComputer()
String
getDeployName()
String
getHost()
org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id
getId()
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials
getSshCredential()
int
getSshPort()
boolean
isSshLaunchType()
Node
reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form)
void
setDeployName(String deployName)
void
setHost(String host)
-
Methods inherited from class hudson.slaves.AbstractCloudSlave
terminate
-
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, 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
-
-
-
-
Constructor Detail
-
AciAgent
@DataBoundConstructor public AciAgent(AciCloud cloud, AciContainerTemplate template) throws Descriptor.FormException, IOException
- Throws:
Descriptor.FormException
IOException
-
-
Method Detail
-
createComputer
public AciComputer createComputer()
- Specified by:
createComputer
in classAbstractCloudSlave
-
_terminate
protected void _terminate(TaskListener listener) throws IOException, InterruptedException
- Specified by:
_terminate
in classAbstractCloudSlave
- Throws:
IOException
InterruptedException
-
setDeployName
@DataBoundSetter public void setDeployName(String deployName)
-
getDeployName
public String getDeployName()
-
reconfigure
public Node reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) throws Descriptor.FormException
- Specified by:
reconfigure
in interfaceReconfigurableDescribable<Node>
- Overrides:
reconfigure
in classNode
- Throws:
Descriptor.FormException
-
getSshCredential
public com.cloudbees.plugins.credentials.common.StandardUsernameCredentials getSshCredential() throws IllegalArgumentException
- Specified by:
getSshCredential
in interfaceISSHLaunchable
- Throws:
IllegalArgumentException
-
getSshPort
public int getSshPort()
- Specified by:
getSshPort
in interfaceISSHLaunchable
-
isSshLaunchType
public boolean isSshLaunchType()
- Specified by:
isSshLaunchType
in interfaceISSHLaunchable
-
getHost
public String getHost()
- Specified by:
getHost
in interfaceISSHLaunchable
-
setHost
public void setHost(String host)
-
getId
@NonNull public org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id getId()
- Specified by:
getId
in interfaceorg.jenkinsci.plugins.cloudstats.TrackedItem
-
-