ome.services.blitz.repo
Class FileMaker

java.lang.Object
  extended by ome.services.blitz.repo.FileMaker

public class FileMaker
extends 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
FileMaker(String repoDir)
           
 
Method Summary
 void close()
           
 String getDir()
           
 String getLine()
           
 void init(String dbUuid)
           
 boolean needsInit()
           
 void writeLine(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(String repoDir)
Method Detail

getDir

public String getDir()

needsInit

public boolean needsInit()

init

public void init(String dbUuid)
          throws Exception
Parameters:
dbUuid -
Throws:
Exception

getLine

public String getLine()
               throws Exception
Throws:
Exception

writeLine

public void writeLine(String line)
               throws Exception
Throws:
Exception

close

public void close()


OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

Copyright © 2009 The University of Dundee. All Rights Reserved.