Top
Interstage Big DataComplex Event Processing Server V1.1.0 Developer's Reference
FUJITSU Software

1.4.11 Time-based Observer

Time-based observers observe time-based events based on the internal timer of the complex event processing engine.

Two observers, TIMER:INTERVAL and TIMER:AT, are available.

Observer

Syntax

Explanation

TIMER:INTERVAL

timer:interval(timeExpression)

Waits the specified time.

In the timeExpression, specify either a time representation or an expression providing the number of seconds.

TIMER:AT

timer:at(minuteSpecification, hourSpecification, daySpecification, monthSpecification, dayOfWeekSpecification [,secondsSpecification])

Has a function like the Unix crontab command. The expression becomes TRUE at the specified time.

An asterisk (*) can be specified as a wild card in each specification. A range can be specified by using a colon (:) to tie together a lower limit and an upper limit. The division expression */x indicates that the value is enabled after every x. Specifications in accordance with combinations are possible by enclosing specifications in square brackets, "[" and "]", and by comma (,) separation.


The table below shows the values that can be specified for each TIMER:AT specification.

Specification location

Specifiable value

Specifiable keyword

minuteSpecification

0-59

hourSpecification

0-23

daySpecification

1-31

last: Indicates the last day of the target month.

weekday: Indicates the nearest working day (Monday to Friday) to the specified date.

lastweekday: Indicates the last working day of the target month.

monthSpecification

1-12

dayOfWeekSpecification

0 (Sunday) - 6 (Saturday)

last: If only this specification is used, this simply indicates Saturday. If last is used together with a numeric indicating a day of the week, indicates the last occurrence of that day of the week in the target month.

secondsSpecification (optional)

0-59