Permalink
Browse files

Started 2 phase commit

  • Loading branch information...
1 parent 0d40927 commit 840aee8c7bc0bc69143496b0cb8b3e1c2471ee38 @pksunkara committed Nov 16, 2011
Showing with 25 additions and 0 deletions.
  1. +14 −0 PhaseCommit/Cohort.java
  2. +11 −0 PhaseCommit/Coordinator.java
View
@@ -0,0 +1,14 @@
+import java.io.*;
+import java.util.*;
+import java.net.*;
+
+public class Cohort {
+
+ public static void main(String[] args) throws Exception {
+ if(args.length!=3) {
+ System.out.println("Usage: Cohort <name> <host> <port>");
+ System.exit(1);
+ }
+ }
+
+}
@@ -0,0 +1,11 @@
+import java.io.*;
+import java.util.*;
+import java.net.*;
+
+public class Coordinator {
+
+ public static void main(String[] args) throws Exception {
+ Socket client;
+ }
+
+}

0 comments on commit 840aee8

Please sign in to comment.