public class BaremetalCloud
extends hudson.slaves.AbstractCloudImpl
| Modifier and Type | Class and Description |
|---|---|
static class |
BaremetalCloud.DescriptorImpl |
| Modifier and Type | Field and Description |
|---|---|
static String |
INSTANCE_NAME_PREFIX
The prefix to add to the names of created instances.
|
static String |
NAME_PREFIX
The prefix to add to names provided by the user in the UI to ensure that
names of clouds in different plugins do not conflict.
|
| Constructor and Description |
|---|
BaremetalCloud(String cloudName,
String fingerprint,
String apikey,
String passphrase,
String tenantId,
String userId,
String regionId,
String instanceCapStr,
int nextTemplateId,
List<? extends BaremetalCloudAgentTemplate> templates) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProvision(hudson.model.Label label) |
org.kohsuke.stapler.HttpResponse |
doIndex()
The breadcrumb on the
provision.jelly page contains a link to
this object. |
void |
doProvision(int templateId,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Called by
computerSet.jelly when explicitly provisioning a new
node via the nodes page. |
String |
getApikey() |
BaremetalCloudClient |
getClient() |
String |
getCloudName() |
String |
getDisplayName() |
protected String |
getEncryptedValue(String str) |
String |
getFingerprint() |
int |
getNextTemplateId() |
String |
getPassphrase() |
protected String |
getPlainText(String str) |
Class<?> |
getProvisionSidePanelClass()
Called by
provision.jelly to show a sidepanel. |
String |
getProvisionStartedMessage(javax.servlet.http.HttpServletRequest req)
Display a provisioning message based on request attributes set by
doProvision(int, org.kohsuke.stapler.StaplerRequest, org.kohsuke.stapler.StaplerResponse). |
String |
getRegionId() |
BaremetalCloudAgentTemplate |
getTemplate(hudson.model.Label label) |
List<? extends BaremetalCloudAgentTemplate> |
getTemplates() |
String |
getTenantId() |
String |
getUserId() |
Collection<hudson.slaves.NodeProvisioner.PlannedNode> |
provision(hudson.model.Label label,
int excessWorkload) |
void |
recycleCloudResources(String instanceId) |
getInstanceCap, getInstanceCapStr, setInstanceCap, setInstanceCapStrall, checkPermission, getACL, getDescriptor, getSearchUrl, hasPermissionpublic static final String NAME_PREFIX
public static final String INSTANCE_NAME_PREFIX
public String getDisplayName()
getDisplayName in interface hudson.model.ModelObjectgetDisplayName in class hudson.slaves.Cloudpublic String getCloudName()
public String getFingerprint()
public String getApikey()
public String getPassphrase()
public String getTenantId()
public String getUserId()
public String getRegionId()
public int getNextTemplateId()
public List<? extends BaremetalCloudAgentTemplate> getTemplates()
public Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int excessWorkload)
provision in class hudson.slaves.Cloudpublic void recycleCloudResources(String instanceId) throws IOException
IOExceptionpublic BaremetalCloudAgentTemplate getTemplate(hudson.model.Label label)
public void doProvision(@QueryParameter
int templateId,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws javax.servlet.ServletException,
IOException
computerSet.jelly when explicitly provisioning a new
node via the nodes page.templateId - template idreq - requestrsp - responsejavax.servlet.ServletException - if a servlet exception occursIOException - if a IO error occurspublic Class<?> getProvisionSidePanelClass()
provision.jelly to show a sidepanel.public String getProvisionStartedMessage(javax.servlet.http.HttpServletRequest req)
doProvision(int, org.kohsuke.stapler.StaplerRequest, org.kohsuke.stapler.StaplerResponse).req - requestpublic org.kohsuke.stapler.HttpResponse doIndex()
throws IOException
provision.jelly page contains a link to
this object. We have no data to display, so redirect the user to the
computer set page.IOException - if an IO error occurspublic BaremetalCloudClient getClient()
public boolean canProvision(hudson.model.Label label)
canProvision in class hudson.slaves.CloudCopyright © 2016–2018. All rights reserved.