Class LockServiceDemo

    • Constructor Summary

      Constructors 
      Constructor Description
      LockServiceDemo​(java.lang.String props, java.lang.String name)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void awaited​(java.lang.String lock_name, Owner owner)  
      void awaiting​(java.lang.String lock_name, Owner owner)  
      protected static void help()  
      void lockCreated​(java.lang.String lock_name)  
      void lockDeleted​(java.lang.String name)  
      void locked​(java.lang.String lock_name, Owner owner)  
      void lockRevoked​(java.lang.String lock_name, Owner current_owner)  
      protected void loop()  
      static void main​(java.lang.String[] args)  
      protected static java.util.List<java.lang.String> parseLockNames​(java.lang.String line)  
      protected void printLocks()  
      void start()  
      void start​(JChannel ch)  
      void unlocked​(java.lang.String lock_name, Owner owner)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • props

        protected java.lang.String props
      • name

        protected java.lang.String name
    • Constructor Detail

      • LockServiceDemo

        public LockServiceDemo​(java.lang.String props,
                               java.lang.String name)
    • Method Detail

      • start

        public void start()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • start

        public void start​(JChannel ch)
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • loop

        protected void loop()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • parseLockNames

        protected static java.util.List<java.lang.String> parseLockNames​(java.lang.String line)
      • printLocks

        protected void printLocks()
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • help

        protected static void help()