Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from Senthil Nathan (IBM) to Everyone: 2:10 PM
- namespace com.ibm.vanta.test ;
- composite HelloWorld {
- graph
- // Beacon is a test data generator.
- /*
- Comment line 1.
- Comment line 2.
- */
- (stream<rstring message> Greeting) = Beacon() {
- param
- iterations: 5;
- // Whenever you want to customize what value is sent in your tuple attributes, you can output clause.
- output
- Greeting: message = "Hello World";
- }
- () as MySink1 = FileSink(Greeting) {
- param
- file : "/dev/stdout" ;
- flush: 1u; // Flush to the file on every incoming tuple. Never do this in production.
- // Suffixes: u=unsigned, w=word 16 bit, b=byte 8 bit, l=long 64 bit, f=32 bit float
- // If you don't prefer using a suffix, you can use explicit type casting : (uint32)1
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement