Class ThreadManager

  • All Implemented Interfaces:
    Runnable

    public class ThreadManager
    extends Thread
    • Field Detail

      • logger

        protected static Logger logger
        create a static logger.
    • Method Detail

      • getInstance

        public static ThreadManager getInstance​(javax.servlet.ServletContext application)
      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
      • setThreadDir

        public void setThreadDir​(File threadDir)
      • getCountThread

        public int getCountThread()
      • purgeAllThread

        public int purgeAllThread()
      • getCurrentThreadName

        public String getCurrentThreadName()
      • getCurrentThreadInfo

        public String getCurrentThreadInfo()
      • setNotificationService

        public void setNotificationService​(NotificationService notificationService)
      • isThreadRunning

        public boolean isThreadRunning​(String id)