public synchronized int existNode(Node node) {
if (node == null) {
- System.out
- .println("!!!!!!!!!!!!!!!!!!!!!!!!! node est null ds existNode");
+ System.err
+ .println("Node est null dans existNode");
+ return -1 ;
}
int existe = -1;
int index = 0;
public synchronized void addNode(Node host) {
int is = -1;
if (host == null) {
- System.out
- .println("ds Register.addNode : host.getIP() == null !!!!!!!!!!!!!!!");
+ System.err
+ .println("In Register.addNode : host.getIP() == null !");
}
is = existNodeOfStub(host.getStub());
if (is != -1) {
public synchronized int existNodeOfStub(JaceInterface stub) {
// System.out.println("remote " + stub + "\n\n");
if (stub == null) {
- System.out
- .println("!!!!!!!!!!!!!!!!!!!!!!!!! stub = NULL ds existNodeOfStub = ");
+ System.err
+ .println("Stub = NULL in existNodeOfStub");
+ return -1 ;
}
int existe = -1;
int index = 0;
return null;
} else {
if (stub == null) {
- System.out
- .println("ds Register.getNodeOfStub : stub == null !!!!!!!!!!!!!!!");
+ System.err
+ .println("In Register.getNodeOfStub : stub == null !");
}
is = existNodeOfStub(stub);
if (is != -1) {
return null;
} else {
if (name == null)
- System.out
- .println("ds Register.getNodeOfName : name == null !!!!!!!!!!!!!!!");
+ System.err
+ .println("In Register.getNodeOfName : name == null !");
int index = 0;
while ((is == -1) && (index < liste.size())) {
try {
((Node) liste.elementAt(i)).getOutputStream().close();
} catch (Exception e) {
- System.out.println("unable to close outputStream :" + e);
+ System.err.println("Unable to close outputStream :" + e);
}
}
liste.clear();
String inter = "\n\t";
String count = "";
if (liste.isEmpty()) {
- System.out.println("My Register is empty !!!!!");
+ System.err.println("My Register is empty !!!!!");
} else {
for (int i = 0; i < liste.size(); i++) {
noeud = getNodeAt(i);