The MigrateSpec class defines the options for the migrate action. An instance of this class is passed to the resource.migrate() method.
The following is an example of using MigrateSpec to define a migrate action for a Virtual Machine named "sles10" to a VM Host named "host2:"
vm = getMatrix().getGridObject(TYPE_RESOURCE,"sles10") spec = MigrateSpec() spec.setHost('host2') vm.migrate(spec)
Javadoc: MigrateSpec