Mercurial > hg > FederatedLinda
diff src/fdl/FederatedLinda.java @ 22:56e015e8f5dc
Testing TestLindaServer
author | kono |
---|---|
date | Tue, 19 Aug 2008 16:02:48 +0900 |
parents | fac6e0073b1a |
children | b4fd7fb9135a |
line wrap: on
line diff
--- a/src/fdl/FederatedLinda.java Tue Aug 19 10:48:22 2008 +0900 +++ b/src/fdl/FederatedLinda.java Tue Aug 19 16:02:48 2008 +0900 @@ -38,7 +38,7 @@ public class FederatedLinda { - static FederatedLinda fdl; + static FederatedLinda fdl = new FederatedLinda(); static int MAX_SEQUENCE = 2048; static boolean debug = true; @@ -53,17 +53,16 @@ public PSXReply r_top,r_end; public Hashtable<Integer,PSXReply> seqHash; - public static FederatedLinda init() - throws IOException { - if (fdl==null) { - fdl = new FederatedLinda(); - } + public static FederatedLinda init() { return fdl; } - private FederatedLinda() - throws IOException { - selector = Selector.open(); + private FederatedLinda() { + try { + selector = Selector.open(); + } catch (IOException e) { + e.printStackTrace(); + } seqHash = new Hashtable<Integer, PSXReply>(); }