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();
            }
            return false;
        }

        private boolean collectDirectNetworkUsage(HostVO host){
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 template sync on data store " + storeId + " now.");
            }
        } finally {
            syncLock.releaseRef();
        }

    }

    // persist entry in template_zone_ref table. zoneId can be empty for
View Full Code Here

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

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

    @Override
    public String getSystemVMIsoFileNameOnDatastore() {
View Full Code Here

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

                    } finally {
                        scanLock.unlock();
                    }
                }
            } finally {
                scanLock.releaseRef();
                UserContext.unregisterContext();
            }
        }
    }
View Full Code Here

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

                            txn.rollback();
                        }
                    }
                }
            } finally {
                deviceMapLock.releaseRef();
            }

            // there are no LB devices or there is no free capacity on the devices in the physical network so provision
// a new LB appliance
            if (tryLbProvisioning) {
View Full Code Here

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

            }
        } catch (Exception exception) {
            txn.rollback();
            s_logger.error("Failed to release load balancer device for the network" + guestConfig.getId() + " due to " + exception.getMessage());
        } finally {
            deviceMapLock.releaseRef();
        }

        return false;
    }
View Full Code Here

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 {
                    lock.unlock();
                }
            }
        } finally {
            lock.releaseRef();
        }
    }

    @Override
    public String getSystemVMIsoFileNameOnDatastore() {
View Full Code Here

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

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

    }
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.