@Service @Singleton public class AdminCommandLock extends Object
| Constructor and Description |
|---|
AdminCommandLock() |
| Modifier and Type | Method and Description |
|---|---|
void |
dumpState(Logger logger,
Level level) |
Lock |
getLock(AdminCommand command)
Return the appropriate Lock object for the specified command.
|
Lock |
getLock(AdminCommand command,
String owner)
Return the appropriate Lock object for the specified command.
|
Lock |
getLock(CommandLock.LockType type)
Return the appropriate Lock object for the specified LockType.
|
String |
getLockOwner()
Get the admin user id for the user who acquired the exclusive lock.
|
Date |
getLockTimeOfAcquisition()
Get the time the exclusive lock was acquired.
|
public Lock getLock(CommandLock.LockType type)
type - the LockTypepublic Lock getLock(AdminCommand command)
command - the AdminCommand objectpublic Lock getLock(AdminCommand command, String owner) throws AdminCommandLockTimeoutException, AdminCommandLockException
command - the AdminCommand objectowner - the authority who requested the lockAdminCommandLockTimeoutExceptionAdminCommandLockExceptionpublic String getLockOwner()
public Date getLockTimeOfAcquisition()
Copyright © 2019. All rights reserved.