use SessionFile constructor and added todo about java.nio file locking.
authorjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 23 Nov 2005 15:23:01 +0000 (15:23 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 23 Nov 2005 15:23:01 +0000 (15:23 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@95 be28352e-c001-0410-b1a7-c7978e42abec

src/org/vamsas/client/simpleclient/ClientsFile.java
src/org/vamsas/client/simpleclient/Lock.java

index 012c9d6..192f389 100644 (file)
@@ -29,7 +29,7 @@ public class ClientsFile extends SessionFile {
   private int syncnum = 1;
 
   public ClientsFile(File filelist) throws IOException {
-    this.sessionFile = filelist;
+    super(filelist);
     if (!this.sessionFile.exists())
       this.sessionFile.createNewFile();
   }
index c840440..dfc978e 100644 (file)
@@ -9,7 +9,7 @@ import java.nio.channels.FileLock;
 /**
  * transient object representing a file lock
  * This lock should hold for all processes interacting in a session.
- * 
+ * TODO: currently implemented for local filesystem style locking - need a fallback mechanism for systems without file locks.
  * @author jimp
  * 
  */