com.novell.zos.jdl
Class MigrateSpec

java.lang.Object
  extended by com.novell.zos.jdl.MigrateSpec

public class MigrateSpec
extends java.lang.Object

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

MigrateSpec

public MigrateSpec()
Construct a default MigrateSpec

Method Detail

setHost

public void setHost(java.lang.String host)
Set the Vm Host Grid Object repesenting the host to migrate the resource to.

If not set, then the best available host is chosen.

Parameters:
host - ID of host to migrate to

setPriority

public void setPriority(java.lang.String priority)
Set a priority for VM host allocation for the migrate using supplied string. Default is the user's priority.

Parameters:
priority - Priority to set in the user's band

setPriority

public void setPriority(int priority)
Set a priority for VM host allocation for the migrate using supplied integer constant. Default is the user's priority.

Parameters:
priority - Priority to set in the user's band

setAssignHostImmediately

public void setAssignHostImmediately(boolean value)
Set whether to wait or assign the destination Vm Host immediately. Default is false.

Parameters:
value - True to assign immediately, false to wait and keep trying to find a host


Copyright (c) 2011 Novell, Inc. All rights reserved.