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() |
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 © 2016 WSO2 Inc. All Rights Reserved.