private void prepareVirtualPoolData() throws Exception {
  log.info("Preparing VirtualPool Data for VirtualPoolMultiVolumeConsistencyMigration.");
  VirtualArray virtualArray=new VirtualArray();
  URI virtualArrayURI=URIUtil.createId(VirtualArray.class);
  virtualArray.setId(virtualArrayURI);
  virtualArray.setLabel("virtualArray1");
  _dbClient.createObject(virtualArray);
  for (int i=1; i <= 3; i++) {
    VpoolProtectionVarraySettings protectionSettings=new VpoolProtectionVarraySettings();
    URI protectionSettingsURI=URIUtil.createId(VpoolProtectionVarraySettings.class);
    protectionSettings.setId(protectionSettingsURI);
    protectionSettings.setJournalSize("min");
    _dbClient.createObject(protectionSettings);
    VirtualPool virtualPool=new VirtualPool();
    URI virtualPoolURI=URIUtil.createId(VirtualPool.class);
    rpTestVirtualPoolURIs.add(virtualPoolURI);
    virtualPool.setId(virtualPoolURI);
    virtualPool.setLabel("rpVirtualPool" + i);
    StringMap protectionVarraySettings=new StringMap();
    protectionVarraySettings.put(virtualArrayURI.toString(),protectionSettingsURI.toString());
    virtualPool.setProtectionVarraySettings(protectionVarraySettings);
    _dbClient.createObject(virtualPool);
  }
}

private void prepareVirtualPoolData ( ) throws Exception { log . info ( "Preparing VirtualPool Data for VirtualPoolMultiVolumeConsistencyMigration." ) ; VirtualArray virtualArray = new VirtualArray ( ) ; URI virtualArrayURI = URIUtil . createId ( VirtualArray . class ) ; virtualArray . setId ( virtualArrayURI ) ; virtualArray . setLabel ( "virtualArray1" ) ; _dbClient . createObject ( virtualArray ) ; for ( int i = 1 ; i <= 3 ; i ++ ) { VpoolProtectionVarraySettings protectionSettings = new VpoolProtectionVarraySettings ( ) ; URI protectionSettingsURI = URIUtil . createId ( VpoolProtectionVarraySettings . class ) ; protectionSettings . setId ( protectionSettingsURI ) ; protectionSettings . setJournalSize ( "min" ) ; _dbClient . createObject ( protectionSettings ) ; VirtualPool virtualPool = new VirtualPool ( ) ; URI virtualPoolURI = URIUtil . createId ( VirtualPool . class ) ; rpTestVirtualPoolURIs . add ( virtualPoolURI ) ; virtualPool . setId ( virtualPoolURI ) ; virtualPool . setLabel ( "rpVirtualPool" + i ) ; StringMap protectionVarraySettings = new StringMap ( ) ; protectionVarraySettings . put ( virtualArrayURI . toString ( ) , protectionSettingsURI . toString ( ) ) ; virtualPool . setProtectionVarraySettings ( protectionVarraySettings ) ; _dbClient . createObject ( virtualPool ) ; } }
prepares the data for rp volume tests .
