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