Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

Since FIXEdge 6.0 and FIXICC 2.10.1 new functionality of session schedule management has become available. This instruction provides the answers on how to upgrade your current sessions schedule in order to support new functionalitythe cron-like format of the schedule.

Please note, that new Scheduler functionality uses the same notion of schedule properties as old one:

1.How to use

...

cron-like session's schedule functionality with CRON expressions

In order to use new schedule the cron-like schedule management functionality follow the steps below:

  1. If you are going to use FIXICC as a tool for new cron-like schedule management, you need to specify the following setting in FIXEdge.properties:

    Code Block
    languagebash
    linenumberstrue
    FIXICC.Schedules = true

    Please use this FIXICC manual for details regarding new schedule the schedule management functionality available in FIXICC.

  2. If you are not going to use FIXICC in terms of new cron-like schedule management functionality or/and you would like to configure sessions schedule via a configuration file, you may ignore "FIXICC.Schedules" property. Here are the steps which should be performed to configure the schedule via FIXEdge.properties:

    1. First of all, you need to define the Schedule entity in FIXEdge.properties. The common Schedule structure is defined in the following way:

      Schedules.<name of schedule>.<section of schedule> = <cron expression>[;<cron expression>....]

      Below is the example of how to setup some "default" session's schedule:

      Code Block
      languagebash
      linenumberstrue
      Schedules.Schedule1.StartTime = 0 0 8 * * 2-6
      Schedules.Schedule1.ConnectTime =  0 0 9 * * 2-6
      Schedules.Schedule1.DisconnectTime = 0 0 21 * * 2-6
      Schedules.Schedule1.TerminateTime = 0 0 21 * * 6
    2. Then you need to assign the defined schedule to the specific session which should use it:

      Code Block
      languagebash
      linenumberstrue
      FixLayer.FixEngine.Session.TestFIXAcceptor.Schedule = Schedule1

Refer to NewCron-Style Like Session Schedule Properties article for details.

Note

If you have old-style schedule properties specified (including DefaultStartTime and DefaultTerminateTime) as well as new Cron-Like schedule assigned to the same session, then new then the Cron-Like schedule will be aplliedapplied, while all old-style properties will be ignored;

...

In case you have several sessions which that use the same schedule, you may assign one schedule to several sessions.

...

1.2. How to specify days off and time zone for my schedule

New session Cron-Like session schedule management functionality provides a possibility to specify Time Zone and Days Off to have a more flexible schedule.

Using these parameters you can get something like the following:

...

The same logic is applicable forto DefaultStartTime and DefaultTerminateTime properties.

Note

If you are going to use FIXICC as a tool for new Cron-Like schedule management, you need to specify the following setting in FIXEdge.properties:

Code Block
languagebash
linenumberstrue
FIXICC.Schedules = true
Note

CRON has the following syntax:

┌──────────── second (0 - 59)
│ ┌───────────── minute (0 - 59)
| │ ┌───────────── hour (0 - 23)
| │ │ ┌───────────── day of month (1 - 31)
| │ │ │ ┌───────────── month (1 - 12)
| │ │ │ │ ┌───────────── day of week (1 - 7: Sunday to Saturday)
| │ │ │ │ │
│ │ │ │ │ │
│ │ │ │ │ │
* * * * * *

Support of the CRON expressions is limited by quartz. In particular, specifying both a day-of-week and a day-of-month values is prohibited (you'll need to use the '*' character in one of these fields).

The only note here is that '*' character is used instead of '?' character in compare comparison with quartz.

Note

Several CRON expressions can be assigned for each property, they should be delimited by a semicolon:

Code Block
languagebash
linenumberstrue
# day session is from 8am to 2pm, evening session is from 4pm to 4am next day
FixLayer.FixEngine.Session.TestFIXAcceptor.ConnectTime = 0 0 8 * * *; 0 0 16 * * *
FixLayer.FixEngine.Session.TestFIXAcceptor.DisconnectTime = 0 0 14 * * *; 0 0 4 * * *
FixLayer.FixEngine.Session.TestFIXAcceptor.TerminateTime = 0 0 14 * * *; 0 0 4 * * *
Note

Both formats - CRON expression and HH:MM - can be supported by FIXEdge simultaneously in one schedule. In other words, you user's session's schedule can be setup in the following way:

Code Block
languagebash
linenumberstrue
FixLayer.FixEngine.Session.TestFIXAcceptor.StartTime = 0 0 8 * * *
FixLayer.FixEngine.Session.TestFIXAcceptor.ConnectTime = 09:00
FixLayer.FixEngine.Session.TestFIXAcceptor.DisconnectTime = 0 58 23 * * *
FixLayer.FixEngine.Session.TestFIXAcceptor.TerminateTime = 23:59

The thing is that HH:MM is just converted to the CRON expression like 0 MM HH * * *.

...