基于Java的监控框架
用于监控代码片段
调试运行om.lsm.guardkit.test.GuardTest
,结果如下
EagleEye init!
Hello guardkit!
>>>StatLogRollingTask isRunning>>>
>>>StatLogRollingTask isRunning>>>
>>>StatLogRollingTask isRunning>>>
>>>StatLogRollingTask isRunning>>>
>>>StatLogRollingTask isRunning>>>
>>>StatLogRollingTask isRunning>>>
>>>StatLogRollingTask isRunning>>>
>>>StatLogRollingTask isRunning>>>
>>>StatLogRollingTask isRunning>>>
StatLogController中变量rollerThreadPool实现了一个线程池这个线程池里永远只有一个线程在持续运行着,类型是StatLogRollingTask