Examples of releaseRef()


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

                upgrade(dbVersion, currentVersion);
            } finally {
                lock.unlock();
            }
        } finally {
            lock.releaseRef();
        }
    }
}
View Full Code Here

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

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

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

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

                    }
                }
            } catch (Exception e){
                s_logger.debug("Exception while trying to acquire network stats lock", e);
            finally {
                scanLock.releaseRef();
            }
        }
    }

    @DB
View Full Code Here

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

            }
            else {
                s_logger.info("Couldn't get global lock on " + lockString + ", another thread may be doing volume sync on data store " + storeId + " now.");
            }
        } finally {
            syncLock.releaseRef();
        }
    }

    private Map<Long, TemplateProp> listVolume(DataStore store) {
        ListVolumeCommand cmd = new ListVolumeCommand(store.getTO(), store.getUri());
View Full Code Here

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

                    }
                }
            } catch (Exception e){
                s_logger.debug("Exception while trying to acquire network stats lock", e);
            finally {
                scanLock.releaseRef();
            }
        }
    }

    @DB
View Full Code Here

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

                    _ksDao.persist(caRoot);
                }
                lock.unlock();
            }
        } finally {
            lock.releaseRef();
        }
    }

    @Override
    public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {
View Full Code Here

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

                        s_logger.info("Unable to acquire synchronization lock to start secStorageVm for standby capacity, secStorageVm vm id : " + secStorageVm.getId());
                    }
                    return;
                }
            } finally {
                secStorageVmLock.releaseRef();
            }

            if (secStorageVm == null) {
                if (s_logger.isInfoEnabled()) {
                    s_logger.info("Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : " + secStorageVmId + ", will recycle it and start a new one");
View Full Code Here

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

                        String msg = "Unable to acquire secondary storage vm lock : " + secStorageVm.toString();
                        s_logger.debug(msg);
                        return false;
                    }
                } finally {
                    secStorageVmLock.releaseRef();
                }
            }

            // vm was already stopped, return true
            return true;
View Full Code Here

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

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

            public void reallyRun() {
                try {
View Full Code Here

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

                    }
                }
            } catch (Exception e){
                s_logger.debug("Exception while trying to acquire disk stats lock", e);
            finally {
                scanLock.releaseRef();
            }
        }
    }

    class VmDiskStatsTask implements Runnable {
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.