private void persistLockData(String lockName,DistributedOwnerLockData data){
  String path=getLockDataPath(lockName);
  String ownerLockPath=getLockByOwnerPath(lockName,data.getOwner());
  try {
    Stat stat=dataManager.checkExists(ownerLockPath);
    if (stat == null) {
      dataManager.createNode(ownerLockPath,false);
    }
    stat=dataManager.checkExists(path);
    if (stat == null) {
      dataManager.createNode(path,false);
    }
    dataManager.putData(path,data);
  }
 catch (  Exception ex) {
    log.error("Can't storage LockData: " + lockName,ex);
  }
}

private void persistLockData ( String lockName , DistributedOwnerLockData data ) { String path = getLockDataPath ( lockName ) ; String ownerLockPath = getLockByOwnerPath ( lockName , data . getOwner ( ) ) ; try { Stat stat = dataManager . checkExists ( ownerLockPath ) ; if ( stat == null ) { dataManager . createNode ( ownerLockPath , false ) ; } stat = dataManager . checkExists ( path ) ; if ( stat == null ) { dataManager . createNode ( path , false ) ; } dataManager . putData ( path , data ) ; } catch ( Exception ex ) { log . error ( "Can't storage LockData: " + lockName , ex ) ; } }
update the lockdata in zk .
