Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 5 Using the Example Code : ASBrowser

ASBrowser
Overview
The ASBrowser example creates a space browser which, by default, retrieves all of the entries in the default space 'myspace,’ displays them in the command window, and then exits.
The ASBrowser example does not create any entries in the space. Therefore you should run ASOperations to create the space and put data into it so you will have something in the space to “browse.” See ASOperations for more specific information on running ASOperations.
The ASBrowser example accepts the following additional command line arguments:
-timeout 0 | -1 | xxx where: 0=no wait (default), -1=wait forever, xxx=timeout in milliseconds
-filter “” | filter_string where: “”=no filter (default)
-distribution_scope all | seeded (default: all)
-timescope snapshot | all | new (default: snapshot)
-browser get | take (default: get)
-prefetch entries_to_prefetch (default: 1000)
Starting ASBrowser
The following examples indicate how to invoke ASBrowser for each of the API sets:
Java Invocation
java tools.ASBrowser -metaspace examplems -member_name browser
C Invocation
ASBrowser -metaspace examplems -member_name browser
.NET Invocation
ASBrowser -metaspace examplems -member_name browser
Starting ASBrowser with Security
The following example shows the command line options that you can use when starting ASBrowser to have it join the security domain exdomain :
-member_name browser -discovery tcp://127.0.0.1:50000 -security_token exdomain_token.txt
These command line options start ASBrowser using the default metaspace named ms and allow it to connect to a security domain controller that has been started using the example security policy file example_policy.txt.
Using ASBrowser
By varying the additional command line arguments of ASBrowser, you can affect the behavior of the ASBrowser example. For example, to cause ASBrowser to block and wait endlessly for any new entries added to the space, start ASBrowser with the following additional command line options:
-timescope new -timeout -1

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved