Package org.openscada.opc.lib.da.browser
Class BaseBrowser
java.lang.Object
org.openscada.opc.lib.da.browser.BaseBrowser
- Direct Known Subclasses:
FlatBrowser,TreeBrowser
A class implementing base browsing
- Author:
- Jens Reimann
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe batch size is the number of entries that will be requested with one call from the server.protected OPCBrowseServerAddressSpace -
Constructor Summary
ConstructorsConstructorDescriptionBaseBrowser(OPCBrowseServerAddressSpace browser) BaseBrowser(OPCBrowseServerAddressSpace browser, int batchSize) -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<String> browse(OPCBROWSETYPE type, String filterCriteria, EnumSet<Access> accessMask, int variantType) Perform the browse operation.getAccessPaths(String itemId) Browse the access paths for one item.intGet the batch sizevoidsetBatchSize(int batchSize) Set the batch size
-
Field Details
-
_browser
-
_batchSize
protected int _batchSizeThe batch size is the number of entries that will be requested with one call from the server. Sometimes too big batch sizes will cause an exception. And smaller batch sizes degrade perfomance. The default is set byEnumString.DEFAULT_BATCH_SIZEand can be overridden by the java propertyopenscada.dcom.enum-batch-size
.
-
-
Constructor Details
-
BaseBrowser
-
BaseBrowser
-
-
Method Details
-
setBatchSize
public void setBatchSize(int batchSize) Set the batch size- Parameters:
batchSize- The new batch size
-
getBatchSize
public int getBatchSize()Get the batch size- Returns:
- the current batch size
-
browse
protected Collection<String> browse(OPCBROWSETYPE type, String filterCriteria, EnumSet<Access> accessMask, int variantType) throws IllegalArgumentException, UnknownHostException, org.jinterop.dcom.common.JIException Perform the browse operation.- Parameters:
type-filterCriteria-accessMask-variantType-- Returns:
- The browse result
- Throws:
IllegalArgumentExceptionUnknownHostExceptionorg.jinterop.dcom.common.JIException
-
getAccessPaths
public Collection<String> getAccessPaths(String itemId) throws IllegalArgumentException, UnknownHostException, org.jinterop.dcom.common.JIException Browse the access paths for one item.- Parameters:
itemId- The item ID to look up the access paths- Returns:
- The collection of the access paths
- Throws:
org.jinterop.dcom.common.JIExceptionUnknownHostExceptionIllegalArgumentException
-