Class DummyLock

java.lang.Object
org.lsst.ccs.messaging.DummyLock
All Implemented Interfaces:
Serializable, AgentLock

public class DummyLock extends Object implements AgentLock, Serializable
A dummy lock used for preliminary implementation of the agent lock service.
Author:
LSST CCS Team
See Also:
  • Constructor Details

    • DummyLock

      public DummyLock(String agentName, String owner)
    • DummyLock

      public DummyLock(String agentName)
  • Method Details

    • getAgentName

      public String getAgentName()
      Description copied from interface: AgentLock
      The agent name this lock stands for.
      Specified by:
      getAgentName in interface AgentLock
      Returns:
      the agent name this lock stands for.
    • getMaxLevel

      public int getMaxLevel()
      Description copied from interface: AgentLock
      The maximum level allowed by this lock.
      Specified by:
      getMaxLevel in interface AgentLock
      Returns:
      the maximum level allowed by this lock
    • getToken

      public String getToken()
      Specified by:
      getToken in interface AgentLock
    • getOwner

      public String getOwner()
      Description copied from interface: AgentLock
      The lock owner = userID.
      Specified by:
      getOwner in interface AgentLock
      Returns:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object