dhlaluku commented on a change in pull request #2848: Vmware offline migration
URL: https://github.com/apache/cloudstack/pull/2848#discussion_r235526906
 
 

 ##########
 File path: 
engine/api/src/main/java/org/apache/cloudstack/engine/subsystem/api/storage/DataMotionStrategy.java
 ##########
 @@ -25,11 +25,28 @@
 import com.cloud.agent.api.to.VirtualMachineTO;
 import com.cloud.host.Host;
 
+/**
+ * interface to query how to move data around and to commision the moving
+ */
 public interface DataMotionStrategy {
+    /**
+     * reports whether this instance can do a move from source to destination
+     * @param srcData object to move
+     * @param destData location to move it to
+     * @return the expertise level with which this instance knows how to 
handle the move
+     */
     StrategyPriority canHandle(DataObject srcData, DataObject destData);
 
     StrategyPriority canHandle(Map<VolumeInfo, DataStore> volumeMap, Host 
srcHost, Host destHost);
 
+    /**
+     * copy the source volume to its destination (on a host if not null)
 
 Review comment:
   @rafaelweingartner StorageMotionStrategy that supports host to be null is 
selected and used for migrations, e.g. VmwareStorageStrategyMotion used by this 
PR/feature.
   
   A non-blank host is only used for copying objects between primary storage 
pools.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to