@Metadata(description="Base class for instance templates, all instance templates must extend it")
public abstract class BaseHostTemplate
extends com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
| Constructor and Description |
|---|
BaseHostTemplate() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBootTimeout() |
ConnectionType |
getConnectionType() |
abstract java.lang.String |
getInstanceIpAddress(java.lang.String cloudId)
Should return instance public IP address *and* wait until instance is considered running according to hypervisor
|
java.lang.String |
getMarkerPath() |
com.xebialabs.overthere.OperatingSystemFamily |
getOs() |
java.lang.String |
getPassword() |
java.lang.String |
getPrivateKeyFile() |
int |
getRetryDelay() |
java.lang.String |
getUsername() |
java.lang.String |
getXmlDescriptor() |
java.util.List<? extends com.xebialabs.deployit.plugin.api.flow.Step> |
instantiate(HostParameters params) |
abstract java.util.List<? extends com.xebialabs.deployit.plugin.api.flow.Step> |
produceCreateSteps(java.lang.String name,
int instanceSeq)
Implementations should provide list of steps needed to create instance from template
|
abstract java.util.List<? extends com.xebialabs.deployit.plugin.api.flow.Step> |
produceDestroySteps(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem instance)
Implementations should provide list of steps needed to destroy instance
|
void |
setConnectionType(ConnectionType connectionType) |
void |
setMarkerPath(java.lang.String markerPath) |
void |
setOs(com.xebialabs.overthere.OperatingSystemFamily os) |
void |
setPrivateKeyFile(java.lang.String privateKeyFile) |
void |
setXmlDescriptor(java.lang.String xmlDescriptor) |
java.util.List<? extends com.xebialabs.deployit.plugin.api.flow.Step> |
validateDescriptor() |
compareTo, equals, get$token, getId, getName, getProperty, getPropertyDescriptor, getSyntheticProperties, getSyntheticProperty, getType, hashCode, hasProperty, hasSyntheticProperty, putSyntheticProperties, putSyntheticProperty, set$token, setId, setProperty, setSyntheticProperties, setType, toString@ControlTask(label="Validate descriptor",
description="Validate XML descriptor")
public java.util.List<? extends com.xebialabs.deployit.plugin.api.flow.Step> validateDescriptor()
@ControlTask(label="Instantiate",
description="Create instance from template",
parameterType="cloud.HostParameters")
public java.util.List<? extends com.xebialabs.deployit.plugin.api.flow.Step> instantiate(HostParameters params)
public java.lang.String getXmlDescriptor()
public void setXmlDescriptor(java.lang.String xmlDescriptor)
public void setPrivateKeyFile(java.lang.String privateKeyFile)
public void setMarkerPath(java.lang.String markerPath)
public java.lang.String getPrivateKeyFile()
public com.xebialabs.overthere.OperatingSystemFamily getOs()
public void setOs(com.xebialabs.overthere.OperatingSystemFamily os)
public java.lang.String getUsername()
public java.lang.String getPassword()
public java.lang.String getMarkerPath()
public int getBootTimeout()
public int getRetryDelay()
public ConnectionType getConnectionType()
public void setConnectionType(ConnectionType connectionType)
public abstract java.util.List<? extends com.xebialabs.deployit.plugin.api.flow.Step> produceCreateSteps(java.lang.String name,
int instanceSeq)
public abstract java.util.List<? extends com.xebialabs.deployit.plugin.api.flow.Step> produceDestroySteps(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem instance)
public abstract java.lang.String getInstanceIpAddress(java.lang.String cloudId)
throws java.util.concurrent.TimeoutException
java.util.concurrent.TimeoutException