Search in sources :

Example 1 with RMIServerSocketFactoryImpl

use of org.apache.cassandra.utils.RMIServerSocketFactoryImpl in project cassandra by apache.

the class RMIServerSocketFactoryImplTest method testReusableAddrSocket.

@Test
public void testReusableAddrSocket() throws IOException {
    RMIServerSocketFactory serverFactory = new RMIServerSocketFactoryImpl(null);
    ServerSocket socket = serverFactory.createServerSocket(7199);
    assertTrue(socket.getReuseAddress());
}
Also used : RMIServerSocketFactoryImpl(org.apache.cassandra.utils.RMIServerSocketFactoryImpl) RMIServerSocketFactory(java.rmi.server.RMIServerSocketFactory) ServerSocket(java.net.ServerSocket) Test(org.junit.Test)

Aggregations

ServerSocket (java.net.ServerSocket)1 RMIServerSocketFactory (java.rmi.server.RMIServerSocketFactory)1 RMIServerSocketFactoryImpl (org.apache.cassandra.utils.RMIServerSocketFactoryImpl)1 Test (org.junit.Test)1