Examples of listLocks()


Examples of liquibase.Liquibase.listLocks()

            Liquibase liquibase = new Liquibase("org/socialmusicdiscovery/server/database/smd-database.changelog.xml", new
                    ClassLoaderResourceAccessor(),
                    new JdbcConnection(connection));
            if (System.getProperty("liquibase") == null || !System.getProperty("liquibase").equals("false")) {
                // If database is locked, retry 10 times before we give up and force the lock to be released
                for(int i=0;i<10 && liquibase.listLocks().length>0;i++) {
                    Thread.sleep(1000);
                }
                if(liquibase.listLocks().length>0) {
                    liquibase.forceReleaseLocks();
                }
View Full Code Here

Examples of liquibase.Liquibase.listLocks()

            if (System.getProperty("liquibase") == null || !System.getProperty("liquibase").equals("false")) {
                // If database is locked, retry 10 times before we give up and force the lock to be released
                for(int i=0;i<10 && liquibase.listLocks().length>0;i++) {
                    Thread.sleep(1000);
                }
                if(liquibase.listLocks().length>0) {
                    liquibase.forceReleaseLocks();
                }
                liquibase.update("");
            }
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.