Apama 10.3 | Apama Documentation | Deploying and Managing Apama Applications | Correlator Utilities Reference | Starting the correlator | Determining whether to disable the correlator's internal clock
Determining whether to disable the correlator's internal clock
When you start the correlator, you can specify the -Xclock option to disable the correlator's internal clock. By default, the correlator uses internally generated clock ticks to assign a timestamp to each incoming event. When you specify the -Xclock option, you must send time events (&TIME) to the correlator. These time events set the correlator's clock.
Use &TIME events in place of the correlator's internal clock when you want to reproduce the historic behavior of an application. For example, Apama's Data Player in Software AG Designer starts a correlator with a command that specifies the -Xclock option. The Data Player then sends &TIME events that let you play back events from the database.
A situation in which you might want to generate &TIME events is when you want to run experiments at faster than real time but still obtain correct timestamp behavior. In this situation, the correlator uses the externally generated time events instead of real time to invoke timers and wait events.
Disabling the correlator's internal clock, and sending external time events, affects all temporal operations, such as timers and wait statements.
Regardless of whether the correlator generates internal clock ticks, or receives external time events, the correlator assigns a timestamp to each incoming event. The timestamp indicates the time that the event arrived on the context's input queue. The value of the timestamp is the same as the last internally-generated clock tick or externally-generated time event. For example, suppose you have the following events and clock ticks:
A and B receive a timestamp of 1. C receives a timestamp of 2.
See also Understanding time in the correlator.

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.