Skip to content
Snippets Groups Projects
Commit 92a690ef authored by Sebastian Rieger's avatar Sebastian Rieger
Browse files

two host version of rmi mandelbrot example

parent 77e71529
Branches
No related tags found
No related merge requests found
...@@ -225,7 +225,7 @@ public class MGuiRMI implements ActionListener, ChangeListener, MouseListener, M ...@@ -225,7 +225,7 @@ public class MGuiRMI implements ActionListener, ChangeListener, MouseListener, M
this.host2TextField.setText("localhost"); this.host2TextField.setText("localhost");
this.panel.add(this.calcButton); this.panel.add(this.calcButton);
this.panel.add(this.host1TextField); this.panel.add(this.host1TextField);
//this.panel.add(this.host2TextField); this.panel.add(this.host2TextField);
this.frame.add(this.panel); this.frame.add(this.panel);
this.frame.setSize(700, 720); this.frame.setSize(700, 720);
this.frame.setVisible(true); this.frame.setVisible(true);
...@@ -338,8 +338,8 @@ public class MGuiRMI implements ActionListener, ChangeListener, MouseListener, M ...@@ -338,8 +338,8 @@ public class MGuiRMI implements ActionListener, ChangeListener, MouseListener, M
//Registry registry = LocateRegistry.createRegistry(1099); //Registry registry = LocateRegistry.createRegistry(1099);
this.remoteCalcObj = (RMIMandelbrotCalculationsInterface) registry.lookup("RMIMandelbrotCalculationsInterface"); this.remoteCalcObj = (RMIMandelbrotCalculationsInterface) registry.lookup("RMIMandelbrotCalculationsInterface");
//this.remoteCalcObj.setView(ULx, ULy, LRx, LRy); //this.remoteCalcObj.setView(ULx, ULy, LRx, LRy);
//Registry registry2 = LocateRegistry.getRegistry(hostname2); Registry registry2 = LocateRegistry.getRegistry(hostname2);
this.remoteCalcObj2 = (RMIMandelbrotCalculationsInterface) registry.lookup("RMIMandelbrotCalculationsInterface2"); this.remoteCalcObj2 = (RMIMandelbrotCalculationsInterface) registry2.lookup("RMIMandelbrotCalculationsInterface");
//this.remoteCalcObj2.setView(ULx, ULy, LRx, LRy); //this.remoteCalcObj2.setView(ULx, ULy, LRx, LRy);
/** CODE SEBASTIAN /** CODE SEBASTIAN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment