Definition at line 92 of file SessionScheduler.h.
◆ SessionScheduler()
◆ ~SessionScheduler()
Performs the graceful shutdown of scheduling sessions.
◆ add() [1/2]
Adds the session to the automatic connection management.
- If the session is being added during the active time frame, it will be connected immediately.
- If the session is being registered during the inactive time frame and is in the active state, it will be disconnected.
- If the session is already registered, an exception will be thrown.
- Parameters
-
session | the instance of the session to be maintained. |
schedule | Session's schedule. |
connection | Session's connection settings. |
◆ add() [2/2]
Adds the session to the automatic connection management.
- If the session is being added during the active time frame, it will be connected immediately.
- If the session is being registered during the inactive time frame and is in the active state, it will be disconnected.
- If the session is already registered, and exception will be thrown.
- Parameters
-
session | the instance of the session to be maintained. |
scheduleId | the ID of the predefined schedule. |
connectionId | the ID of the predefined connection settings. |
◆ findConnectionSettings()
Looks for the predefined session connection settings associated with the given id that was specified in Scheduler's configuration file.
- Returns
- NULL if no settings are available for the given id.
◆ findSchedule()
Looks for the predefined session schedule associated with the given id that was specified in Scheduler's configuration file.
- Returns
- NULL if no schedule is available for the given id.
◆ reconnectAttempts() [1/2]
int reconnectAttempts |
( |
| ) |
const |
- Returns
- the number of logon attempts in case of a logon failure.
The default value is 3.
◆ reconnectAttempts() [2/2]
Sets the number of logon attempts in case of a logon failure.
◆ reconnectInterval() [1/2]
int reconnectInterval |
( |
| ) |
const |
- Returns
- the time interval between the logon attempts in case of a logon failure (in seconds).
The default value is 180 seconds.
◆ reconnectInterval() [2/2]
Sets the time interval between the logon attempts in case of a logon failure (in seconds).
◆ remove()
Removes the session from the automatic connection management services.
◆ serviceThreadAffinity() [1/2]
- Returns
- the CPU affinity for the Scheduler service thread.
◆ serviceThreadAffinity() [2/2]
Sets the CPU affinity for the Scheduler service thread.
◆ utcTimeUsage() [1/2]
bool utcTimeUsage |
( |
| ) |
const |
- Returns
- true if the UTC is used, otherwise - false.
The default value is false.
◆ utcTimeUsage() [2/2]
◆ TimeResolutionMs
const size_t TimeResolutionMs = 10 |
|
static |