public class ForemanSharedNodeCloud
extends hudson.slaves.Cloud
| Modifier and Type | Class and Description |
|---|---|
static class |
ForemanSharedNodeCloud.DescriptorImpl
Descriptor for Foreman Cloud.
|
static class |
ForemanSharedNodeCloud.ForemanSharedNodeWorker
Extension to update
|
| Constructor and Description |
|---|
ForemanSharedNodeCloud(String name)
Constructor with name.
|
ForemanSharedNodeCloud(String cloudName,
String url,
String user,
hudson.util.Secret password,
String credentialsId,
Integer sshConnectionTimeOut)
Constructor for Config Page.
|
| Modifier and Type | Method and Description |
|---|---|
static DisposableImpl |
addDisposableEvent(String cloudName,
String hostName) |
boolean |
canProvision(hudson.model.Label label) |
static ForemanSharedNodeCloud |
getByName(String name)
Get Cloud using provided name.
|
String |
getCloudName()
Get Foreman Cloud Name.
|
String |
getCredentialsId()
Get credentials for SSH connection.
|
hudson.util.Secret |
getPassword()
Foreman password.
|
Integer |
getSshConnectionTimeOut()
Get SSH connection time in seconds.
|
String |
getUrl()
Get Foreman url.
|
String |
getUser()
Get Foreman user.
|
Collection<hudson.slaves.NodeProvisioner.PlannedNode> |
provision(hudson.model.Label label,
int excessWorkload) |
void |
setCloudName(String cloudName)
Set Foreman Cloud Name.
|
void |
setCredentialsId(String credentialsId)
Setter for credentialsId.
|
void |
setLauncherFactory(ForemanComputerLauncherFactory launcherFactory)
Setter for Launcher Factory.
|
void |
setPassword(hudson.util.Secret password)
Set Foreman password.
|
void |
setUrl(String url)
Set Foreman url.
|
void |
setUser(String user)
Set Foreman user.
|
all, checkPermission, getACL, getDescriptor, getDisplayName, getSearchUrl, hasPermissionpublic ForemanSharedNodeCloud(String name)
name - Name of cloud.@DataBoundConstructor public ForemanSharedNodeCloud(String cloudName, String url, String user, hudson.util.Secret password, String credentialsId, Integer sshConnectionTimeOut)
cloudName - name of cloud.url - Foreman URL.user - user to connect with.password - password to connect with.credentialsId - creds to use to connect to slave.sshConnectionTimeOut - timeout for SSH connection in secs.@DataBoundSetter public void setCredentialsId(String credentialsId)
credentialsId - to use to connect to slaves with.public void setLauncherFactory(ForemanComputerLauncherFactory launcherFactory)
launcherFactory - launcherFactory to use.public boolean canProvision(hudson.model.Label label)
canProvision in class hudson.slaves.Cloudpublic Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int excessWorkload)
provision in class hudson.slaves.Cloud@CheckForNull public static ForemanSharedNodeCloud getByName(String name) throws IllegalArgumentException
name - Cloud name.IllegalArgumentException - if occurs.public static DisposableImpl addDisposableEvent(String cloudName, String hostName)
public String getCloudName()
public void setCloudName(String cloudName)
cloudName - name of cloud.public String getUrl()
public void setUrl(String url)
url - url.public String getUser()
public void setUser(String user)
user - user.public hudson.util.Secret getPassword()
public void setPassword(hudson.util.Secret password)
password - Secret.public String getCredentialsId()
public Integer getSshConnectionTimeOut()
Copyright © 2016. All rights reserved.