[jboss-jira] [JBoss JIRA] (WFLY-12309) Need to include the schedule expression value in the toString() output of a calendar-based timer
Cheng Fang (Jira)
issues at jboss.org
Sat Jul 20 21:19:00 EDT 2019
[ https://issues.jboss.org/browse/WFLY-12309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cheng Fang updated WFLY-12309:
------------------------------
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:
{code}
timer [ID=FD3752D5-3D58-48AC-8E22-75A54BBF0C65 TIMEDOBJECTID=xxx AUTO-TIMER?:FALSE PERSISTENT?:FALSE TIMERSERVICE=ORG.JBOSS.AS.EJB3.TIMERSERVICE.TIMERSERVICEIMPL at 49E567E4 INITIALEXPIRATION=NULL INTERVALDURATION(IN MILLI SEC)=0 NEXTEXPIRATION=NULL TIMERSTATE=ACTIVE INFO=TIMERINFO]
{code}
The desired output for a sample calendar-based timer:
{code}
timer: [id=07a989cf-e7d7-4dbc-ad66-75c54ad0d9fd timedObjectId=xxx auto-timer?:false persistent?:true timerService=org.jboss.as.ejb3.timerservice.TimerServiceImpl at 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]
{code}
> Need to include the schedule expression value in the toString() output of a calendar-based timer
> ------------------------------------------------------------------------------------------------
>
> Key: WFLY-12309
> URL: https://issues.jboss.org/browse/WFLY-12309
> Project: WildFly
> Issue Type: Enhancement
> Components: EJB
> Affects Versions: 17.0.1.Final
> Reporter: Cheng Fang
> Assignee: Cheng Fang
> Priority: Major
>
> 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:
> {code}
> timer [ID=FD3752D5-3D58-48AC-8E22-75A54BBF0C65 TIMEDOBJECTID=xxx AUTO-TIMER?:FALSE PERSISTENT?:FALSE TIMERSERVICE=ORG.JBOSS.AS.EJB3.TIMERSERVICE.TIMERSERVICEIMPL at 49E567E4 INITIALEXPIRATION=NULL INTERVALDURATION(IN MILLI SEC)=0 NEXTEXPIRATION=NULL TIMERSTATE=ACTIVE INFO=TIMERINFO]
> {code}
> The desired output for a sample calendar-based timer:
> {code}
> timer: [id=07a989cf-e7d7-4dbc-ad66-75c54ad0d9fd timedObjectId=xxx auto-timer?:false persistent?:true timerService=org.jboss.as.ejb3.timerservice.TimerServiceImpl at 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]
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list