Provides access to client side authentication settings.
#include <Workspace/DataExecution/Execution/schedulersettings.h>
◆ SchedulerSettings()
◆ ~SchedulerSettings()
◆ add()
◆ count()
◆ exportScheduler()
bool exportScheduler |
( |
const std::list< AbstractScheduler * > & |
schedulers, |
|
|
const QString & |
filename |
|
) |
| |
|
static |
Export schedulers to a file.
- Parameters
-
schedulers | a list of scheduler instance to export |
filename | the filename where the exported settings go |
- Returns
- true if the successfully exported.
- See also
- importScheduler
◆ get()
Returns a copy of scheduler that could be used to change settings
◆ getLocalSchedulerFeatures()
Returns the features associated with the local scheduler.
◆ getMaxConcurrencyCount()
int getMaxConcurrencyCount |
( |
| ) |
const |
Returns the max concurrent workspaces of the local scheduler.
◆ getSchedulerSettingsFilePath()
QString getSchedulerSettingsFilePath |
( |
| ) |
const |
Returns the file for user external scheduler settings.
◆ getSchedulerSettingsFilePathAllUser()
QString getSchedulerSettingsFilePathAllUser |
( |
| ) |
const |
Returns the file for system external scheduler settings.
◆ getSystemLocalSchedulerFeatures()
Returns the features associated with the system local scheduler.
◆ importScheduler()
int importScheduler |
( |
std::list< std::unique_ptr< AbstractScheduler > > & |
schedulers, |
|
|
const QString & |
filename |
|
) |
| |
|
static |
Import schedulers from a file.
- Parameters
-
schedulers | a list of imported scheduler instances |
filename | the filename where the settings imported from. |
- Returns
- -1 if failed, or the total entries attempted from the file. When encounter invalid entries, the number may be bigger than the schedulers.
- See also
- exportScheduler
◆ isWritable() [1/2]
Indicates if the settings area associated with the scheduler is writable or not.
- Returns
- Returns true if the settings area associated with the scheduler is writable.
◆ isWritable() [2/2]
Indicates if the settings area for the provided scope is writable or not.
- Returns
- Returns true if the settings area for the provided scope is writable.
◆ load()
Loads scheduler settings.
◆ loadFrom()
sync with a Schedulers object by getting schedulers from it.
◆ reloadExternalFile()
bool reloadExternalFile |
( |
bool |
userScope | ) |
|
Reloads scheduler settings from external file, discard all schedulers of external file scope.
◆ save()
Saves the scheduler settings.
- Returns
- Returns true if the settings where saved correctly.
◆ saveTo()
sync with a Schedulers object by setting schedulers and add to it.
◆ set()
Change the Scheduler at index, if index is out-range of [0, count()), it will be ignored. not the scheduler is only used to get the settings, and no reference will be kept after this call.
◆ setLocalSchedulerFeatures()
Sets the features associated with the local scheduler.
◆ setMaxConcurrencyCount()
void setMaxConcurrencyCount |
( |
int |
maxConcurrencyCount | ) |
|
Sets the max concurrent workspaces of the local scheduler.
◆ setSchedulerSettingsFilePath()
void setSchedulerSettingsFilePath |
( |
QString |
path | ) |
|
Sets the filepath for user external scheduler settings.
◆ setSchedulerSettingsFilePathAllUser()
void setSchedulerSettingsFilePathAllUser |
( |
QString |
path | ) |
|
Sets the filepath for system external scheduler settings.
◆ setSystemLocalSchedulerFeatures()
Sets the features associated with the system local scheduler.