public abstract class AbstractBindTest extends Object
IoAcceptor
resource leakage by repeating bind and unbind.Modifier and Type | Field and Description |
---|---|
protected org.apache.mina.core.service.IoAcceptor |
acceptor |
protected int |
port |
Constructor and Description |
---|
AbstractBindTest(org.apache.mina.core.service.IoAcceptor acceptor) |
Modifier and Type | Method and Description |
---|---|
protected void |
bind(boolean reuseAddress) |
protected abstract SocketAddress |
createSocketAddress(int port) |
protected abstract int |
getPort(SocketAddress address) |
protected abstract org.apache.mina.core.service.IoConnector |
newConnector() |
void |
tearDown() |
void |
testAnonymousBind() |
void |
testDuplicateBind() |
void |
testDuplicateUnbind() |
void |
testManyTimes() |
void |
testRegressively() |
void |
testUnbindDisconnectsClients() |
void |
testUnbindResume() |
protected final org.apache.mina.core.service.IoAcceptor acceptor
protected int port
public AbstractBindTest(org.apache.mina.core.service.IoAcceptor acceptor)
protected abstract SocketAddress createSocketAddress(int port)
protected abstract int getPort(SocketAddress address)
protected abstract org.apache.mina.core.service.IoConnector newConnector()
protected void bind(boolean reuseAddress) throws IOException
IOException
public void tearDown()
public void testDuplicateBind() throws IOException
IOException
public void testDuplicateUnbind() throws IOException
IOException
public void testManyTimes() throws IOException, InterruptedException
IOException
InterruptedException
public void testUnbindDisconnectsClients() throws Exception
Exception
public void testRegressively() throws IOException
IOException
Copyright © 2004–2021 Apache MINA Project. All rights reserved.