|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.novell.zos.jdl.MigrateSpec
public class MigrateSpec
Defines the options for the migrate action.
An instance of this class is passed to the resource.migrate()
method.
Example of using MigrateSpec for defining a migrate action
for a VM named 'sles10' to Vm Host 'host2'
vm = getMatrix().getGridObject(TYPE_RESOURCE,"sles10")
spec = MigrateSpec()
spec.setHost('host2')
vm.migrate(spec)
| Constructor Summary | |
|---|---|
MigrateSpec()
Construct a default MigrateSpec |
|
| Method Summary | |
|---|---|
void |
setAssignHostImmediately(boolean value)
Set whether to wait or assign the destination Vm Host immediately. |
void |
setHost(java.lang.String host)
Set the Vm Host Grid Object repesenting the host to migrate the resource to. |
void |
setPriority(int priority)
Set a priority for VM host allocation for the migrate using supplied integer constant. |
void |
setPriority(java.lang.String priority)
Set a priority for VM host allocation for the migrate using supplied string. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MigrateSpec()
| Method Detail |
|---|
public void setHost(java.lang.String host)
If not set, then the best available host is chosen.
host - ID of host to migrate topublic 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 setAssignHostImmediately(boolean value)
value - True to assign immediately, false to wait and keep trying to find a host
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||