Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-12309

Need to include the schedule expression value in the toString() output of a calendar-based timer

    Details

      Description

      Currently the toString() output of a calendar-based timer contains the same info as that of a non-calendar-based timer. Need to enhance it to include schedule expression details to aid debug and monitoring.

      The current output of a sample calendar-based timer:

      timer [ID=FD3752D5-3D58-48AC-8E22-75A54BBF0C65 TIMEDOBJECTID=xxx AUTO-TIMER?:FALSE PERSISTENT?:FALSE TIMERSERVICE=ORG.JBOSS.AS.EJB3.TIMERSERVICE.TIMERSERVICEIMPL@49E567E4 INITIALEXPIRATION=NULL INTERVALDURATION(IN MILLI SEC)=0 NEXTEXPIRATION=NULL TIMERSTATE=ACTIVE INFO=TIMERINFO]
      

      The desired output for a sample calendar-based timer:

      timer: [id=07a989cf-e7d7-4dbc-ad66-75c54ad0d9fd timedObjectId=xxx auto-timer?:false persistent?:true timerService=org.jboss.as.ejb3.timerservice.TimerServiceImpl@204ac9fc initialExpiration=null intervalDuration(in milli sec)=0 nextExpiration=Sun Jul 21 09:06:21 CST 2019 timerState=ACTIVE info=null] ScheduleExpression[second=21 minute=6 hour=9 dayOfWeek=* dayOfMonth=21 month=7 year=2019 start=null end=null timezone=null]
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                cfang Cheng Fang
                Reporter:
                cfang Cheng Fang
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: