Top Fields Constructors Methods
liquibase.lockservice

public Class StandardLockService

extends Object
implements LockService
Class Inheritance
All Implemented Interfaces
liquibase.lockservice.LockService, liquibase.servicelocator.PrioritizedService
Known Direct Subclasses
liquibase.lockservice.LockServiceImpl
Imports
liquibase.Scope, .GlobalConfiguration, liquibase.change.Change, liquibase.changelog.ChangeLogHistoryService, .ChangeLogHistoryServiceFactory, liquibase.database.Database, .ObjectQuotingStrategy, liquibase.database.core.DB2Database, .DerbyDatabase, .MSSQLDatabase, liquibase.diff.output.DiffOutputControl, liquibase.diff.output.changelog.ChangeGeneratorFactory, liquibase.exception.DatabaseException, .LiquibaseException, .LockException, .UnexpectedLiquibaseException, liquibase.executor.Executor, .ExecutorService, .LoggingExecutor, liquibase.executor.jvm.ChangelogJdbcMdcListener, liquibase.logging.mdc.MdcKey, .MdcObject, .MdcValue, liquibase.snapshot.InvalidExampleException, .SnapshotGeneratorFactory, liquibase.sql.Sql, liquibase.sqlgenerator.SqlGeneratorFactory, liquibase.statement.SqlStatement, liquibase.statement.core.*, liquibase.structure.DatabaseObject, liquibase.structure.core.Table, java.security.SecureRandom, java.text.DateFormat, java.time.LocalDateTime, .ZoneId, java.util.*, java.util.logging.Level

Field Summary

Modifier and TypeField and Description
protected Long
protected Long
protected static final ResourceBundle
protected Database
protected boolean
protected Boolean
protected boolean
protected ObjectQuotingStrategy
protected final SecureRandom

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public void
public void
forceReleaseLock()

Implements liquibase.lockservice.LockService.forceReleaseLock.

Releases whatever locks are on the database change log table

protected Long
protected Long
public int
private void
public boolean
public void
protected boolean
isDatabaseChangeLogLockTableCreated(boolean
if true, do not use any cached information and check the actual database
forceRecheck
)

Check whether the databasechangeloglock table exists in the database.

protected boolean
public boolean
isDatabaseChangeLogLockTableInitialized(final boolean tableJustCreated)

protected boolean
isDatabaseChangeLogLockTableInitialized(final boolean tableJustCreated, final boolean
if true, do not use any cached information, and recheck the actual database
forceRecheck
)

Determine whether the databasechangeloglock table has been initialized.

public DatabaseChangeLogLock[]
public void
public void
reset()

Implements liquibase.lockservice.LockService.reset.

Clears information the lock handler knows about the tables.

public void
public void
public void
public boolean
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

changeLogLockPollRateback to summary
protected Long changeLogLockPollRate
changeLogLockRecheckTimeback to summary
protected Long changeLogLockRecheckTime
coreBundleback to summary
protected static final ResourceBundle coreBundle
databaseback to summary
protected Database database
hasChangeLogLockback to summary
protected boolean hasChangeLogLock
hasDatabaseChangeLogLockTableback to summary
protected Boolean hasDatabaseChangeLogLockTable
isDatabaseChangeLogLockTableInitializedback to summary
protected boolean isDatabaseChangeLogLockTableInitialized
quotingStrategyback to summary
protected ObjectQuotingStrategy quotingStrategy
randomback to summary
protected final SecureRandom random

Constructor Detail

StandardLockServiceback to summary
public StandardLockService()

Method Detail

acquireLockback to summary
public boolean acquireLock() throws LockException

Implements liquibase.lockservice.LockService.acquireLock.

Annotations
@Override
destroyback to summary
public void destroy() throws DatabaseException

Implements liquibase.lockservice.LockService.destroy.

Annotations
@Override
forceReleaseLockback to summary
public void forceReleaseLock() throws LockException, DatabaseException

Implements liquibase.lockservice.LockService.forceReleaseLock.

Doc from liquibase.lockservice.LockService.forceReleaseLock.

Releases whatever locks are on the database change log table

Annotations
@Override
getChangeLogLockRecheckTimeback to summary
protected Long getChangeLogLockRecheckTime()
getChangeLogLockWaitTimeback to summary
protected Long getChangeLogLockWaitTime()
getPriorityback to summary
public int getPriority()

Implements liquibase.servicelocator.PrioritizedService.getPriority.

Annotations
@Override
handleOldChangelogTableFormatback to summary
private void handleOldChangelogTableFormat(Executor executor) throws DatabaseException
hasChangeLogLockback to summary
public boolean hasChangeLogLock()

Implements liquibase.lockservice.LockService.hasChangeLogLock.

Annotations
@Override
initback to summary
public void init() throws DatabaseException

Implements liquibase.lockservice.LockService.init.

Annotations
@Override
isDatabaseChangeLogLockTableCreatedback to summary
protected boolean isDatabaseChangeLogLockTableCreated(boolean forceRecheck)

Check whether the databasechangeloglock table exists in the database.

Parameters
forceRecheck:boolean

if true, do not use any cached information and check the actual database

isDatabaseChangeLogLockTableCreatedback to summary
protected boolean isDatabaseChangeLogLockTableCreated() throws DatabaseException
isDatabaseChangeLogLockTableInitializedback to summary
public boolean isDatabaseChangeLogLockTableInitialized(final boolean tableJustCreated)
isDatabaseChangeLogLockTableInitializedback to summary
protected boolean isDatabaseChangeLogLockTableInitialized(final boolean tableJustCreated, final boolean forceRecheck)

Determine whether the databasechangeloglock table has been initialized.

Parameters
forceRecheck:boolean

if true, do not use any cached information, and recheck the actual database

listLocksback to summary
public DatabaseChangeLogLock[] listLocks() throws LockException

Implements liquibase.lockservice.LockService.listLocks.

Annotations
@Override
releaseLockback to summary
public void releaseLock() throws LockException

Implements liquibase.lockservice.LockService.releaseLock.

Annotations
@Override
resetback to summary
public void reset()

Implements liquibase.lockservice.LockService.reset.

Doc from liquibase.lockservice.LockService.reset.

Clears information the lock handler knows about the tables. Should only be called by Liquibase internal calls

Annotations
@Override
setChangeLogLockRecheckTimeback to summary
public void setChangeLogLockRecheckTime(long changeLogLockRecheckTime)

Implements liquibase.lockservice.LockService.setChangeLogLockRecheckTime.

Annotations
@Override
setChangeLogLockWaitTimeback to summary
public void setChangeLogLockWaitTime(long changeLogLockWaitTime)

Implements liquibase.lockservice.LockService.setChangeLogLockWaitTime.

Annotations
@Override
setDatabaseback to summary
public void setDatabase(Database database)

Implements liquibase.lockservice.LockService.setDatabase.

Annotations
@Override
supportsback to summary
public boolean supports(Database database)

Implements liquibase.lockservice.LockService.supports.

Annotations
@Override
waitForLockback to summary
public void waitForLock() throws LockException

Implements liquibase.lockservice.LockService.waitForLock.

Annotations
@Override