Last modified on 22 May 2014, at 11:32

ProxyScanner

Revision as of 11:32, 22 May 2014 by KNO (Talk | contribs) (ProxyByExportStatusScanner)

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 "calucated" 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 "calucated" 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