Class LockStressTest

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.lang.String LOCK_FILE_NAME  
    • Constructor Summary

      Constructors 
      Constructor Description
      LockStressTest()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static FSLockFactory getNewLockFactory​(java.lang.String lockFactoryClassName)  
      static void main​(java.lang.String[] args)  
      private static int run​(int myID, java.lang.String verifierHost, int verifierPort, java.lang.String lockFactoryClassName, java.nio.file.Path lockDirPath, int sleepTimeMS, int count)  
      • Methods inherited from class java.lang.Object

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

      • LockStressTest

        public LockStressTest()
    • Method Detail

      • main

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

        private static int run​(int myID,
                               java.lang.String verifierHost,
                               int verifierPort,
                               java.lang.String lockFactoryClassName,
                               java.nio.file.Path lockDirPath,
                               int sleepTimeMS,
                               int count)
                        throws java.io.IOException,
                               java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • getNewLockFactory

        private static FSLockFactory getNewLockFactory​(java.lang.String lockFactoryClassName)
                                                throws java.io.IOException
        Throws:
        java.io.IOException