Package org.teiid.net.socket

Examples of org.teiid.net.socket.SocketServerConnection.cleanUp()


    Properties p = new Properties();
    SocketServerConnection conn = helpEstablishConnection(false, config, p);
    SocketListenerStats stats = listener.getStats();
    assertEquals(2, stats.objectsRead); // handshake response, logon,
    assertEquals(1, stats.sockets);
    conn.cleanUp();
    assertTrue(conn.isOpen(1000));
    stats = listener.getStats();
    assertEquals(5, stats.objectsRead); // ping (pool test), assert identity, ping (isOpen)
    assertEquals(1, stats.sockets);
    conn.close();
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.