Class MongoLockService
- java.lang.Object
-
- liquibase.nosql.lockservice.AbstractNoSqlLockService<MongoLiquibaseDatabase>
-
- liquibase.ext.mongodb.lockservice.MongoLockService
-
- All Implemented Interfaces:
liquibase.lockservice.LockService,liquibase.servicelocator.PrioritizedService
public class MongoLockService extends AbstractNoSqlLockService<MongoLiquibaseDatabase>
-
-
Constructor Summary
Constructors Constructor Description MongoLockService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadjustRepository()protected voidcreateRepository()protected voiddropRepository()protected BooleanexistsRepository()protected liquibase.logging.LoggergetLogger()protected BooleanisLocked()protected List<liquibase.lockservice.DatabaseChangeLogLock>queryLocks()protected intreplaceLock(boolean locked)booleansupports(liquibase.database.Database database)-
Methods inherited from class liquibase.nosql.lockservice.AbstractNoSqlLockService
acquireLock, destroy, forceReleaseLock, getChangeLogLockRecheckTime, getChangeLogLockWaitTime, getDatabase, getDatabaseChangeLogLockTableName, getExecutor, getPriority, hasChangeLogLock, init, listLocks, releaseLock, reset, setChangeLogLockRecheckTime, setChangeLogLockWaitTime, setDatabase, waitForLock
-
-
-
-
Method Detail
-
supports
public boolean supports(liquibase.database.Database database)
-
isLocked
protected Boolean isLocked() throws liquibase.exception.DatabaseException
- Specified by:
isLockedin classAbstractNoSqlLockService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
replaceLock
protected int replaceLock(boolean locked) throws liquibase.exception.DatabaseException- Specified by:
replaceLockin classAbstractNoSqlLockService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
queryLocks
protected List<liquibase.lockservice.DatabaseChangeLogLock> queryLocks() throws liquibase.exception.DatabaseException
- Specified by:
queryLocksin classAbstractNoSqlLockService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
existsRepository
protected Boolean existsRepository() throws liquibase.exception.DatabaseException
- Specified by:
existsRepositoryin classAbstractNoSqlLockService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
createRepository
protected void createRepository() throws liquibase.exception.DatabaseException- Specified by:
createRepositoryin classAbstractNoSqlLockService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
adjustRepository
protected void adjustRepository() throws liquibase.exception.DatabaseException- Specified by:
adjustRepositoryin classAbstractNoSqlLockService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
dropRepository
protected void dropRepository() throws liquibase.exception.DatabaseException- Specified by:
dropRepositoryin classAbstractNoSqlLockService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
getLogger
protected liquibase.logging.Logger getLogger()
- Specified by:
getLoggerin classAbstractNoSqlLockService<MongoLiquibaseDatabase>
-
-