The article is relevant for clients who are going to upgrade the FIXEdge to version 6.0 and higher.
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 the 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 the cron-like schedule management functionality follow the steps below:
If you are going to use FIXICC as a tool for cron-like schedule management, you need to specify the following setting in FIXEdge.properties:
Please use this FIXICC manual for details regarding the schedule management functionality available in FIXICC.
If you are not going to use FIXICC in terms of 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:
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:
Then you need to assign the defined schedule to the specific session which should use it:
Refer to Cron-Like Session Schedule Properties article for details.
1.1. How to assign one schedule to several sessions
In case you have several sessions that use the same schedule, you may assign one schedule to several sessions.
If we use DefaultSchedule defined above, we can assign it to several sessions (say, TestFIXAcceptor1 and TestFIXAcceptor2) in the following way:
1.2. How to specify days off and time zone for my schedule
Using these parameters you can get something like the following:
2. How to use assign CRON expression to my current session's schedule
CRON expressions can be also assigned to your current sessions schedules defined in Old-Style Session Schedule Properties:
If you are going to use FIXICC as a tool for Cron-Like schedule management, you need to specify the following setting in FIXEdge.properties:
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 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 comparison with quartz.
Several CRON expressions can be assigned for each property, they should be delimited by a semicolon:
Both formats - CRON expression and HH:MM - can be supported by FIXEdge simultaneously in one schedule. In other words, user's session's schedule can be setup in the following way:
The thing is that HH:MM is just converted to the CRON expression like 0 MM HH * * *.
3. How to keep using my current session's schedule
In order to keep using your current session's schedule, no additional actions are required.
In other words, you may safely use your current configuration if your session's schedule is configured in the following way:
Please see Old-Style Session Schedule Properties for reference.