예제 #1
0
 @ManagedAttribute
 public int getTimerThreads() {
   TimeScheduler timer = getTimer();
   return timer != null ? timer.getMinThreads() : -1;
 }
예제 #2
0
 @ManagedOperation
 public String dumpTimerQueue() {
   TimeScheduler timer = getTimer();
   return timer != null ? timer.dumpTimerTasks() : "<n/a";
 }
예제 #3
0
 @ManagedAttribute
 public int getNumberOfTasksInTimer() {
   TimeScheduler timer = getTimer();
   return timer != null ? timer.size() : -1;
 }