private void internalGroupSnapCopyToTarget(StorageSystem storage,BlockSnapshot snapshot,List<URI> snapshotList) throws Exception {
  String snapGroupName=snapshot.getReplicationGroupInstance();
  CIMObjectPath targetGroup=_cimPath.getReplicationGroupPath(storage,snapGroupName);
  CIMObjectPath settingsState=_helper.getSettingsDefineStateForSourceGroup(storage,snapshot.getSettingsGroupInstance());
  CIMArgument[] inArgs=_helper.getVNXCopyToTargetGroupInputArguments(settingsState,targetGroup);
  CIMArgument[] outArgs=new CIMArgument[5];
  _helper.callModifySettingsDefineState(storage,inArgs,outArgs);
  List<BlockSnapshot> snapshots=_dbClient.queryObject(BlockSnapshot.class,snapshotList);
  for (  BlockSnapshot it : snapshots) {
    it.setNeedsCopyToTarget(false);
  }
  _dbClient.persistObject(snapshots);
}

private void internalGroupSnapCopyToTarget ( StorageSystem storage , BlockSnapshot snapshot , List < URI > snapshotList ) throws Exception { String snapGroupName = snapshot . getReplicationGroupInstance ( ) ; CIMObjectPath targetGroup = _cimPath . getReplicationGroupPath ( storage , snapGroupName ) ; CIMObjectPath settingsState = _helper . getSettingsDefineStateForSourceGroup ( storage , snapshot . getSettingsGroupInstance ( ) ) ; CIMArgument [ ] inArgs = _helper . getVNXCopyToTargetGroupInputArguments ( settingsState , targetGroup ) ; CIMArgument [ ] outArgs = new CIMArgument [ 5 ] ; _helper . callModifySettingsDefineState ( storage , inArgs , outArgs ) ; List < BlockSnapshot > snapshots = _dbClient . queryObject ( BlockSnapshot . class , snapshotList ) ; for ( BlockSnapshot it : snapshots ) { it . setNeedsCopyToTarget ( false ) ; } _dbClient . persistObject ( snapshots ) ; }
internal function to call smi - s to run copy - to - target for cg snapshot
