Package org.javlo.thread
Class ThreadManager
- java.lang.Object
-
- java.lang.Thread
-
- org.javlo.thread.ThreadManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected static Loggerloggercreate a static logger.Booleanstop-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCountThread()StringgetCurrentThreadInfo()StringgetCurrentThreadName()static ThreadManagergetInstance(javax.servlet.ServletContext application)NotificationServicegetNotificationService()booleanisThreadRunning(String id)intpurgeAllThread()voidrun()voidsetNotificationService(NotificationService notificationService)voidsetThreadDir(File threadDir)-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Method Detail
-
getInstance
public static ThreadManager getInstance(javax.servlet.ServletContext application)
-
setThreadDir
public void setThreadDir(File threadDir)
-
getCountThread
public int getCountThread()
-
purgeAllThread
public int purgeAllThread()
-
getCurrentThreadName
public String getCurrentThreadName()
-
getCurrentThreadInfo
public String getCurrentThreadInfo()
-
getNotificationService
public NotificationService getNotificationService()
-
setNotificationService
public void setNotificationService(NotificationService notificationService)
-
isThreadRunning
public boolean isThreadRunning(String id)
-
-