Package org.cdlib.mrt.core
Class ThreadHandler
java.lang.Object
org.cdlib.mrt.core.ThreadHandler
Run fixity
- Author:
- dloy
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThreadHandler(long pollTime, int threadCnt, LoggerInf logger) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidintintstatic ThreadHandlergetThreadHandler(long pollTime, int threadCnt, LoggerInf logger) protected voidstatic booleanisDebug()booleanstatic voidsetDebug(boolean debug) voidsetShutdown(boolean shutdown) voidshutdown()
-
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()
-