MigrateSpec

The MigrateSpec class defines the options for the migrate action. An instance of this class is passed to the resource.migrate() method.

Example

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)

See Also

Javadoc: MigrateSpec