Package org.cdlib.mrt.core
Class ThreadHandler
java.lang.Object
org.cdlib.mrt.core.ThreadHandler
Run fixity
- Author:
- dloy
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ThreadHandler
(long pollTime, int threadCnt, LoggerInf logger) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
int
int
static ThreadHandler
getThreadHandler
(long pollTime, int threadCnt, LoggerInf logger) protected void
static boolean
isDebug()
boolean
static void
setDebug
(boolean debug) void
setShutdown
(boolean shutdown) void
shutdown()
-
Field Details
-
NAME
- See Also:
-
MESSAGE
- See Also:
-
debug
protected static boolean debug -
STATUS
protected static final boolean STATUS- See Also:
-
threads
-
threadCnt
protected int threadCnt -
pollTime
protected long pollTime -
saveException
-
shutdown
protected boolean shutdown -
logger
-
-
Constructor Details
-
ThreadHandler
- Throws:
TException
-
-
Method Details
-
getThreadHandler
public static ThreadHandler getThreadHandler(long pollTime, int threadCnt, LoggerInf logger) throws TException - Throws:
TException
-
shutdown
- Throws:
TException
-
runThread
-
completeThreads
protected void completeThreads() -
getActiveCnt
public int getActiveCnt() -
initialThreads
protected void initialThreads() -
isShutdown
public boolean isShutdown() -
setShutdown
public void setShutdown(boolean shutdown) -
isDebug
public static boolean isDebug() -
setDebug
public static void setDebug(boolean debug) -
getThreadCnt
public int getThreadCnt()
-