Difference between revisions of "ProxyScanner"
(→ProxyExportScanner) |
(→StaticProxyExportScanner) |
||
Line 53: | Line 53: | ||
The StaticProxyExportScanner scans for proxy instances of a defined type (MetaProxy) which "can" be exported (update data from ubik instance to proxy). | The StaticProxyExportScanner scans for proxy instances of a defined type (MetaProxy) which "can" be exported (update data from ubik instance to proxy). | ||
This scanner loads only Proxy instances where the version number of the ubik instance differs from the version number of the last export and verifies as once of its Export properties was modified since the last export. | This scanner loads only Proxy instances where the version number of the ubik instance differs from the version number of the last export and verifies as once of its Export properties was modified since the last export. | ||
− | {{Attention|You can not use this type of scanner if you have to ensure that " | + | {{Attention|You can not use this type of scanner if you have to ensure that "calculated" properties are updated to the export proxies.}} |
''Example'' | ''Example'' | ||
<source lang="csharp"> | <source lang="csharp"> |
Latest revision as of 11:33, 22 May 2014
ProxyScanners are used to find Proxy instances by different criteria. Different scanners provide different search techniques and do have different performances.
Contents
ProxyByExportStatusScanner
The ProxyByExportStatusScanner scans for proxy instances of a defined type (MetaProxy) and a defined Export Status. This scanner delivers all Proxy instances of the defined type having the defined Export Status.
Example
IEnumerable<Proxy> scanResult = scanner.Scan();
foreach (Proxy item in scanResult)
{...}
ProxyByImportStatusScanner
The ProxyByImportStatusScanner scans for proxy instances of a defined type (MetaProxy) and a defined Import Status. This scanner delivers all Proxy instances of the defined type having the defined Import Status.
Example
IEnumerable<Proxy> scanResult = scanner.Scan();
foreach (Proxy item in scanResult)
{...}
ProxyExportScanner
The ProxyExportScanner scans for proxy instances of a defined type (MetaProxy) which "can" be exported (update data from ubik instance to proxy). This scanner loads all Proxy instances and verifies as once of its Export properties was modified since the last export.
As the scanner loads all proxy instances the performance of this scanner depends on the total amount of proxy instances. |
You have to use this type of scanner if you have to ensure that "calculated" properties are updated to the export proxies. |
Example
IEnumerable<Proxy> scanResult = scanner.Scan();
foreach (Proxy item in scanResult)
{...}
ProxyImportScanner
The ProxyImportScanner scans for proxy instances of a defined type (MetaProxy) which "can" be imported (update data from proxy to the ubik instance). This scanner loads all Proxy instances and verifies as once of its Import properties was modified since the last import.
As the scanner loads all proxy instances the performance of this scanner depends on the total amount of proxy instances. |
Example
IEnumerable<Proxy> scanResult = scanner.Scan();
foreach (Proxy item in scanResult)
{...}
StaticProxyExportScanner
The StaticProxyExportScanner scans for proxy instances of a defined type (MetaProxy) which "can" be exported (update data from ubik instance to proxy). This scanner loads only Proxy instances where the version number of the ubik instance differs from the version number of the last export and verifies as once of its Export properties was modified since the last export.
You can not use this type of scanner if you have to ensure that "calculated" properties are updated to the export proxies. |
Example
IEnumerable<Proxy> scanResult = scanner.Scan();
foreach (Proxy item in scanResult)
{...}
StaticProxyImportScanner
The StaticProxyImportScanner scans for proxy instances of a defined type (MetaProxy) which "can" be imported (update data from proxy to the ubik instance). This scanner loads only Proxy instances where their version number differs from the version number of the last import and verifies as once of its Import properties was modified since the last import. Example
IEnumerable<Proxy> scanResult = scanner.Scan();
foreach (Proxy item in scanResult)
{...}