Package DE_EPAGES::WebInterface::API::DynamicPools
functions to configure pools
@EXPORT_OK |
Functions
- DiffRequestRouterStatistic
- ExportPoolConfig
- GetRequestRouterStatistic
- ImportPoolConfig
- ImportPoolXML
DiffRequestRouterStatistic
Compares two request router statistics <func GetRequestRouterStatistic>. The last diff result is used to calculate the change of Hits and Misses.
Syntax |
$hPools = DiffRequestRouterStatistic($hNewPools, $hOldPools, $LastDiff); |
Input |
|
Return |
|
ExportPoolConfig
Exports pool configuration to xml-file. Prepared to import with <func ImportPoolXML>
Syntax |
$FileName = ExportPoolConfig($PoolConfig, $FileName, $Date); |
Example |
$FileName = ExportPoolConfig($PoolConfig); $FileName = ExportPoolConfig($PoolConfig, undef, $Date); ExportPoolConfig($PoolConfig, $FileName); |
Input |
|
Return |
|
GetRequestRouterStatistic
Read the pool statistic from monitor port of the request router.
Syntax |
$hPools = GetRequestRouterStatistic(); |
Return |
|
ImportPoolConfig
Read pool configuration from xml-file, if file not exists, this function exports the config from PoolDB (current database handle).
Syntax |
$PoolConfig = ImportPoolConfig($FileName, $Date, $DoExportIfExists); |
Example |
$PoolConfig = ImportPoolConfig($FileName, undef, 1); $PoolConfig = ImportPoolConfig(undef, $Date, 1); $PoolConfig = ImportPoolConfig($FileName); $PoolConfig = ImportPoolConfig(); |
Input |
|
Return |
|
ImportPoolXML
Imports pool configuration from xml-file to PoolDB (current database handle).
Syntax |
ImportPoolXML($FileName); |
Example |
ImportPoolXML(ExportPoolConfig($hChange)) |
Input |
|