Class DefaultInitLockDao
java.lang.Object
de.hybris.platform.core.system.impl.DefaultInitLockDao
- All Implemented Interfaces:
InitializationLockDao,Serializable
Implementation of the
InitializationLockDao.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidOptionally creates table.protected HybrisDataSourceMethod reinitializes a instance property to most accurate, so as a result we would have always an openHybrisDataSourceif possible.longIdentifier specific for running platform.booleanOptionally inserts lock row.booleanLocks row using cluster node ID from given tenant.Reads current locking information.booleanreleaseRow(Tenant forTenant) Releases existing lock.
-
Constructor Details
-
DefaultInitLockDao
public DefaultInitLockDao() -
DefaultInitLockDao
-
-
Method Details
-
getInitializedMasterDataSource
Method reinitializes a instance property to most accurate, so as a result we would have always an openHybrisDataSourceif possible. -
readLockInfo
Description copied from interface:InitializationLockDaoReads current locking information.- Specified by:
readLockInfoin interfaceInitializationLockDao- Returns:
nullif no lock row or table exists, the info object otherwise
-
lockRow
Description copied from interface:InitializationLockDaoLocks row using cluster node ID from given tenant. Requires lock not being taken before (no matter by which cluster node!).- Specified by:
lockRowin interfaceInitializationLockDao
-
releaseRow
Description copied from interface:InitializationLockDaoReleases existing lock. Tenant must have cluster node ID that matches the one inside the lock!- Specified by:
releaseRowin interfaceInitializationLockDao
-
insertRow
public boolean insertRow()Description copied from interface:InitializationLockDaoOptionally inserts lock row.- Specified by:
insertRowin interfaceInitializationLockDao- Returns:
trueif row could be inserted or row already exists,falseon other errors (e.g. table not existing)
-
createTable
public void createTable()Description copied from interface:InitializationLockDaoOptionally creates table. If table already exists it does nothing.- Specified by:
createTablein interfaceInitializationLockDao
-
getUniqueInstanceIdentifier
public long getUniqueInstanceIdentifier()Description copied from interface:InitializationLockDaoIdentifier specific for running platform. Every platform startup standalone or other should have own unique identifier.- Specified by:
getUniqueInstanceIdentifierin interfaceInitializationLockDao
-