private void enableRecoverPointTag(DbClient dbClient,WBEMClient client,CIMObjectPath deviceGroupPath){
  try {
    boolean isRPTagNeeded=false;
    for (    VolumeURIHLU volUriHlu : _volumeURIHLUs) {
      URI volumeURI=volUriHlu.getVolumeURI();
      BlockObject bo=null;
      if (URIUtil.isType(volumeURI,BlockSnapshot.class)) {
        bo=dbClient.queryObject(BlockSnapshot.class,volumeURI);
      }
 else       if (URIUtil.isType(volumeURI,Volume.class)) {
        bo=dbClient.queryObject(Volume.class,volumeURI);
      }
      if (bo != null && BlockObject.checkForRP(dbClient,bo.getId())) {
        isRPTagNeeded=true;
        break;
      }
    }
    if (isRPTagNeeded) {
      _log.info("Attempting to enable RecoverPoint tag on Device Group : " + deviceGroupPath.toString());
      CIMPropertyFactory factoryRef=(CIMPropertyFactory)ControllerServiceImpl.getBean("CIMPropertyFactory");
      CIMInstance toUpdate=new CIMInstance(deviceGroupPath,new CIMProperty[]{factoryRef.bool(SmisConstants.EMC_RECOVERPOINT_ENABLED,true)});
      _log.debug("Params: " + toUpdate.toString());
      client.modifyInstance(toUpdate,SmisConstants.CP_EMC_RECOVERPOINT_ENABLED);
      _log.info(String.format("Device group has been successfully set with RecoverPoint tag "));
    }
  }
 catch (  WBEMException e) {
    _log.error("Encountered an error while trying to set the RecoverPoint tag",e);
  }
catch (  DatabaseException e) {
    _log.error("Encountered an error while trying to set the RecoverPoint tag",e);
  }
}

private void enableRecoverPointTag ( DbClient dbClient , WBEMClient client , CIMObjectPath deviceGroupPath ) { try { boolean isRPTagNeeded = false ; for ( VolumeURIHLU volUriHlu : _volumeURIHLUs ) { URI volumeURI = volUriHlu . getVolumeURI ( ) ; BlockObject bo = null ; if ( URIUtil . isType ( volumeURI , BlockSnapshot . class ) ) { bo = dbClient . queryObject ( BlockSnapshot . class , volumeURI ) ; } else if ( URIUtil . isType ( volumeURI , Volume . class ) ) { bo = dbClient . queryObject ( Volume . class , volumeURI ) ; } if ( bo != null && BlockObject . checkForRP ( dbClient , bo . getId ( ) ) ) { isRPTagNeeded = true ; break ; } } if ( isRPTagNeeded ) { _log . info ( "Attempting to enable RecoverPoint tag on Device Group : " + deviceGroupPath . toString ( ) ) ; CIMPropertyFactory factoryRef = ( CIMPropertyFactory ) ControllerServiceImpl . getBean ( "CIMPropertyFactory" ) ; CIMInstance toUpdate = new CIMInstance ( deviceGroupPath , new CIMProperty [ ] { factoryRef . bool ( SmisConstants . EMC_RECOVERPOINT_ENABLED , true ) } ) ; _log . debug ( "Params: " + toUpdate . toString ( ) ) ; client . modifyInstance ( toUpdate , SmisConstants . CP_EMC_RECOVERPOINT_ENABLED ) ; _log . info ( String . format ( "Device group has been successfully set with RecoverPoint tag " ) ) ; } } catch ( WBEMException e ) { _log . error ( "Encountered an error while trying to set the RecoverPoint tag" , e ) ; } catch ( DatabaseException e ) { _log . error ( "Encountered an error while trying to set the RecoverPoint tag" , e ) ; } }
method will set the emcrecoverpointenabled flag on the device masking group for vmax .
