Table of Contents |
---|
...
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 how to setup some "default" session's schedule:
Code Block language bash linenumbers true 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
Then you need to assign the defined schedule to the specific session which should use it:
Code Block language bash linenumbers true FixLayer.FixEngine.Session.TestFIXAcceptor.Schedule = Schedule1
Refer to New-Style Session Schedule Properties article for details.
Note |
---|
If you have old-style schedule properties specified (including DefaultStartTime and DefaultTerminateTime) as well as new schedule assigned to the same session, then new schedule will be apllied, while all old-style properties will be ignored; |
1.1. How to 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:
Code Block | ||||
---|---|---|---|---|
| ||||
FixLayer.FixEngine.Session.TestFIXAcceptor1.Schedule = Schedule1
FixLayer.FixEngine.Session.TestFIXAcceptor2.Schedule = Schedule1 |
1.2. How to specify days off and time zone for my schedule
...
CRON has the following syntax:
┌──────────── second (0 - 59)
...