[
https://issues.jboss.org/browse/WFLY-12309?page=com.atlassian.jira.plugin...
]
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@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@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@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@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)