Class FileMaker


  • public class FileMaker
    extends java.lang.Object
    Utility class for creating and cleaning up a repository lock file. After initialization, a call to getLine() will either return the UUID of the repository or null. If null, then writeLine(String) can be used to assert that this repository is to be named according to the string.
    • Constructor Summary

      Constructors 
      Constructor Description
      FileMaker​(java.lang.String repoDir)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.lang.String getDir()  
      java.lang.String getLine()  
      void init​(java.lang.String dbUuid)  
      void init​(java.lang.String dbUuid, boolean isReadOnlyRepo)  
      boolean needsInit()  
      void writeLine​(java.lang.String line)  
      • Methods inherited from class java.lang.Object

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

      • FileMaker

        public FileMaker​(java.lang.String repoDir)
    • Method Detail

      • getDir

        public java.lang.String getDir()
      • needsInit

        public boolean needsInit()
      • init

        public void init​(java.lang.String dbUuid)
                  throws java.lang.Exception
        Parameters:
        dbUuid -
        Throws:
        java.lang.Exception
      • init

        public void init​(java.lang.String dbUuid,
                         boolean isReadOnlyRepo)
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getLine

        public java.lang.String getLine()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • writeLine

        public void writeLine​(java.lang.String line)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • close

        public void close()