Examples of releaseRef()


Examples of com.cloud.utils.db.GlobalLock.releaseRef()

                                s_logger.debug("Another thread already inserts " + templateStoragePoolRef.getId() + " to template_spool_ref", t);
                            }
                        }
                }finally {
                        lock.unlock();
                        lock.releaseRef();
                }
            } catch (Exception e){
                s_logger.debug("Caught exception ", e);
            }
        } else if (obj.getType() == DataObjectType.SNAPSHOT) {
View Full Code Here

Examples of com.cloud.utils.db.GlobalLock.releaseRef()

            _ipAddressDao.remove(ip.getId());

            txn.commit();
            return true;
        } finally {
            portableIpLock.releaseRef();
        }
    }

    @Override
    @DB
View Full Code Here

Examples of com.cloud.utils.db.GlobalLock.releaseRef()

                        } finally {
                            scanLock.unlock();
                        }
                    }
                } finally {
                    scanLock.releaseRef();
                }

            } catch (Exception e) {
                s_logger.error("Caught the following Exception", e);
            }
View Full Code Here

Examples of com.cloud.utils.db.GlobalLock.releaseRef()

                    } finally {
                        addHostLock.unlock();
                    }
                }
            } finally {
                addHostLock.releaseRef();
            }

            if (host != null) {
                if (!deferAgentCreation) { // if first host in cluster then
                    // create agent otherwise defer it to
View Full Code Here

Examples of com.cloud.utils.db.GlobalLock.releaseRef()

                } finally {
                    scanLock.unlock();
                }
            }
        } finally {
            scanLock.releaseRef();
        }
    }

    @DB
    List<Long> findAllVolumeIdInSnapshotTable(Long storeId) {
View Full Code Here

Examples of com.cloud.utils.db.GlobalLock.releaseRef()

                    } finally {
                        gcLock.unlock();
                    }
                }
            } finally {
                gcLock.releaseRef();
            }
        }
       
        public void reallyRun() {
            try {
View Full Code Here

Examples of com.cloud.utils.db.GlobalLock.releaseRef()

                } finally {
                    scanLock.unlock();
                }
            }
        } finally {
            scanLock.releaseRef();
        }
    }

    @Override
    public boolean migrateAway(VirtualMachine.Type vmType, long vmId, long srcHostId) throws InsufficientServerCapacityException, VirtualMachineMigrationException {
View Full Code Here

Examples of com.cloud.utils.db.GlobalLock.releaseRef()

                }
            } finally {
                lock.unlock();
            }
        } finally {
            lock.releaseRef();
        }
  }
 
  @Override
  public boolean start() {
View Full Code Here

Examples of com.cloud.utils.db.GlobalLock.releaseRef()

                } finally {
                    scanLock.unlock();
                }
            }
        } finally {
            scanLock.releaseRef();
        }

        scanLock = GlobalLock.getInternLock("snapshot.poll");
        try {
            if(scanLock.lock(ACQUIRE_GLOBAL_LOCK_TIMEOUT_FOR_COOPERATION)) {
View Full Code Here

Examples of com.cloud.utils.db.GlobalLock.releaseRef()

                } finally {
                    scanLock.unlock();
                }
            }
        } finally {
            scanLock.releaseRef();
        }
    }

    private void checkStatusOfCurrentlyExecutingSnapshots() {
        SearchCriteria<SnapshotScheduleVO> sc = _snapshotScheduleDao.createSearchCriteria();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.