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 Logger
logger
create a static logger.Boolean
stop
-
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 int
getCountThread()
String
getCurrentThreadInfo()
String
getCurrentThreadName()
static ThreadManager
getInstance(javax.servlet.ServletContext application)
NotificationService
getNotificationService()
boolean
isThreadRunning(String id)
int
purgeAllThread()
void
run()
void
setNotificationService(NotificationService notificationService)
void
setThreadDir(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)
-
-