diff options
author | jestin | 2012-04-27 08:55:56 +0000 |
---|---|---|
committer | jestin | 2012-04-27 08:55:56 +0000 |
commit | 6fbefad24ec7e8783365db61b03357d50ee0dd56 (patch) | |
tree | cf6433a80330d03095b4664af121db5461c99306 /src/Ivy.java | |
parent | 0617ac556d840cb313f93bbb36ec61677a7cc191 (diff) | |
download | ivy-java-6fbefad24ec7e8783365db61b03357d50ee0dd56.zip ivy-java-6fbefad24ec7e8783365db61b03357d50ee0dd56.tar.gz ivy-java-6fbefad24ec7e8783365db61b03357d50ee0dd56.tar.bz2 ivy-java-6fbefad24ec7e8783365db61b03357d50ee0dd56.tar.xz |
added names to the threads, in order to allow jvisualvm debug
removed a "My DEBUG" message on the console
Diffstat (limited to 'src/Ivy.java')
-rwxr-xr-x | src/Ivy.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Ivy.java b/src/Ivy.java index b727c2a..2a0a6d5 100755 --- a/src/Ivy.java +++ b/src/Ivy.java @@ -188,6 +188,8 @@ public class Ivy implements Runnable { private boolean starting = false; protected Object readyToSend = new Object(); private boolean doSendToSelf = false; + + // FIXME should not be static ? (findbugs) private static int serial = 0; private int myserial = serial++; private static long current = System.currentTimeMillis(); @@ -350,6 +352,7 @@ public class Ivy implements Runnable { // readies the rendezvous : an IvyWatcher (thread) per domain bus for (Domain dom: d) watchers.addElement(new IvyWatcher(this , dom.domainaddr , dom.port)); serverThread = new Thread(this); + serverThread.setName("Ivy TCP server Thread"); serverThread.start(); // sends the broadcasts and listen to incoming connexions for (IvyWatcher iw: watchers) iw.doStart(); |