Interface LockManagerData

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.DataRoot

    @Generated("mdsal-binding-generator")
    public interface LockManagerData
    extends org.opendaylight.yangtools.yang.binding.DataRoot

    This class represents the following YANG schema fragment defined in module lock-manager

     module lock-manager {
       namespace urn:opendaylight:genius:lockmanager;
       prefix lockmgr;
       revision 2016-04-13 {
       }
       typedef time-units {
         type enumeration {
           enum days;
           enum hours;
           enum microseconds;
           enum milliseconds;
           enum minutes;
           enum nanoseconds;
           enum seconds;
         }
       }
       container locks {
         list lock {
           key lock-name;
           leaf lock-name {
             type string;
           }
           leaf lock-owner {
             type string;
           }
         }
       }
       rpc lock {
         input input {
           leaf lock-name {
             type string;
           }
         }
       }
       rpc try-lock {
         input input {
           leaf lock-name {
             type string;
           }
           leaf time {
             type uint32;
           }
           leaf time-unit {
             type time-units;
           }
         }
       }
       rpc unlock {
         input input {
           leaf lock-name {
             type string;
           }
         }
       }
     }
     
    • Method Detail

      • getLocks

        Locks getLocks()
        Return locks, or null if it is not present.
             
                 Holds the list of lock name and lock owner
             
         
        Returns:
        org.opendaylight.yang.gen.v1.urn.opendaylight.genius.lockmanager.rev160413.Locks locks, or null if it is not present.