public class NodeGroupLock extends Object
Modifier and Type | Field and Description |
---|---|
static String |
INITIALIZE_LOCK
The name of the lock used during the initialization process.
|
Constructor and Description |
---|
NodeGroupLock() |
Modifier and Type | Method and Description |
---|---|
static void |
init(DataAccessManager dataAccessManager)
Initializes the Node Group Lock Object.
|
static void |
lock(String lockName)
Creates a lock by the given name
|
static void |
unlock(String lockName)
Unlocks a named lock.
|
public static final String INITIALIZE_LOCK
public static void init(DataAccessManager dataAccessManager) throws RegistryException
dataAccessManager
- the data access manager to be used to communicate with the
database.RegistryException
- if the creation of the cluster lock table failed, or if any
exceptions occur during the initialization.public static void lock(String lockName) throws RegistryException
lockName
- the name of the lock.RegistryException
- if an exception occurred while locking.public static void unlock(String lockName) throws RegistryException
lockName
- the name of the lock.RegistryException
- if an exception occurred while unlocking.Copyright © 2019 WSO2 Inc. All Rights Reserved.