Package ome.services.blitz.repo
Class FileMaker
- java.lang.Object
-
- ome.services.blitz.repo.FileMaker
-
public class FileMaker extends java.lang.ObjectUtility class for creating and cleaning up a repository lock file. Afterinitialization, a call togetLine()will either return the UUID of the repository or null. If null, thenwriteLine(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 voidclose()java.lang.StringgetDir()java.lang.StringgetLine()voidinit(java.lang.String dbUuid)voidinit(java.lang.String dbUuid, boolean isReadOnlyRepo)booleanneedsInit()voidwriteLine(java.lang.String line)
-
-
-
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()
-
-