From 6fbefad24ec7e8783365db61b03357d50ee0dd56 Mon Sep 17 00:00:00 2001 From: jestin Date: Fri, 27 Apr 2012 08:55:56 +0000 Subject: added names to the threads, in order to allow jvisualvm debug removed a "My DEBUG" message on the console --- src/Ivy.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Ivy.java') 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(); -- cgit v1.1