public class BatchCloud
extends hudson.slaves.Cloud
Modifier and Type | Class and Description |
---|---|
static class |
BatchCloud.DescriptorImpl |
Constructor and Description |
---|
BatchCloud(String cloudName,
String queueType,
String label,
String hostname,
int port,
String username,
String password) |
Modifier and Type | Method and Description |
---|---|
boolean |
canProvision(hudson.model.Label label)
Checks if a jobs label matches the clouds label and determines if a slave
should be created
|
String |
getCloudName() |
BatchCloud.DescriptorImpl |
getDescriptor() |
String |
getHostname() |
String |
getLabel() |
String |
getPassword() |
int |
getPort() |
String |
getQueueType() |
String |
getUsername() |
Collection<hudson.slaves.NodeProvisioner.PlannedNode> |
provision(hudson.model.Label label,
int excessWorkload)
Creates a slave when there is a running job with an appropriate label
|
void |
setCloudName(String cloudName) |
void |
setHostname(String hostname) |
void |
setLabel(String label) |
void |
setPassword(String password) |
void |
setPort(int port) |
void |
setQueueType(String queueType) |
void |
setUsername(String username) |
all, checkPermission, getACL, getDisplayName, getSearchUrl, hasPermission
public Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int excessWorkload)
provision
in class hudson.slaves.Cloud
label
- excessWorkload
- public boolean canProvision(hudson.model.Label label)
canProvision
in class hudson.slaves.Cloud
label
- public void setCloudName(String cloudName)
public String getCloudName()
public String getQueueType()
public void setQueueType(String queueType)
public String getLabel()
public void setLabel(String label)
public String getHostname()
public void setHostname(String hostname)
public int getPort()
public void setPort(int port)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public BatchCloud.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.slaves.Cloud>
getDescriptor
in class hudson.slaves.Cloud
Copyright © 2004-2015. All Rights Reserved.