System
The System structure holds the current state for the Trading System. This includes all the time values used throughout the system backend. There is only ever one record in this table.
- Section: System Structures
Metadata
- Base Table Class: Static
- Default Size: 1
Fields
| Name | Type | Size (bytes) | Description |
|---|---|---|---|
| Id | Integer (signed) | 8 | The unique identifier of this System. |
| Status | Set of Status | 4 | |
| MachineMode | One of MachineMode | 1 | Storage for the zeromq context use by the trading engine process |
| SystemMode | One of SystemMode | 1 | The current operational mode of the system. This attribute is used by the system to ensure an orderly interaction between different processes within the system. |
| SystemStarted | Integer (unsigned) | 1 | Whether the system has started or not |
| SystemStatus | Set of Status | 4 | The top level status of the system. It provides a single overriding status that allows the system to be suspended (or activated) from a single attribute. |
| TransactionCount | Integer (unsigned) | 8 | The number of transactions that the system has currently processed. |
| SystemStartTime | Integer (unsigned) | 4 | When the system was started |
| SystemStartTimestamp | Integer (unsigned) | 8 | Nanosecond time when the system was started |
| SystemTimeAtMidnight | Integer (unsigned) | 4 | The underlying system time at the point at which "midnight" last changed in the system. |
| SystemStartOfDaySecs | Integer (unsigned) | 4 | |
| SystemTimestamp | Integer (unsigned) | 8 | Current system nanosecond time |
| SystemTime | Integer (unsigned) | 4 | Current system Unix time |
| SystemTimeMonotonic | Integer (unsigned) | 4 | Current system time read from a monotonic clock source |
| SystemClock | Integer (signed) | 4 | Current system time in integer HHMMSS format |
| SystemDate | Integer (signed) | 4 | Current system date in integer YYYYMMDD format |
| SystemDayOfWeek | One of DayOfWeek | 1 | The effective day of the week in the system at this time. |
| SystemUUID | Integer (unsigned) | 4 | |
| SystemClientUUID | Integer (unsigned) | 4 | |
| LastTimeoutCheck | Integer (unsigned) | 4 | The time at which the system last checked for any sessions that need to be timed out. |
| LastAuctionIndicative | Integer (unsigned) | 4 | The time at which the last indicative auction calculation was performed. |
| TransactionMajor | Integer (unsigned) | 8 | This attribute stores the high bits that are used to ensure distinct transaction numbers are produced for this running instance of the system. |
| UserLoginTokens_count | Integer (unsigned) | 2 | Count of following field |
| UserLoginTokens | Integer (signed) | 8 | An array to store all the session tokens for the maximum number of concurrent connections the system can support. |
| BootstrapDatabase | String | 100 | The name of the database from which the trading engine was started. |
| TableCount | Integer (signed) | 8 | |
| RemapCount | Integer (signed) | 8 | |
| PermissionsVersion | Integer (unsigned) | 4 | Incremented whenever any permission caches are updated. |
| ABICheckSum | String | 40 | SHA-1 checksum identifying the version of the shared memory ABI. |
| SystemShutdown | Integer (unsigned) | 1 | |
| NextLoginSearchIndex | Integer (unsigned) | 4 | |
| NextLoginCycle | Integer (unsigned) | 2 | |
| SystemCycleState | Integer (signed) | 1 | |
| SystemCycleCount | Integer (unsigned) | 4 | |
| InstanceId | Integer (unsigned) | 4 | |
| EngineMD5Sum | String | 32 | |
| BCSequenceAfterReload | Integer (unsigned) | 8 | |
| UpdateNumber | Integer (unsigned) | 8 | A number that records every change that happens to a record. It is primarily used to avoid write after read problems when an intermediate write has changed the originally read record. |
| OwnerUser | Foreign key to User | 8 | The Id of the User that owns this System. |
| OwnerGroup | Foreign key to Group | 8 | The Id of the Group that owns this System. |
| OwnerFirm | Foreign key to Firm | 8 | The Id of the Firm that owns this System. |
| CreateUser | Foreign key to User | 8 | The Id of the User that created this System. |
| CreateTimestamp | Integer (unsigned) | 8 | The time at which this System was created. |
| UpdateUser | Foreign key to User | 8 | The Id of the User that last updated this System. |
| UpdateTimestamp | Integer (unsigned) | 8 | The time at which this System was last updated. |