Class ECSLauncher
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<ComputerLauncher>
-
- hudson.slaves.ComputerLauncher
-
- hudson.slaves.JNLPLauncher
-
- com.cloudbees.jenkins.plugins.amazonecs.ECSLauncher
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ComputerLauncher>
public class ECSLauncher extends JNLPLauncher
Launches on ECS the specifiedECSComputer
instance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ECSLauncher.RetryableLaunchFailure
-
Nested classes/interfaces inherited from class hudson.slaves.JNLPLauncher
JNLPLauncher.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.slaves.JNLPLauncher
CUSTOM_INBOUND_URL_PROPERTY, DESCRIPTOR, tunnel, vmargs
-
Fields inherited from class hudson.slaves.ComputerLauncher
LIST
-
-
Constructor Summary
Constructors Constructor Description ECSLauncher(ECSCloud cloud, String tunnel, String vmargs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLaunchSupported()
void
launch(SlaveComputer computer, TaskListener listener)
protected com.amazonaws.services.ecs.model.Task
launchECSTask(ECSComputer ecsComputer, TaskListener listener, long timeout)
protected com.amazonaws.services.ecs.model.Task
launchECSTaskWithRetry(ECSComputer ecsComputer, TaskListener listener, long timeout, int maxAttempts)
protected void
waitForAgent(ECSSlave agent, TaskListener listener, long timeout)
-
Methods inherited from class hudson.slaves.JNLPLauncher
getInboundAgentUrl, getWorkDirOptions, getWorkDirSettings, isWebSocket, readResolve, setWebSocket, setWorkDirSettings
-
Methods inherited from class hudson.slaves.ComputerLauncher
afterDisconnect, afterDisconnect, beforeDisconnect, beforeDisconnect, checkJavaVersion, launch
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
isLaunchSupported
public boolean isLaunchSupported()
- Overrides:
isLaunchSupported
in classJNLPLauncher
-
launch
public void launch(SlaveComputer computer, TaskListener listener)
- Overrides:
launch
in classJNLPLauncher
-
launchECSTaskWithRetry
protected com.amazonaws.services.ecs.model.Task launchECSTaskWithRetry(ECSComputer ecsComputer, TaskListener listener, long timeout, int maxAttempts) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
launchECSTask
protected com.amazonaws.services.ecs.model.Task launchECSTask(ECSComputer ecsComputer, TaskListener listener, long timeout) throws IOException, InterruptedException, ECSLauncher.RetryableLaunchFailure
-
waitForAgent
protected void waitForAgent(ECSSlave agent, TaskListener listener, long timeout) throws InterruptedException
- Throws:
InterruptedException
-
-