Examples of recordStartTime()


Examples of com.sun.faban.driver.engine.DriverContext.recordStartTime()

     * wrapper is not useful until setSocket(Socket) is being called.
     */
    public TimedSocketWrapper() {
        DriverContext ctx = DriverContext.getContext();
        if (ctx != null)
            ctx.recordStartTime();
    }

    /**
     * Sets the socket this wrapper represents. This is usually done
     * after the no-arg constructor is called.
View Full Code Here

Examples of com.sun.faban.driver.engine.DriverContext.recordStartTime()

    public void connect(SocketAddress endpoint, int timeout)
            throws IOException {
        // Here we intercept the connect and capture the start time.
        DriverContext ctx = DriverContext.getContext();
        if (ctx != null)
            ctx.recordStartTime();
        if (timeout <= 0)
            timeout = 30000; // 30 second connect timeout.
        delegate.connect(endpoint, timeout);
        delegate.setSoTimeout(30000); // 30 second socket read timeout.
    }
View Full Code Here

Examples of com.sun.faban.driver.engine.DriverContext.recordStartTime()

        verifyReceiveBufferSize();

        // Here we intercept the connect and capture the start time.
        DriverContext ctx = DriverContext.getContext();
        if (ctx != null)
            ctx.recordStartTime();
        if (timeout <= 0)
            timeout = 30000; // 30 second connect timeout.
        super.connect(endpoint, timeout);
        setSoTimeout(30000); // 30 second socket read timeout.
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.