Package com.sun.faban.driver.engine

Examples of com.sun.faban.driver.engine.DriverContext


    /**
     * Creates a blank TimedSocketWrapper and starts the timer. The
     * wrapper is not useful until setSocket(Socket) is being called.
     */
    public TimedSocketWrapper() {
        DriverContext ctx = DriverContext.getContext();
        if (ctx != null)
            ctx.recordStartTime();
    }
View Full Code Here


     */
    @Override
    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

  public void connect(SocketAddress endpoint, int timeout) throws IOException {

        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

Related Classes of com.sun.faban.driver.engine.DriverContext

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.