public void setToken() {
token = true;
ScanThreadSuperNode.Instance().setToken(false);
- System.out.println("the token is put to true in the tokenthread");
+ System.out.println("The token is put to true in the tokenthread");
try {
synchronized (TokenThread.Instance()) {
TokenThread.Instance().notify();
}
} catch (Exception e) {
- System.out.println("unable to notify :" + e);
+ System.err.println("Unable to notify :" + e);
}
// System.out.println("finished set token");
}
new ForwardCount().start();
} catch (Exception e) {
- System.out
- .println("unable to send surplus to "
+ System.err
+ .println("Unable to send surplus to "
+ ((SuperNodeData) liste
.get(i)).getIP()
+ " :" + e);
System.out.println("Passing token to " + index);
} catch (Exception e) {
try {
- System.out.println("Unable to send Token to "
+ System.err.println("Unable to send Token to "
+ ((SuperNodeData) liste.elementAt(index)).getIP()
+ " :" + e);
/*