Author: jflesch
Date: 2007-09-22 15:09:44 +0000 (Sat, 22 Sep 2007)
New Revision: 15265
Modified:
trunk/apps/Thaw/src/thaw/core/ConfigWindow.java
trunk/apps/Thaw/src/thaw/core/Core.java
trunk/apps/Thaw/src/thaw/fcp/FCPBufferedStream.java
trunk/apps/Thaw/src/thaw/fcp/FCPClientGet.java
trunk/apps/Thaw/src/thaw/fcp/FCPClientPut.java
trunk/apps/Thaw/src/thaw/fcp/FCPQueryManager.java
trunk/apps/Thaw/src/thaw/fcp/FCPQueueManager.java
trunk/apps/Thaw/src/thaw/gui/Table.java
trunk/apps/Thaw/src/thaw/plugins/Hsqldb.java
trunk/apps/Thaw/src/thaw/plugins/IndexExporter.java
trunk/apps/Thaw/src/thaw/plugins/IndexWebGrapher.java
trunk/apps/Thaw/src/thaw/plugins/LogConsole.java
trunk/apps/Thaw/src/thaw/plugins/MDns.java
trunk/apps/Thaw/src/thaw/plugins/PeerMonitor.java
trunk/apps/Thaw/src/thaw/plugins/Restarter.java
trunk/apps/Thaw/src/thaw/plugins/StatusBar.java
trunk/apps/Thaw/src/thaw/plugins/ThemeSelector.java
trunk/apps/Thaw/src/thaw/plugins/TransferLogs.java
trunk/apps/Thaw/src/thaw/plugins/TrayIcon.java
trunk/apps/Thaw/src/thaw/plugins/index/AutoRefresh.java
trunk/apps/Thaw/src/thaw/plugins/index/FileManagementHelper.java
trunk/apps/Thaw/src/thaw/plugins/index/FileTable.java
trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
trunk/apps/Thaw/src/thaw/plugins/index/LinkManagementHelper.java
trunk/apps/Thaw/src/thaw/plugins/index/UnknownIndexList.java
trunk/apps/Thaw/src/thaw/plugins/indexWebGrapher/GraphBuilder.java
trunk/apps/Thaw/src/thaw/plugins/miniFrost/AutoRefresh.java
trunk/apps/Thaw/src/thaw/plugins/miniFrost/BoardManagementHelper.java
trunk/apps/Thaw/src/thaw/plugins/miniFrost/DraftPanel.java
trunk/apps/Thaw/src/thaw/plugins/miniFrost/MessagePanel.java
trunk/apps/Thaw/src/thaw/plugins/miniFrost/MessageTreeTable.java
trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKBoard.java
trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKBoardAttachment.java
trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKFileAttachment.java
trunk/apps/Thaw/src/thaw/plugins/queueWatcher/QueuePanel.java
trunk/apps/Thaw/src/thaw/plugins/signatures/SigConfigTab.java
Log:
Name and groups all the Thaw threads + Remove the command 'shutdown compact'
before disconnecting from the database
Modified: trunk/apps/Thaw/src/thaw/core/ConfigWindow.java
===================================================================
--- trunk/apps/Thaw/src/thaw/core/ConfigWindow.java 2007-09-22 15:06:07 UTC
(rev 15264)
+++ trunk/apps/Thaw/src/thaw/core/ConfigWindow.java 2007-09-22 15:09:44 UTC
(rev 15265)
@@ -210,7 +210,7 @@
Reloader reloader = new Reloader(needConnectionReset);
- Thread reload = new Thread(reloader);
+ Thread reload = new ThawThread(reloader, "Config
reloader", this);
reload.start();
needConnectionReset = false;
Modified: trunk/apps/Thaw/src/thaw/core/Core.java
===================================================================
--- trunk/apps/Thaw/src/thaw/core/Core.java 2007-09-22 15:06:07 UTC (rev
15264)
+++ trunk/apps/Thaw/src/thaw/core/Core.java 2007-09-22 15:09:44 UTC (rev
15265)
@@ -314,7 +314,7 @@
connectionProcess = new ConnectionProcess(this);
- Thread th = new Thread(connectionProcess);
+ Thread th = new ThawThread(connectionProcess,
"Connection process", this);
th.start();
}
@@ -634,7 +634,8 @@
public void reconnect() {
if (reconnectionManager == null) {
reconnectionManager = new ReconnectionManager();
- final Thread th = new Thread(reconnectionManager);
+ final Thread th = new ThawThread(reconnectionManager,
+ "Reconnection
manager", this);
th.start();
} else {
Logger.warning(this, "Already trying to reconnect !");
Modified: trunk/apps/Thaw/src/thaw/fcp/FCPBufferedStream.java
===================================================================
--- trunk/apps/Thaw/src/thaw/fcp/FCPBufferedStream.java 2007-09-22 15:06:07 UTC
(rev 15264)
+++ trunk/apps/Thaw/src/thaw/fcp/FCPBufferedStream.java 2007-09-22 15:09:44 UTC
(rev 15265)
@@ -1,7 +1,9 @@
package thaw.fcp;
import thaw.core.Logger;
+import thaw.core.ThawThread;
+
/**
* Only used by FCPConnection. Except special situation, you shouldn't have to
use it directly.
* Currently only used for output. (shouldn't be really usefull for input).
@@ -136,7 +138,7 @@
}
if(tractopelle == null) {
- tractopelle = new Thread(this);
+ tractopelle = new ThawThread(this, "Upload limiter",
this);
tractopelle.start();
return true;
} else {
Modified: trunk/apps/Thaw/src/thaw/fcp/FCPClientGet.java
===================================================================
--- trunk/apps/Thaw/src/thaw/fcp/FCPClientGet.java 2007-09-22 15:06:07 UTC
(rev 15264)
+++ trunk/apps/Thaw/src/thaw/fcp/FCPClientGet.java 2007-09-22 15:09:44 UTC
(rev 15265)
@@ -8,7 +8,9 @@
import java.util.Observer;
import thaw.core.Logger;
+import thaw.core.ThawThread;
+
public class FCPClientGet extends Observable
implements Observer, FCPTransferQuery {
@@ -691,7 +693,9 @@
this.notifyObservers();
- final Thread fork = new Thread(new UnlockWaiter(this,
duplicatedQueryManager.getConnection(), dir));
+ final Thread fork = new ThawThread(new UnlockWaiter(this,
duplicatedQueryManager.getConnection(), dir),
+ "Unlock waiter",
+ this);
fork.start();
return true;
Modified: trunk/apps/Thaw/src/thaw/fcp/FCPClientPut.java
===================================================================
--- trunk/apps/Thaw/src/thaw/fcp/FCPClientPut.java 2007-09-22 15:06:07 UTC
(rev 15264)
+++ trunk/apps/Thaw/src/thaw/fcp/FCPClientPut.java 2007-09-22 15:09:44 UTC
(rev 15265)
@@ -9,7 +9,9 @@
import java.util.Observer;
import thaw.core.Logger;
+import thaw.core.ThawThread;
+
/**
* Allow to insert a simple file.
*/
@@ -230,7 +232,7 @@
sha = new SHA256Computer(salt, localFile.getPath());
sha.addObserver(this);
- Thread th = new Thread(sha);
+ Thread th = new ThawThread(sha, "Hash computer", this);
th.start();
} else {
return startProcess();
@@ -299,7 +301,9 @@
Logger.info(this, "Waiting for socket availability ...");
- final Thread fork = new Thread(new UnlockWaiter(this,
connection));
+ final Thread fork = new ThawThread(new UnlockWaiter(this,
connection),
+ "Unlock waiter",
+ this);
fork.start();
Modified: trunk/apps/Thaw/src/thaw/fcp/FCPQueryManager.java
===================================================================
--- trunk/apps/Thaw/src/thaw/fcp/FCPQueryManager.java 2007-09-22 15:06:07 UTC
(rev 15264)
+++ trunk/apps/Thaw/src/thaw/fcp/FCPQueryManager.java 2007-09-22 15:09:44 UTC
(rev 15265)
@@ -3,6 +3,7 @@
import java.util.Observable;
import thaw.core.Logger;
+import thaw.core.ThawThread;
/**
* Manage all fcp messages (see corresponding object of each kind of query).
@@ -128,7 +129,7 @@
}
public void run() {
- Thread th = new Thread(runnable);
+ Thread th = new ThawThread(runnable, "FCP message
processing", this);
th.start();
for (int i = 0 ; i < TIMEOUT && isRunning(th) ; i +=
300) {
@@ -178,7 +179,9 @@
* can't multithread if data are waiting
*/
if (MULTITHREADED &&
latestMessage.getAmountOfDataWaiting() == 0) {
- Thread notifierTh = new Thread(new
WatchDog(new Notifier(latestMessage)));
+ Thread notifierTh = new ThawThread(new
WatchDog(new Notifier(latestMessage)),
+ "FCP
message processing watchdog",
+ this);
notifierTh.start();
} else {
try {
@@ -206,7 +209,7 @@
*/
public void startListening() {
if(connection.isConnected()) {
- me = new Thread(this);
+ me = new ThawThread(this, "FCP socket listener", this);
me.start();
} else {
Logger.warning(this, "Not connected, so not listening
on the socket");
Modified: trunk/apps/Thaw/src/thaw/fcp/FCPQueueManager.java
===================================================================
--- trunk/apps/Thaw/src/thaw/fcp/FCPQueueManager.java 2007-09-22 15:06:07 UTC
(rev 15264)
+++ trunk/apps/Thaw/src/thaw/fcp/FCPQueueManager.java 2007-09-22 15:09:44 UTC
(rev 15265)
@@ -7,6 +7,7 @@
import java.util.Observable;
import thaw.core.Logger;
+import thaw.core.ThawThread;
/**
* Manage a running and a pending queue of FCPTransferQuery.
@@ -483,7 +484,7 @@
}
public void startScheduler() {
- scheduler = new Thread(this);
+ scheduler = new ThawThread(this, "FCP queue scheduler", this);
stopThread = false;
scheduler.start();
}
Modified: trunk/apps/Thaw/src/thaw/gui/Table.java
===================================================================
--- trunk/apps/Thaw/src/thaw/gui/Table.java 2007-09-22 15:06:07 UTC (rev
15264)
+++ trunk/apps/Thaw/src/thaw/gui/Table.java 2007-09-22 15:09:44 UTC (rev
15265)
@@ -25,6 +25,7 @@
import thaw.core.Logger;
import thaw.core.Config;
import thaw.core.I18n;
+import thaw.core.ThawThread;
import thaw.fcp.FreenetURIHelper;
import thaw.fcp.FCPTransferQuery;
@@ -318,7 +319,7 @@
hasChanged = true;
if (savingThread == null) {
- savingThread = new Thread(this);
+ savingThread = new ThawThread(this, "Table state
saver", this);
savingThread.start();
}
}
Modified: trunk/apps/Thaw/src/thaw/plugins/Hsqldb.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/Hsqldb.java 2007-09-22 15:06:07 UTC
(rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/Hsqldb.java 2007-09-22 15:09:44 UTC
(rev 15265)
@@ -69,7 +69,7 @@
public void disconnect() throws java.sql.SQLException {
synchronized(dbLock) {
connection.commit();
- executeQuery("SHUTDOWN COMPACT");
+ //executeQuery("SHUTDOWN COMPACT");
connection.close();
//connection = null;
}
Modified: trunk/apps/Thaw/src/thaw/plugins/IndexExporter.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/IndexExporter.java 2007-09-22 15:06:07 UTC
(rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/IndexExporter.java 2007-09-22 15:09:44 UTC
(rev 15265)
@@ -13,6 +13,7 @@
import thaw.gui.IconBox;
import thaw.core.Logger;
import thaw.core.Plugin;
+import thaw.core.ThawThread;
import thaw.plugins.index.DatabaseManager;
public class IndexExporter implements Plugin, ActionListener {
@@ -120,7 +121,7 @@
Worker k = new Worker(in, content, file);
- Thread th = new Thread(k);
+ Thread th = new ThawThread(k, "Index exporter", this);
th.start();
}
Modified: trunk/apps/Thaw/src/thaw/plugins/IndexWebGrapher.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/IndexWebGrapher.java 2007-09-22
15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/IndexWebGrapher.java 2007-09-22
15:09:44 UTC (rev 15265)
@@ -18,6 +18,7 @@
import thaw.core.Core;
import thaw.core.I18n;
import thaw.core.Logger;
+import thaw.core.ThawThread;
import thaw.plugins.indexWebGrapher.*;
@@ -152,7 +153,7 @@
compute.setText(I18n.getMessage("thaw.plugin.indexWebGrapher.faster"));
lastBuilder = new GraphBuilder(this,
graphPanel, db);
- Thread th = new Thread(lastBuilder);
+ Thread th = new ThawThread(lastBuilder, "Web
graph optimizer", this);
th.start();
} else {
if (!lastBuilder.fasterFlag()) {
Modified: trunk/apps/Thaw/src/thaw/plugins/LogConsole.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/LogConsole.java 2007-09-22 15:06:07 UTC
(rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/LogConsole.java 2007-09-22 15:09:44 UTC
(rev 15265)
@@ -19,8 +19,8 @@
import thaw.core.LogListener;
import thaw.core.Logger;
import thaw.core.Plugin;
+import thaw.core.ThawThread;
-
/**
* Quick and dirty console showing Thaw logs, and allowing to save them.
*/
@@ -98,7 +98,7 @@
Logger.addLogListener(this);
- Thread dispThread = new Thread(this);
+ Thread dispThread = new ThawThread(this, "Log console refresh",
this);
dispThread.start();
return true;
Modified: trunk/apps/Thaw/src/thaw/plugins/MDns.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/MDns.java 2007-09-22 15:06:07 UTC (rev
15264)
+++ trunk/apps/Thaw/src/thaw/plugins/MDns.java 2007-09-22 15:09:44 UTC (rev
15265)
@@ -9,6 +9,7 @@
import thaw.core.I18n;
import thaw.core.Core;
+import thaw.core.ThawThread;
public class MDns implements thaw.core.Plugin, ActionListener,
MDNSDiscoveryPanelCallback {
private Core core;
@@ -72,7 +73,7 @@
isMDNSPanerShown = true;
}
core.getConfigWindow().getNodeConfigPanel().getAutodetectButton().setEnabled(false);
- new Thread(mdnsPanel).start();
+ new ThawThread(mdnsPanel, "MDns host list refresher",
this).start();
}
}
Modified: trunk/apps/Thaw/src/thaw/plugins/PeerMonitor.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/PeerMonitor.java 2007-09-22 15:06:07 UTC
(rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/PeerMonitor.java 2007-09-22 15:09:44 UTC
(rev 15265)
@@ -14,7 +14,9 @@
import thaw.core.I18n;
import thaw.core.Core;
import thaw.core.Logger;
+import thaw.core.ThawThread;
+
import thaw.plugins.peerMonitor.*;
import thaw.fcp.*;
@@ -121,7 +123,9 @@
running = true;
isRefSet = false;
- Thread th = new Thread(new DisplayRefresher());
+ Thread th = new ThawThread(new DisplayRefresher(),
+ "Peer monitor refresh",
+ this);
th.start();
if (core.getConfig().getValue("peerMonitorFolded") != null) {
Modified: trunk/apps/Thaw/src/thaw/plugins/Restarter.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/Restarter.java 2007-09-22 15:06:07 UTC
(rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/Restarter.java 2007-09-22 15:09:44 UTC
(rev 15265)
@@ -16,6 +16,7 @@
import thaw.core.I18n;
import thaw.core.Logger;
import thaw.core.Plugin;
+import thaw.core.ThawThread;
import thaw.fcp.FCPTransferQuery;
/**
@@ -80,7 +81,7 @@
core.getConfigWindow().addObserver(this);
running = true;
- restarter = new Thread(this);
+ restarter = new ThawThread(this, "Restarter", this);
restarter.start();
return true;
Modified: trunk/apps/Thaw/src/thaw/plugins/StatusBar.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/StatusBar.java 2007-09-22 15:06:07 UTC
(rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/StatusBar.java 2007-09-22 15:09:44 UTC
(rev 15265)
@@ -12,6 +12,7 @@
import thaw.core.Main;
import thaw.core.Plugin;
import thaw.core.LogListener;
+import thaw.core.ThawThread;
import thaw.gui.IconBox;
import thaw.fcp.FCPTransferQuery;
@@ -38,7 +39,7 @@
advancedMode =
Boolean.valueOf(core.getConfig().getValue("advancedMode")).booleanValue();
running = true;
- refresher = new Thread(this);
+ refresher = new ThawThread(this, "Status bar refresh", this);
refresher.start();
Modified: trunk/apps/Thaw/src/thaw/plugins/ThemeSelector.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/ThemeSelector.java 2007-09-22 15:06:07 UTC
(rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/ThemeSelector.java 2007-09-22 15:09:44 UTC
(rev 15265)
@@ -20,6 +20,7 @@
import thaw.core.I18n;
import thaw.core.Logger;
import thaw.core.Core;
+import thaw.core.ThawThread;
public class ThemeSelector implements thaw.core.Plugin, Observer,
ListSelectionListener {
@@ -126,7 +127,7 @@
if (theme == null)
theme = UIManager.getSystemLookAndFeelClassName();
- Thread th = new Thread(new ThemeSetter(theme));
+ Thread th = new ThawThread(new ThemeSetter(theme), "Theme
setter", this);
th.start();
}
@@ -161,7 +162,7 @@
if (e.getFirstIndex() >= 0
&& themes.get(e.getFirstIndex()) != null) {
String[] str =
((String)themeList.getSelectedValue()).split(" ");
- Thread th = new Thread(new ThemeSetter(str[0]));
+ Thread th = new ThawThread(new ThemeSetter(str[0]),
"Theme setter", this);
th.start();
}
}
Modified: trunk/apps/Thaw/src/thaw/plugins/TransferLogs.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/TransferLogs.java 2007-09-22 15:06:07 UTC
(rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/TransferLogs.java 2007-09-22 15:09:44 UTC
(rev 15265)
@@ -40,6 +40,7 @@
import thaw.gui.GUIHelper;
import thaw.core.I18n;
import thaw.core.Plugin;
+import thaw.core.ThawThread;
import thaw.fcp.FCPQueueManager;
import thaw.fcp.FCPTransferQuery;
@@ -419,13 +420,13 @@
if (e.getSource() == importKeys) {
- Thread th = new Thread(new KeyImporter());
+ Thread th = new ThawThread(new KeyImporter(), "Key
importer", this);
th.start();
return;
}
if (e.getSource() == exportKeys) {
- Thread th = new Thread(new KeyExporter());
+ Thread th = new ThawThread(new KeyExporter(), "Key
exporter", this);
th.start();
return;
}
Modified: trunk/apps/Thaw/src/thaw/plugins/TrayIcon.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/TrayIcon.java 2007-09-22 15:06:07 UTC
(rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/TrayIcon.java 2007-09-22 15:09:44 UTC
(rev 15265)
@@ -28,6 +28,7 @@
import thaw.core.Config;
import thaw.core.Logger;
import thaw.core.I18n;
+import thaw.core.ThawThread;
import thaw.fcp.FCPTransferQuery;
@@ -401,7 +402,7 @@
/* progressBars vector is generated at the same time
than the panels */
refresher = new ProgressBarRefresher(progressBars);
- Thread th = new Thread(refresher);
+ Thread th = new ThawThread(refresher, "Trayicon
transfer list refresher", this);
th.start();
}
}
Modified: trunk/apps/Thaw/src/thaw/plugins/index/AutoRefresh.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/AutoRefresh.java 2007-09-22
15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/index/AutoRefresh.java 2007-09-22
15:09:44 UTC (rev 15265)
@@ -6,6 +6,7 @@
import thaw.core.Config;
import thaw.core.Logger;
+import thaw.core.ThawThread;
import thaw.fcp.FCPQueueManager;
import thaw.plugins.Hsqldb;
@@ -75,7 +76,7 @@
public void start() {
if (!threadRunning) {
threadRunning = true;
- Thread th = new Thread(this);
+ Thread th = new ThawThread(this, "Index tree
auto-refresher", this);
th.start();
}
}
Modified: trunk/apps/Thaw/src/thaw/plugins/index/FileManagementHelper.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/FileManagementHelper.java
2007-09-22 15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/index/FileManagementHelper.java
2007-09-22 15:09:44 UTC (rev 15265)
@@ -15,6 +15,7 @@
import thaw.gui.FileChooser;
import thaw.core.I18n;
import thaw.core.Logger;
+import thaw.core.ThawThread;
import thaw.fcp.FCPQueueManager;
import thaw.fcp.FCPTransferQuery;
@@ -43,7 +44,7 @@
public void actionPerformed(ActionEvent e) {
if (e.getSource() == src) {
- Thread th = new Thread(this);
+ Thread th = new ThawThread(this, "Action
replier", this);
th.start();
}
}
Modified: trunk/apps/Thaw/src/thaw/plugins/index/FileTable.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/FileTable.java 2007-09-22
15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/index/FileTable.java 2007-09-22
15:09:44 UTC (rev 15265)
@@ -28,6 +28,7 @@
import javax.swing.table.TableColumnModel;
import thaw.core.Config;
+import thaw.core.ThawThread;
import thaw.fcp.FreenetURIHelper;
import thaw.core.I18n;
import thaw.gui.IconBox;
@@ -162,7 +163,7 @@
updateRightClickMenu(null);
refresher = new TransferRefresher();
- Thread th = new Thread(refresher);
+ Thread th = new ThawThread(refresher, "File list refresher",
this);
th.start();
}
Modified: trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
2007-09-22 15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
2007-09-22 15:09:44 UTC (rev 15265)
@@ -48,6 +48,7 @@
import thaw.gui.IconBox;
import thaw.core.Config;
+import thaw.core.ThawThread;
import thaw.gui.FileChooser;
import thaw.core.MainWindow;
import thaw.fcp.FreenetURIHelper;
@@ -136,7 +137,7 @@
protected void startThread() {
- Thread th = new Thread(this);
+ Thread th = new ThawThread(this, "Action replier",
this);
th.start();
}
@@ -661,7 +662,7 @@
autoSort);
downloader.setTarget(target);
- Thread th = new Thread(downloader);
+ Thread th = new ThawThread(downloader, "Index downloader");
th.start();
return true;
@@ -846,7 +847,7 @@
IndexUploader uploader = new IndexUploader(queueManager,
indexBrowser, null);
uploader.setTarget(target);
- Thread th = new Thread(uploader);
+ Thread th = new ThawThread(uploader, "Index inserter");
th.start();
return true;
Modified: trunk/apps/Thaw/src/thaw/plugins/index/LinkManagementHelper.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/LinkManagementHelper.java
2007-09-22 15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/index/LinkManagementHelper.java
2007-09-22 15:09:44 UTC (rev 15265)
@@ -11,6 +11,7 @@
import javax.swing.AbstractButton;
import thaw.core.Logger;
+import thaw.core.ThawThread;
import thaw.plugins.Hsqldb;
import thaw.fcp.FCPQueueManager;
@@ -35,7 +36,7 @@
public void actionPerformed(ActionEvent e) {
if (e.getSource() == src) {
- Thread th = new Thread(this);
+ Thread th = new ThawThread(this, "Action
replier", this);
th.start();
}
}
Modified: trunk/apps/Thaw/src/thaw/plugins/index/UnknownIndexList.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/UnknownIndexList.java
2007-09-22 15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/index/UnknownIndexList.java
2007-09-22 15:09:44 UTC (rev 15265)
@@ -27,6 +27,7 @@
import thaw.core.I18n;
import thaw.core.Logger;
+import thaw.core.ThawThread;
import thaw.gui.IconBox;
import thaw.fcp.FCPQueueManager;
import thaw.fcp.FreenetURIHelper;
@@ -209,7 +210,7 @@
lastLinkAdder.stop();
lastLinkAdder = new LinkAdder(index);
- Thread th = new Thread(lastLinkAdder);
+ Thread th = new ThawThread(lastLinkAdder, "Unknown index list
computer", this);
th.start();
}
Modified: trunk/apps/Thaw/src/thaw/plugins/indexWebGrapher/GraphBuilder.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/indexWebGrapher/GraphBuilder.java
2007-09-22 15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/indexWebGrapher/GraphBuilder.java
2007-09-22 15:09:44 UTC (rev 15265)
@@ -11,6 +11,7 @@
import thaw.fcp.FreenetURIHelper;
import thaw.core.Logger;
+import thaw.core.ThawThread;
public class GraphBuilder implements Runnable {
@@ -213,7 +214,7 @@
refresher.run(false);
else {
if (refresherTh == null) {
- refresherTh = new Thread(refresher);
+ refresherTh = new ThawThread(refresher,
"Index web display refresh", this);
refresherTh.start();
}
}
Modified: trunk/apps/Thaw/src/thaw/plugins/miniFrost/AutoRefresh.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/miniFrost/AutoRefresh.java 2007-09-22
15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/miniFrost/AutoRefresh.java 2007-09-22
15:09:44 UTC (rev 15265)
@@ -8,8 +8,8 @@
import thaw.core.Logger;
import thaw.core.Config;
+import thaw.core.ThawThread;
-
public class AutoRefresh implements Runnable {
public static final int DEFAULT_MAX_BOARDS_REFRESHING = 7;
@@ -41,7 +41,7 @@
if (config.getValue("miniFrostAutoRefreshInterval") != null)
interval =
Integer.parseInt(config.getValue("miniFrostAutoRefreshInterval"));
- Thread th = new Thread(this);
+ Thread th = new ThawThread(this, "Board autorefresh", this);
th.start();
}
Modified: trunk/apps/Thaw/src/thaw/plugins/miniFrost/BoardManagementHelper.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/miniFrost/BoardManagementHelper.java
2007-09-22 15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/miniFrost/BoardManagementHelper.java
2007-09-22 15:09:44 UTC (rev 15265)
@@ -22,7 +22,7 @@
import thaw.core.I18n;
import thaw.core.Logger;
-
+import thaw.core.ThawThread;
import thaw.plugins.miniFrost.interfaces.Board;
import thaw.plugins.miniFrost.interfaces.BoardFactory;
import thaw.plugins.miniFrost.interfaces.Message;
@@ -46,7 +46,7 @@
}
public void actionPerformed(ActionEvent e) {
- Thread th = new Thread(this);
+ Thread th = new ThawThread(this, "Action replier",
this);
th.start();
}
Modified: trunk/apps/Thaw/src/thaw/plugins/miniFrost/DraftPanel.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/miniFrost/DraftPanel.java 2007-09-22
15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/miniFrost/DraftPanel.java 2007-09-22
15:09:44 UTC (rev 15265)
@@ -34,6 +34,7 @@
import thaw.core.I18n;
import thaw.core.Logger;
+import thaw.core.ThawThread;
import thaw.gui.IconBox;
import thaw.gui.FileChooser;
@@ -389,7 +390,7 @@
Logger.info(this, "BoardAdder");
- (new Thread(new BoardAdder())).start();
+ (new ThawThread(new BoardAdder(), "Board attachment
adder", this)).start();
return;
@@ -397,7 +398,7 @@
Logger.info(this, "FileAdder");
- (new Thread(new FileAdder())).start();
+ (new ThawThread(new FileAdder(), "File attachment
adder", this)).start();
return;
Modified: trunk/apps/Thaw/src/thaw/plugins/miniFrost/MessagePanel.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/miniFrost/MessagePanel.java
2007-09-22 15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/miniFrost/MessagePanel.java
2007-09-22 15:09:44 UTC (rev 15265)
@@ -39,8 +39,8 @@
import thaw.fcp.*;
import thaw.plugins.IndexBrowser;
import thaw.plugins.index.IndexManagementHelper;
+import thaw.core.ThawThread;
-
public class MessagePanel
implements ActionListener {
@@ -401,7 +401,8 @@
Runnable doScroll = new Runnable() {
public void run() {
- Thread th = new Thread(new
ScrollBarSetter());
+ Thread th = new ThawThread(new
ScrollBarSetter(),
+ "Scrollbar
setter", this);
th.start();
}
};
Modified: trunk/apps/Thaw/src/thaw/plugins/miniFrost/MessageTreeTable.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/miniFrost/MessageTreeTable.java
2007-09-22 15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/miniFrost/MessageTreeTable.java
2007-09-22 15:09:44 UTC (rev 15265)
@@ -63,6 +63,7 @@
import thaw.gui.IconBox;
import thaw.core.I18n;
import thaw.core.Logger;
+import thaw.core.ThawThread;
import thaw.plugins.signatures.Identity;
Modified: trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKBoard.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKBoard.java
2007-09-22 15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKBoard.java
2007-09-22 15:09:44 UTC (rev 15265)
@@ -12,6 +12,7 @@
import thaw.core.Logger;
import thaw.core.I18n;
+import thaw.core.ThawThread;
import thaw.plugins.Hsqldb;
import thaw.plugins.signatures.Identity;
@@ -758,7 +759,7 @@
notifyChange();
- Thread th = new Thread(this);
+ Thread th = new ThawThread(this, "Board refreshment", this);
th.start();
}
Modified:
trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKBoardAttachment.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKBoardAttachment.java
2007-09-22 15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKBoardAttachment.java
2007-09-22 15:09:44 UTC (rev 15265)
@@ -8,6 +8,7 @@
import thaw.plugins.Hsqldb;
import thaw.core.Logger;
import thaw.fcp.FCPQueueManager;
+import thaw.core.ThawThread;
import thaw.plugins.miniFrost.interfaces.Board;
Modified:
trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKFileAttachment.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKFileAttachment.java
2007-09-22 15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKFileAttachment.java
2007-09-22 15:09:44 UTC (rev 15265)
@@ -7,6 +7,7 @@
import thaw.core.I18n;
import thaw.core.Config;
+import thaw.core.ThawThread;
import thaw.plugins.Hsqldb;
import thaw.core.Logger;
import thaw.gui.FileChooser;
@@ -214,7 +215,7 @@
keysToDownload = new Vector();
keysToDownload.add(key);
- Thread th = new Thread(this);
+ Thread th = new ThawThread(this, "File downloading :
path asker", this);
th.start();
} else if
(action.equals(I18n.getMessage("thaw.plugin.miniFrost.downloadAll"))) {
@@ -231,7 +232,7 @@
keysToDownload.add(((KSKFileAttachment)o).getValue("key"));
}
- Thread th = new Thread(this);
+ Thread th = new ThawThread(this, "File downloading :
path asker", this);
th.start();
}
Modified: trunk/apps/Thaw/src/thaw/plugins/queueWatcher/QueuePanel.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/queueWatcher/QueuePanel.java
2007-09-22 15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/queueWatcher/QueuePanel.java
2007-09-22 15:09:44 UTC (rev 15265)
@@ -35,6 +35,7 @@
import javax.swing.table.JTableHeader;
import thaw.core.Core;
+import thaw.core.ThawThread;
import thaw.gui.FileChooser;
import thaw.core.I18n;
import thaw.gui.IconBox;
@@ -449,13 +450,15 @@
public void removeSelectedTransfers() {
reloadSelections();
- Thread th = new Thread(new
ActionReplier(ACTION_REMOVE_SELECTED, -1));
+ Thread th = new ThawThread(new
ActionReplier(ACTION_REMOVE_SELECTED, -1),
+ "Action replier : Remove selected",
this);
th.start();
}
public void removeAllFinishedTransfers() {
reloadSelections();
- Thread th = new Thread(new
ActionReplier(ACTION_REMOVE_FINISHED, -1));
+ Thread th = new ThawThread(new
ActionReplier(ACTION_REMOVE_FINISHED, -1),
+ "Action replier : Remove finished",
this);
th.start();
}
@@ -490,7 +493,9 @@
}
}
- final Thread actionTh = new Thread(new ActionReplier(action,
prioritySelected));
+ final Thread actionTh = new ThawThread(new
ActionReplier(action, prioritySelected),
+ "Action replier :
"+Integer.toString(action),
+ this);
actionTh.start();
}
Modified: trunk/apps/Thaw/src/thaw/plugins/signatures/SigConfigTab.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/signatures/SigConfigTab.java
2007-09-22 15:06:07 UTC (rev 15264)
+++ trunk/apps/Thaw/src/thaw/plugins/signatures/SigConfigTab.java
2007-09-22 15:09:44 UTC (rev 15265)
@@ -34,6 +34,7 @@
import thaw.core.ConfigWindow;
import thaw.core.Config;
import thaw.core.Logger;
+import thaw.core.ThawThread;
import thaw.gui.IconBox;
import thaw.gui.FileChooser;
@@ -324,20 +325,20 @@
public void actionPerformed(ActionEvent e) {
if (e.getSource() == addIdentity) {
- Thread th = new Thread(new IdentityAdder());
+ Thread th = new ThawThread(new IdentityAdder(),
"Identity adder", this);
th.start();
}
if (e.getSource() == removeIdentity) {
Identity i = (Identity)list.getSelectedValue();
if (i != null) {
- Thread th = new Thread(new
IdentityDeleter(i));
+ Thread th = new ThawThread(new
IdentityDeleter(i), "Identity deleter", this);
th.start();
}
}
if (e.getSource() == importIdentity) {
- Thread th = new Thread(new IdentityImporter());
+ Thread th = new ThawThread(new
IdentityImporter(), "Identity importer", this);
th.start();
}
@@ -345,7 +346,7 @@
Identity i = (Identity)list.getSelectedValue();
if (i != null) {
- Thread th = new Thread(new
IdentityExporter(i));
+ Thread th = new ThawThread(new
IdentityExporter(i), "Identity exporter", this);
th.start();
}
}