Package com.parallels.jenkins
Class AgentTemplate
- All Implemented Interfaces:
Describable<AgentTemplate>,Serializable
Per-VM-type configuration. One
AgentTemplate maps to one VM type in
Parallels DevOps Service. The available provisioning strategies are rendered via
<f:dropdownDescriptorSelector>; incompatible combinations (e.g. Clone
in Orchestrator mode) are rejected at save time by
PrlDevopsCloud.DescriptorImpl.newInstance(org.kohsuke.stapler.StaplerRequest2, net.sf.json.JSONObject).- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintintintintintbooleanReturnstruewhen this template's label set satisfies the given JenkinsLabelexpression.provision(String cloudName, Label label, PrlDevopsApiClient apiClient, Duration timeout, Duration pollInterval, ExecutorService executor) protected ObjectXStream deserialization hook.voidsetAgentWorkspaceDir(String agentWorkspaceDir) voidsetJavaPath(String javaPath) voidsetJvmOptions(String jvmOptions) voidsetNumExecutors(int numExecutors) voidsetProvisioningConfig(ProvisioningConfig provisioningConfig) voidsetSshCredentialsId(String sshCredentialsId) voidsetSshPort(int sshPort) voidsetSshRetries(int sshRetries) voidsetSshRetryDelaySec(int sshRetryDelaySec) voidsetVmReadyPollIntervalSeconds(int vmReadyPollIntervalSeconds) voidsetVmReadyTimeoutSeconds(int vmReadyTimeoutSeconds) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
AgentTemplate
-
-
Method Details
-
getTemplateLabel
-
getVmUser
-
getSshCredentialsId
-
getSshPort
public int getSshPort() -
getJavaPath
-
getJvmOptions
-
getSshRetries
public int getSshRetries() -
getSshRetryDelaySec
public int getSshRetryDelaySec() -
getAgentWorkspaceDir
-
getNumExecutors
public int getNumExecutors() -
getVmReadyTimeoutSeconds
public int getVmReadyTimeoutSeconds() -
getVmReadyPollIntervalSeconds
public int getVmReadyPollIntervalSeconds() -
getProvisioningConfig
-
canProvision
public boolean canProvision() -
provision
public PrlDevopsPlannedNode provision(String cloudName, Label label, PrlDevopsApiClient apiClient, Duration timeout, Duration pollInterval, ExecutorService executor) throws PrlApiException - Throws:
PrlApiException
-
readResolve
XStream deserialization hook. Migrates old configs that storedbaseVmNamedirectly on this class (before theProvisioningConfigrefactor) into aCloneProvisioningConfig. Also guards againstnullfor configs that predate both fields. -
getBaseVmName
-
getArchitecture
-
getCatalogId
-
getCatalogVersion
-
getCatalogUrl
-
getCatalogCredentialsId
-
setVmUser
-
setSshCredentialsId
-
setSshPort
@DataBoundSetter public void setSshPort(int sshPort) -
setJavaPath
-
setJvmOptions
-
setSshRetries
@DataBoundSetter public void setSshRetries(int sshRetries) -
setSshRetryDelaySec
@DataBoundSetter public void setSshRetryDelaySec(int sshRetryDelaySec) -
setAgentWorkspaceDir
-
setNumExecutors
@DataBoundSetter public void setNumExecutors(int numExecutors) -
setVmReadyTimeoutSeconds
@DataBoundSetter public void setVmReadyTimeoutSeconds(int vmReadyTimeoutSeconds) -
setVmReadyPollIntervalSeconds
@DataBoundSetter public void setVmReadyPollIntervalSeconds(int vmReadyPollIntervalSeconds) -
setProvisioningConfig
-
matches
Returnstruewhen this template's label set satisfies the given JenkinsLabelexpression.
-