Threadpool refactoring.
This commit is contained in:
@@ -44,7 +44,7 @@ import java.util.StringTokenizer;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.commons.concurrent.ThreadPoolManager;
|
||||
import com.l2jmobius.commons.concurrent.ThreadPool;
|
||||
import com.l2jmobius.commons.database.DatabaseFactory;
|
||||
import com.l2jmobius.commons.util.object.L2ObjectMap;
|
||||
import com.l2jmobius.gameserver.GameTimeController;
|
||||
@@ -315,7 +315,7 @@ public class GameStatusThread extends Thread
|
||||
}
|
||||
else if (_usrCommand.equals("performance"))
|
||||
{
|
||||
for (String line : ThreadPoolManager.getStats())
|
||||
for (String line : ThreadPool.getStats())
|
||||
{
|
||||
_print.println(line);
|
||||
}
|
||||
@@ -323,10 +323,10 @@ public class GameStatusThread extends Thread
|
||||
}
|
||||
else if (_usrCommand.equals("purge"))
|
||||
{
|
||||
ThreadPoolManager.purge();
|
||||
ThreadPool.purge();
|
||||
_print.println("STATUS OF THREAD POOLS AFTER PURGE COMMAND:");
|
||||
_print.println("");
|
||||
for (String line : ThreadPoolManager.getStats())
|
||||
for (String line : ThreadPool.getStats())
|
||||
{
|
||||
_print.println(line);
|
||||
}
|
||||
@@ -1223,7 +1223,7 @@ public class GameStatusThread extends Thread
|
||||
checkForDeadlocks(sb);
|
||||
|
||||
sb.append("\n\n## Thread Pool Manager Statistics ##\n");
|
||||
for (String line : ThreadPoolManager.getStats())
|
||||
for (String line : ThreadPool.getStats())
|
||||
{
|
||||
sb.append(line);
|
||||
sb.append('\n');
|
||||
|
||||
@@ -29,7 +29,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.Server;
|
||||
import com.l2jmobius.commons.concurrent.ThreadPoolManager;
|
||||
import com.l2jmobius.commons.concurrent.ThreadPool;
|
||||
import com.l2jmobius.commons.util.Rnd;
|
||||
|
||||
public class Status extends Thread
|
||||
@@ -60,7 +60,7 @@ public class Status extends Thread
|
||||
final GameStatusThread gst = new GameStatusThread(connection, _uptime, _statusPw);
|
||||
if (!connection.isClosed())
|
||||
{
|
||||
ThreadPoolManager.execute(gst);
|
||||
ThreadPool.execute(gst);
|
||||
}
|
||||
}
|
||||
else if (_mode == Server.MODE_LOGINSERVER)
|
||||
@@ -68,7 +68,7 @@ public class Status extends Thread
|
||||
final LoginStatusThread lst = new LoginStatusThread(connection, _uptime, _statusPw);
|
||||
if (!connection.isClosed())
|
||||
{
|
||||
ThreadPoolManager.execute(lst);
|
||||
ThreadPool.execute(lst);
|
||||
_loginStatus.add(lst);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user