}
}
+ /**
+ * Add extra Nodes (for extra Spawners) at the beginning of the register.
+ * @param host The extra Node
+ */
+ public synchronized void addNodeBeg(Node host) {
+ int is = -1;
+ if (host == null) {
+ System.err
+ .println("In Register.addNode : host.getIP() == null !");
+ }
+ is = existNodeOfStub(host.getStub());
+ if (is != -1) {
+ System.out.println("This node exists yet, I replace it");
+ // System.out.println("MERDE !!");
+ // System.out.println("MERDE !!");
+ // System.out.println("MERDE !!");
+ // System.out.println("MERDE !!");
+ // System.out.println("MERDE !!");
+ // System.out.println("MERDE !!");
+ // System.out.println("MERDE !!");
+ liste.setElementAt(host, is);
+ } else {
+ liste.add(0,host);
+ }
+ }
+
public synchronized int existNodeOfStub(JaceInterface stub) {
// System.out.println("remote " + stub + "\n\n");
if (stub == null) {