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


Chapter 5 Using the Example Code : ASEventBrowser

ASEventBrowser
Overview
The ASEventBrowser example creates an event browser for a space. When started, the event browser displays all of the current entries in the space and then blocks, waiting for new operations to occur on the space. When a new operation occurs, the event browser displays the information about that event.
ASEventBrowser 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 information on running ASOperations.
The ASEventBrowser example recognizes the following additional command line arguments:
-timeout 0 | -1 | xxx where:
      
0 =n o 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)
Starting ASEventBrowser
The following examples indicate how to invoke ASEventBrowser for each API set.
Java Invocation
java tools.ASEventBrowser -metaspace examplems -member_name evtbrowser
C Invocation
ASEventBrowser -metaspace examplems -member_name evtbrowser
.NET Invocation
ASEventBrowser -metaspace examplems -member_name evtbrowser
Starting ASEventBrowser with Security
The following example shows the command line options that you can use when starting ASEventBrowser to have it join the security domain exdomain:
-member_name evtbrowser -discovery tcp://127.0.0.1:50000 -security_token exdomain_token.txt
These command line options start ASEventBrowser 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 ASEventBrowser
By varying the additional command line arguments of the ASEventBrowser example, you can affect the behavior of the ASEventBrowser example. For example, to cause ASEventBrowser to only display new entries added to the space, start ASEventBrowser with the following additional command line options:
-timescope new

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