From: jprocter Date: Wed, 23 Nov 2005 15:23:01 +0000 (+0000) Subject: use SessionFile constructor and added todo about java.nio file locking. X-Git-Tag: Release_0.2~425 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7db91f9d363eaa688a5f7d154daf8ad52196e779;p=vamsas.git use SessionFile constructor and added todo about java.nio file locking. git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@95 be28352e-c001-0410-b1a7-c7978e42abec --- diff --git a/src/org/vamsas/client/simpleclient/ClientsFile.java b/src/org/vamsas/client/simpleclient/ClientsFile.java index 012c9d6..192f389 100644 --- a/src/org/vamsas/client/simpleclient/ClientsFile.java +++ b/src/org/vamsas/client/simpleclient/ClientsFile.java @@ -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(); } diff --git a/src/org/vamsas/client/simpleclient/Lock.java b/src/org/vamsas/client/simpleclient/Lock.java index c840440..dfc978e 100644 --- a/src/org/vamsas/client/simpleclient/Lock.java +++ b/src/org/vamsas/client/simpleclient/Lock.java @@ -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 * */