Package streamer.debug

Examples of streamer.debug.FakeSource


    /**
     * Example.
     */
    public static void main(String args[]) {
        Element source = new FakeSource("source") {
            {
                verbose = true;
                numBuffers = 10;
                incommingBufLength = 3;
                delay = 100;
View Full Code Here


     * Example.
     */
    public static void main(String args[]) {
        System.setProperty("streamer.Element.debug", "true");

        Element source = new FakeSource("source") {
            {
                incommingBufLength = 0;
                delay = 1000;
                numBuffers = 3;
            }
View Full Code Here

    /**
     * Example.
     */
    public static void main(String args[]) {
        Element source = new FakeSource("source") {
            {
                verbose = true;
                numBuffers = 3;
                incommingBufLength = 5;
                delay = 100;
            }
        };

        OutputStreamSink sink = new OutputStreamSink("sink") {
            {
                verbose = true;
            }
        };

        Link link = new SyncLink();

        source.setLink(STDOUT, link, Direction.OUT);
        sink.setLink(STDIN, link, Direction.IN);

        sink.setOutputStream(new ByteArrayOutputStream());

        link.sendEvent(Event.STREAM_START, Direction.IN);
View Full Code Here

     */
    public static void main(String args[]) {
        // System.setProperty("streamer.Link.debug", "true");
        System.setProperty("streamer.Element.debug", "true");

        Element source1 = new FakeSource("source1") {
            {
                delay = 100;
                numBuffers = 10;
                incommingBufLength = 10;
            }
        };

        Element source2 = new FakeSource("source2") {
            {
                delay = 100;
                numBuffers = 10;
                incommingBufLength = 10;
            }
View Full Code Here

    /**
     * Example.
     */
    public static void main(String args[]) {
        Element source = new FakeSource("source") {
            {
                this.verbose = true;
                this.numBuffers = 3;
                this.incommingBufLength = 5;
                this.delay = 100;
            }
        };

        OutputStreamSink sink = new OutputStreamSink("sink") {
            {
                verbose = true;
            }
        };

        Link link = new SyncLink();

        source.setLink(STDOUT, link, Direction.OUT);
        sink.setLink(STDIN, link, Direction.IN);

        sink.setOutputStream(new ByteArrayOutputStream());

        link.sendEvent(Event.STREAM_START, Direction.IN);
View Full Code Here

     */
    public static void main(String args[]) {
        // System.setProperty("streamer.Link.debug", "true");
        System.setProperty("streamer.Element.debug", "true");

        Element source1 = new FakeSource("source1") {
            {
                this.delay = 100;
                this.numBuffers = 10;
                this.incommingBufLength = 10;
            }
        };

        Element source2 = new FakeSource("source2") {
            {
                this.delay = 100;
                this.numBuffers = 10;
                this.incommingBufLength = 10;
            }
View Full Code Here

    /**
     * Example.
     */
    public static void main(String args[]) {
        Element source = new FakeSource("source") {
            {
                this.verbose = true;
                this.numBuffers = 10;
                this.incommingBufLength = 3;
                this.delay = 100;
View Full Code Here

     * Example.
     */
    public static void main(String args[]) {
        System.setProperty("streamer.Element.debug", "true");

        Element source = new FakeSource("source") {
            {
                this.incommingBufLength = 0;
                this.delay = 1000;
                this.numBuffers = 3;
            }
View Full Code Here

TOP

Related Classes of streamer.debug.FakeSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.