|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.novell.zos.jdl.ProvisionSpec
public class ProvisionSpec
Defines the attributes for starting a provision.
An instance of this class is passed to the resource.provision() method.
Example of using ProvisionSpec for defining a provision
to reserve a VM resource named 'sles10' for user 'nightly'
vm = getMatrix().getGridObject(TYPE_RESOURCE,"sles10")
spec = ProvisionSpec()
spec.setReserveForUser('nightly')
vm.provision(spec)
| Constructor Summary | |
|---|---|
ProvisionSpec()
Construct a default ProvisionSpec. |
|
| Method Summary | |
|---|---|
void |
setAssignHostImmediately(boolean value)
Set whether to wait or assign the host immediately. |
void |
setHost(java.lang.String host)
Set the host to provision the resource on. |
void |
setIdleTimeout(int idleTimeout)
Set idle timeout for provisioned resource. |
void |
setPriority(int priority)
Set a priority for VM host allocation for this provision using supplied integer constant. |
void |
setPriority(java.lang.String priority)
Set a priority for VM host allocation for this provision using supplied string. |
void |
setRepository(java.lang.String repository)
Set the repository to provision the resource on. |
void |
setReserveForJob(java.lang.String jobID)
Set the job ID to reserve the provisioned resource for. |
void |
setReserveForUser(java.lang.String userID)
Set the user ID to reserve the provisioned resource for. |
void |
setReserveWithPolicy(java.lang.String policyText)
Set a policy to use for reserving the provisioned resource. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProvisionSpec()
| Method Detail |
|---|
public void setReserveForJob(java.lang.String jobID)
jobID - ID for job to reserve forpublic void setReserveForUser(java.lang.String userID)
userID - ID of user to reserve forpublic void setIdleTimeout(int idleTimeout)
resource.provisioned.timeout
idleTimeout - Idle timeout in seconds for provisioned resourcepublic void setPriority(java.lang.String priority)
priority - Priority to set in the user's bandpublic void setPriority(int priority)
priority - Priority to set in the user's bandpublic void setReserveWithPolicy(java.lang.String policyText)
policyText - Policy textpublic void setHost(java.lang.String host)
host - ID of host to provision onpublic void setRepository(java.lang.String repository)
repository - ID of repository to provision onpublic void setAssignHostImmediately(boolean value)
value - True to assign immediately, false to wait
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||