private void createBlockMirrorData(String name,int numBlockMirrors) throws Exception {
  Volume volume=new Volume();
  URI volumeURI=URIUtil.createId(Volume.class);
  testVolumeURIs.add(volumeURI);
  volume.setId(volumeURI);
  volume.setLabel("blockMirrorVolume");
  URI cgUri=createBlockConsistencyGroup("blockMirrorVolume-cg");
  volume.setConsistencyGroup(cgUri);
  _dbClient.createObject(volume);
  for (int i=1; i <= numBlockMirrors; i++) {
    BlockMirror blockMirror=new BlockMirror();
    URI blockMirrorURI=URIUtil.createId(BlockMirror.class);
    testBlockMirrorURIs.add(blockMirrorURI);
    blockMirror.setId(blockMirrorURI);
    blockMirror.setLabel(name + i);
    blockMirror.setConsistencyGroup(cgUri);
    _dbClient.createObject(blockMirror);
  }
}

private void createBlockMirrorData ( String name , int numBlockMirrors ) throws Exception { Volume volume = new Volume ( ) ; URI volumeURI = URIUtil . createId ( Volume . class ) ; testVolumeURIs . add ( volumeURI ) ; volume . setId ( volumeURI ) ; volume . setLabel ( "blockMirrorVolume" ) ; URI cgUri = createBlockConsistencyGroup ( "blockMirrorVolume-cg" ) ; volume . setConsistencyGroup ( cgUri ) ; _dbClient . createObject ( volume ) ; for ( int i = 1 ; i <= numBlockMirrors ; i ++ ) { BlockMirror blockMirror = new BlockMirror ( ) ; URI blockMirrorURI = URIUtil . createId ( BlockMirror . class ) ; testBlockMirrorURIs . add ( blockMirrorURI ) ; blockMirror . setId ( blockMirrorURI ) ; blockMirror . setLabel ( name + i ) ; blockMirror . setConsistencyGroup ( cgUri ) ; _dbClient . createObject ( blockMirror ) ; } }
creates the blockobject blockmirror data .
