#include <OnixS/CME/iLink3/scheduling/SessionScheduler.h>
Definition at line 92 of file SessionScheduler.h.
Performs the graceful shutdown of scheduling sessions.
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. |
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. |
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.
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.
Sets the number of logon attempts in case of a logon failure.
int reconnectAttempts |
( |
| ) |
const |
- Returns
- the number of logon attempts in case of a logon failure.
The default value is 3
.
Sets the time interval between the logon attempts in case of a logon failure (in seconds).
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.
Removes the session from the automatic connection management services.
Sets the CPU affinity for the Scheduler service thread.
- Returns
- the CPU affinity for the Scheduler service thread.
bool utcTimeUsage |
( |
| ) |
const |
- Returns
true
if the UTC is used, otherwise - false
.
The default value is false
.
const size_t TimeResolutionMs = 10 |
|
static |
The documentation for this class was generated from the following file: