org.perf.log.logger
Class AsyncLoggerWorkerThreadAbstract

java.lang.Object
  extended by org.perf.log.logger.AsyncLoggerWorkerThreadAbstract
Direct Known Subclasses:
CommonJAsyncLoggerWorkerThread, WasWmAsyncLoggerWorkerThread

public abstract class AsyncLoggerWorkerThreadAbstract
extends java.lang.Object


Field Summary
static java.lang.String LOGGER_ASYNC_THREAD_LOGGER_MIN_FLUSH_THRESHOLD
           
static java.lang.String LOGGER_ASYNC_THREAD_LOGGER_PRINT_STAT_TIME_INTERVAL_IN_MILLIS
           
static java.lang.String LOGGER_ASYNC_THREAD_LOGGER_THREAD_SLEEP_TIME_IN_MILLIS
           
 
Constructor Summary
AsyncLoggerWorkerThreadAbstract(java.lang.String asyncLogTaskName, java.util.concurrent.LinkedBlockingQueue<PerfLogData> logQueue, LogQueueMetricTracker logQueueMetricTracker)
           
 
Method Summary
static int getMinFlushThreshold()
           
static long getPrintStatTimeIntervalInMillis()
           
static long getThreadSleepTimeInMillis()
           
 boolean isDaemon()
           
 void release()
           
 void run()
           
static void setMinFlushThreshold(int minFlushThreshold)
           
static void setPrintStatTimeIntervalInMillis(long printStatTimeIntervalInMillis)
           
static void setThreadSleepTimeInMillis(long threadSleepTimeInMillis)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER_ASYNC_THREAD_LOGGER_MIN_FLUSH_THRESHOLD

public static final java.lang.String LOGGER_ASYNC_THREAD_LOGGER_MIN_FLUSH_THRESHOLD
See Also:
Constant Field Values

LOGGER_ASYNC_THREAD_LOGGER_THREAD_SLEEP_TIME_IN_MILLIS

public static final java.lang.String LOGGER_ASYNC_THREAD_LOGGER_THREAD_SLEEP_TIME_IN_MILLIS
See Also:
Constant Field Values

LOGGER_ASYNC_THREAD_LOGGER_PRINT_STAT_TIME_INTERVAL_IN_MILLIS

public static final java.lang.String LOGGER_ASYNC_THREAD_LOGGER_PRINT_STAT_TIME_INTERVAL_IN_MILLIS
See Also:
Constant Field Values
Constructor Detail

AsyncLoggerWorkerThreadAbstract

public AsyncLoggerWorkerThreadAbstract(java.lang.String asyncLogTaskName,
                                       java.util.concurrent.LinkedBlockingQueue<PerfLogData> logQueue,
                                       LogQueueMetricTracker logQueueMetricTracker)
Method Detail

release

public void release()

run

public void run()

getMinFlushThreshold

public static int getMinFlushThreshold()
Returns:
the minFlushThreshold

getThreadSleepTimeInMillis

public static long getThreadSleepTimeInMillis()
Returns:
the threadSleepTimeInMillis

getPrintStatTimeIntervalInMillis

public static long getPrintStatTimeIntervalInMillis()
Returns:
the printStatTimeIntervalInMillis

setMinFlushThreshold

public static void setMinFlushThreshold(int minFlushThreshold)
Parameters:
minFlushThreshold - the minFlushThreshold to set

setThreadSleepTimeInMillis

public static void setThreadSleepTimeInMillis(long threadSleepTimeInMillis)
Parameters:
threadSleepTimeInMillis - the threadSleepTimeInMillis to set

setPrintStatTimeIntervalInMillis

public static void setPrintStatTimeIntervalInMillis(long printStatTimeIntervalInMillis)
Parameters:
printStatTimeIntervalInMillis - the printStatTimeIntervalInMillis to set

isDaemon

public boolean isDaemon()