|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.mina.core.service.AbstractIoService
org.apache.mina.core.service.AbstractIoAcceptor
org.apache.mina.core.polling.AbstractPollingIoAcceptor<AprSession,java.lang.Long>
org.apache.mina.transport.socket.apr.AprSocketAcceptor
public final class AprSocketAcceptor
IoAcceptor for APR based socket transport (TCP/IP).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.mina.core.service.AbstractIoAcceptor |
|---|
AbstractIoAcceptor.AcceptorOperationFuture |
| Nested classes/interfaces inherited from class org.apache.mina.core.service.AbstractIoService |
|---|
AbstractIoService.ServiceOperationFuture |
| Field Summary |
|---|
| Fields inherited from class org.apache.mina.core.polling.AbstractPollingIoAcceptor |
|---|
backlog, reuseAddress |
| Fields inherited from class org.apache.mina.core.service.AbstractIoAcceptor |
|---|
bindLock |
| Fields inherited from class org.apache.mina.core.service.AbstractIoService |
|---|
disposalLock |
| Constructor Summary | |
|---|---|
AprSocketAcceptor()
Constructor for AprSocketAcceptor using default parameters (multiple thread model). |
|
AprSocketAcceptor(java.util.concurrent.Executor executor,
IoProcessor<AprSession> processor)
Constructor for AprSocketAcceptor with a given Executor for handling
connection events and a given AprIoProcessor for handling I/O events, useful for
sharing the same processor and executor over multiple IoService of the same type. |
|
AprSocketAcceptor(int processorCount)
Constructor for AprSocketAcceptor using default parameters, and
given number of AprIoProcessor for multithreading I/O operations. |
|
AprSocketAcceptor(IoProcessor<AprSession> processor)
Constructor for AprSocketAcceptor with default configuration but a
specific AprIoProcessor, useful for sharing the same processor over multiple
IoService of the same type. |
|
| Method Summary | |
|---|---|
protected AprSession |
accept(IoProcessor<AprSession> processor,
java.lang.Long handle)
|
protected void |
close(java.lang.Long handle)
|
protected void |
destroy()
|
java.net.InetSocketAddress |
getDefaultLocalAddress()
|
java.net.InetSocketAddress |
getLocalAddress()
|
SocketSessionConfig |
getSessionConfig()
|
TransportMetadata |
getTransportMetadata()
|
protected void |
init()
|
protected java.net.SocketAddress |
localAddress(java.lang.Long handle)
|
protected java.lang.Long |
open(java.net.SocketAddress localAddress)
|
protected int |
select()
|
protected java.util.Iterator<java.lang.Long> |
selectedHandles()
|
void |
setDefaultLocalAddress(java.net.InetSocketAddress localAddress)
|
protected void |
wakeup()
|
| Methods inherited from class org.apache.mina.core.polling.AbstractPollingIoAcceptor |
|---|
bindInternal, dispose0, getBacklog, isReuseAddress, newSession, setBacklog, setReuseAddress, unbind0 |
| Methods inherited from class org.apache.mina.core.service.AbstractIoAcceptor |
|---|
bind, bind, bind, bind, getDefaultLocalAddresses, getLocalAddresses, isCloseOnDeactivation, setCloseOnDeactivation, setDefaultLocalAddress, setDefaultLocalAddresses, setDefaultLocalAddresses, setDefaultLocalAddresses, toString, unbind, unbind, unbind, unbind |
| Methods inherited from class org.apache.mina.core.service.AbstractIoService |
|---|
addListener, broadcast, dispose, dispose, executeWorker, executeWorker, finishSessionInitialization0, getActivationTime, getFilterChain, getFilterChainBuilder, getHandler, getListeners, getManagedSessionCount, getManagedSessions, getScheduledWriteBytes, getScheduledWriteMessages, getSessionDataStructureFactory, getStatistics, initSession, isActive, isDisposed, isDisposing, removeListener, setFilterChainBuilder, setHandler, setSessionDataStructureFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.mina.transport.socket.SocketAcceptor |
|---|
getBacklog, isReuseAddress, setBacklog, setReuseAddress |
| Methods inherited from interface org.apache.mina.core.service.IoAcceptor |
|---|
bind, bind, bind, bind, getDefaultLocalAddresses, getLocalAddresses, isCloseOnDeactivation, newSession, setCloseOnDeactivation, setDefaultLocalAddress, setDefaultLocalAddresses, setDefaultLocalAddresses, setDefaultLocalAddresses, unbind, unbind, unbind, unbind |
| Methods inherited from interface org.apache.mina.core.service.IoService |
|---|
addListener, broadcast, dispose, dispose, getActivationTime, getFilterChain, getFilterChainBuilder, getHandler, getManagedSessionCount, getManagedSessions, getScheduledWriteBytes, getScheduledWriteMessages, getSessionDataStructureFactory, getStatistics, isActive, isDisposed, isDisposing, removeListener, setFilterChainBuilder, setHandler, setSessionDataStructureFactory |
| Constructor Detail |
|---|
public AprSocketAcceptor()
AprSocketAcceptor using default parameters (multiple thread model).
public AprSocketAcceptor(int processorCount)
AprSocketAcceptor using default parameters, and
given number of AprIoProcessor for multithreading I/O operations.
processorCount - the number of processor to create and place in a
SimpleIoProcessorPoolpublic AprSocketAcceptor(IoProcessor<AprSession> processor)
AprSocketAcceptor with default configuration but a
specific AprIoProcessor, useful for sharing the same processor over multiple
IoService of the same type.
processor - the processor to use for managing I/O events
public AprSocketAcceptor(java.util.concurrent.Executor executor,
IoProcessor<AprSession> processor)
AprSocketAcceptor with a given Executor for handling
connection events and a given AprIoProcessor for handling I/O events, useful for
sharing the same processor and executor over multiple IoService of the same type.
executor - the executor for connectionprocessor - the processor for I/O operations| Method Detail |
|---|
protected AprSession accept(IoProcessor<AprSession> processor,
java.lang.Long handle)
throws java.lang.Exception
accept in class AbstractPollingIoAcceptor<AprSession,java.lang.Long>java.lang.Exception
protected java.lang.Long open(java.net.SocketAddress localAddress)
throws java.lang.Exception
open in class AbstractPollingIoAcceptor<AprSession,java.lang.Long>java.lang.Exception
protected void init()
throws java.lang.Exception
init in class AbstractPollingIoAcceptor<AprSession,java.lang.Long>java.lang.Exception
protected void destroy()
throws java.lang.Exception
destroy in class AbstractPollingIoAcceptor<AprSession,java.lang.Long>java.lang.Exception
protected java.net.SocketAddress localAddress(java.lang.Long handle)
throws java.lang.Exception
localAddress in class AbstractPollingIoAcceptor<AprSession,java.lang.Long>java.lang.Exception
protected int select()
throws java.lang.Exception
select in class AbstractPollingIoAcceptor<AprSession,java.lang.Long>java.lang.Exceptionprotected java.util.Iterator<java.lang.Long> selectedHandles()
selectedHandles in class AbstractPollingIoAcceptor<AprSession,java.lang.Long>
protected void close(java.lang.Long handle)
throws java.lang.Exception
close in class AbstractPollingIoAcceptor<AprSession,java.lang.Long>java.lang.Exceptionprotected void wakeup()
wakeup in class AbstractPollingIoAcceptor<AprSession,java.lang.Long>public java.net.InetSocketAddress getLocalAddress()
getLocalAddress in interface IoAcceptorgetLocalAddress in interface SocketAcceptorgetLocalAddress in class AbstractIoAcceptorpublic java.net.InetSocketAddress getDefaultLocalAddress()
getDefaultLocalAddress in interface IoAcceptorgetDefaultLocalAddress in interface SocketAcceptorgetDefaultLocalAddress in class AbstractIoAcceptorpublic void setDefaultLocalAddress(java.net.InetSocketAddress localAddress)
setDefaultLocalAddress in interface SocketAcceptorpublic TransportMetadata getTransportMetadata()
getTransportMetadata in interface IoServicepublic SocketSessionConfig getSessionConfig()
getSessionConfig in interface IoServicegetSessionConfig in interface SocketAcceptorgetSessionConfig in class AbstractIoService
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||