Jump to: navigation, search

Difference between revisions of "ProxyScanner"


(Created page with "ProxyScanners are used to find Proxy instances by different criteria. Different scanners provide different search techniques and do have different performances. ===ProxyByExp...")
 
(StaticProxyExportScanner)
 
(3 intermediate revisions by 2 users not shown)
Line 12: Line 12:
 
{...}
 
{...}
 
</source>
 
</source>
 
  
 
===ProxyByImportStatusScanner===
 
===ProxyByImportStatusScanner===
Line 30: Line 29:
 
This scanner loads all Proxy instances and verifies as once of its Export properties was modified since the last export.
 
This scanner loads all Proxy instances and verifies as once of its Export properties was modified since the last export.
 
{{Attention|As the scanner loads all proxy instances the performance of this scanner depends on the total amount of proxy instances.}}
 
{{Attention|As the scanner loads all proxy instances the performance of this scanner depends on the total amount of proxy instances.}}
{{Attention|You have to use this type of scanner if you have to ensure that "calucated" properties are updated to the export proxies.}}
+
{{Attention|You have to 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">
Line 54: 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 "calucated" properties are updated to the export proxies.}}
+
{{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">
Line 73: Line 72:
 
{...}
 
{...}
 
</source>
 
</source>
 +
 +
==See also==
 +
* [[ProxyManager]]
 +
 +
[[Category:Interfacing]]

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.

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

ProxyByExportStatusScanner scanner = new ProxyByExportStatusScanner(metaProxy, ProxyExportStatus.QueuedForExport);
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

ProxyByImportStatusScanner scanner = new ProxyByImportStatusScanner(metaProxy, ProxyImportStatus.QueuedForImport);
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.

IC Attention.pngAs the scanner loads all proxy instances the performance of this scanner depends on the total amount of proxy instances.
IC Attention.pngYou have to use this type of scanner if you have to ensure that "calculated" properties are updated to the export proxies.

Example

ProxyExportScanner scanner = new ProxyExportScanner((MetaProxy)metaProxy);
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.

IC Attention.pngAs the scanner loads all proxy instances the performance of this scanner depends on the total amount of proxy instances.

Example

ProxyImportScanner scanner = new ProxyImportScanner((MetaProxy)metaProxy);
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.

IC Attention.pngYou can not use this type of scanner if you have to ensure that "calculated" properties are updated to the export proxies.

Example

StaticProxyExportScannerscanner = new StaticProxyExportScanner((MetaProxy)metaProxy);
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

StaticProxyImportScanner = new StaticProxyImportScanner((MetaProxy)metaProxy);
IEnumerable<Proxy> scanResult = scanner.Scan();
foreach (Proxy item in scanResult)
{...}

See also