|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.novell.zos.jdl.VmSpec
public class VmSpec
Defines the attributes for creating a VM.
An instance of this class is passed to resource.createInstance(), resource.createTemplate(),
resource.clone().
Example of using VmSpec for creating a clone
on a named host from a template resource
template = getMatrix().getGridObject(TYPE_RESOURCE,"myTemplate")
spec = VmSpec()
spec.setNewName("newvm")
spec.setHost('vmhost-qa')
template.clone(spec)
If the host and repository is not set, the default is to use the source resource object's
repository as the destination repository.
| Constructor Summary | |
|---|---|
VmSpec()
Construct a default VmSpec. |
|
| Method Summary | |
|---|---|
void |
setAutoprep(org.python.core.PyDictionary autoprep)
Set facts for personalizing the new VM. |
void |
setHost(java.lang.String host)
Set the recommended host for the new VM if required by the provisioning adapter. |
void |
setNewName(java.lang.String name)
Set the name of the to be created VM. |
void |
setRepository(java.lang.String repository)
Set the name of a repository for creating the VM if required by the provisioning adapter. |
void |
setUseAutoprep(boolean value)
Set whether to use the autoprep facts on the resource for creating the new VM. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VmSpec()
| Method Detail |
|---|
public void setNewName(java.lang.String name)
name - Name of new VMpublic void setRepository(java.lang.String repository)
repository - Name of repository to create inpublic void setAutoprep(org.python.core.PyDictionary autoprep)
autoprep - Dictionary of fact name and value to use for creating the VMpublic void setHost(java.lang.String host)
host - ID of Vm host to set as the recommended Vm Hostpublic void setUseAutoprep(boolean value)
value - True to use autoprep, false to not
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||