public class DockerSlave
extends hudson.slaves.AbstractCloudSlave
implements org.jenkinsci.plugins.cloudstats.TrackedItem
Modifier and Type | Class and Description |
---|---|
static class |
DockerSlave.DescriptorImpl |
hudson.model.Slave.JnlpJar, hudson.model.Slave.SlaveDescriptor
Modifier and Type | Field and Description |
---|---|
protected DockerSlaveTemplate |
dockerSlaveTemplate
copy of container setting
|
protected org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id |
provisioningId |
Constructor and Description |
---|
DockerSlave(String slaveName,
String nodeDescription,
hudson.slaves.ComputerLauncher launcher,
String containerId,
DockerSlaveTemplate dockerSlaveTemplate,
String cloudId,
org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id provisioningId) |
Modifier and Type | Method and Description |
---|---|
protected void |
_terminate(hudson.model.TaskListener listener) |
hudson.model.queue.CauseOfBlockage |
canTake(hudson.model.Queue.BuildableItem item) |
boolean |
containerExistsInCloud() |
DockerComputer |
createComputer() |
com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.DockerClient |
getClient() |
DockerCloud |
getCloud() |
String |
getCloudId() |
String |
getContainerId() |
String |
getDisplayName() |
DockerSlaveTemplate |
getDockerSlaveTemplate() |
org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id |
getId() |
hudson.model.Node |
reconfigure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject form) |
void |
setDockerSlaveTemplate(DockerSlaveTemplate dockerSlaveTemplate) |
String |
toString() |
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
canTake, checkPermission, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getFileSystemProvisioner, getLabelCloud, getNodePropertyDescriptors, getSearchUrl, getSelfLabel, hasPermission, isAcceptingTasks, isHoldOffLaunchUntilSave, save, toComputer
protected DockerSlaveTemplate dockerSlaveTemplate
protected org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id provisioningId
public DockerSlave(String slaveName, String nodeDescription, hudson.slaves.ComputerLauncher launcher, String containerId, DockerSlaveTemplate dockerSlaveTemplate, String cloudId, org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id provisioningId) throws IOException, hudson.model.Descriptor.FormException
IOException
hudson.model.Descriptor.FormException
public String getContainerId()
public String getCloudId()
public DockerSlaveTemplate getDockerSlaveTemplate()
public void setDockerSlaveTemplate(DockerSlaveTemplate dockerSlaveTemplate)
@Nonnull public DockerCloud getCloud()
public String getDisplayName()
getDisplayName
in interface hudson.model.ModelObject
getDisplayName
in class hudson.model.Node
public DockerComputer createComputer()
createComputer
in class hudson.slaves.AbstractCloudSlave
public hudson.model.queue.CauseOfBlockage canTake(hudson.model.Queue.BuildableItem item)
canTake
in class hudson.model.Node
public boolean containerExistsInCloud()
public hudson.model.Node reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) throws hudson.model.Descriptor.FormException
reconfigure
in interface hudson.model.ReconfigurableDescribable<hudson.model.Node>
reconfigure
in class hudson.model.Node
hudson.model.Descriptor.FormException
protected void _terminate(hudson.model.TaskListener listener) throws IOException, InterruptedException
_terminate
in class hudson.slaves.AbstractCloudSlave
IOException
InterruptedException
@Nullable public org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id getId()
getId
in interface org.jenkinsci.plugins.cloudstats.TrackedItem
public com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.DockerClient getClient()
public String toString()
toString
in class hudson.model.Slave
Copyright © 2016–2020. All rights reserved.