public static interface AgentLockService.AgentLockUpdateListener
| Modifier and Type | Method and Description |
|---|---|
default void |
onAgentHeldLockUpdate(String agentName,
AgentLock lock)
Called when the current agent acquires or releases a new lock
|
default void |
onAgentLevelChange(String agentName,
int level)
Called when the level on a (local) lock is changed
|
default void |
onAgentLockUpdate(String agentName,
String owner,
AgentLock lock)
Called when the current agent is locked or unlocked.
|
default void |
onGlobalLockUpdate(String agentName,
String owner,
AgentLock lock)
Called when any agent on the network is locked or unlocked
|
default void onAgentHeldLockUpdate(String agentName, AgentLock lock)
agentName - the target agent for which there has been a lock update. the
lock owner is ourselveslock - the new lock for agentName. It is null if
agentName was unlocked.default void onAgentLockUpdate(String agentName, String owner, AgentLock lock)
agentName - the target agent for which there has been a lock update.owner - the lock ownerlock - the lock for agentName. For the remote implementaion, the
AgentLock is an AgentLockInfo instance and the status field
provides information on the state change.default void onGlobalLockUpdate(String agentName, String owner, AgentLock lock)
agentName - the target agent for which there has been a lock update. Not active for the local implementation.owner - the lock ownerlock - the lock for agentName. For the remote implementaion, the
AgentLock is an AgentLockInfo instance and the status field
provides information on the state change.default void onAgentLevelChange(String agentName, int level)
agentName - the target agent for which there has been a lock update.level - the new levelCopyright © 2024 LSST. All rights reserved.