Class UnixDomainServerConnector.UnixDomainSelectorManager
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.io.SelectorManager
org.eclipse.jetty.unixdomain.server.UnixDomainServerConnector.UnixDomainSelectorManager
- All Implemented Interfaces:
Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle
- Enclosing class:
UnixDomainServerConnector
-
Nested Class Summary
Nested classes/interfaces inherited from class SelectorManager
SelectorManager.AcceptListener, SelectorManager.SelectorManagerListenerNested classes/interfaces inherited from class AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface LifeCycle
LifeCycle.Listener -
Field Summary
Fields inherited from class SelectorManager
DEFAULT_CONNECT_TIMEOUT -
Constructor Summary
ConstructorsConstructorDescriptionUnixDomainSelectorManager(Executor executor, Scheduler scheduler, int selectors) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccepted(SelectableChannel channel) Callback method when a channel is accepted from theServerSocketChannelpassed toSelectorManager.acceptor(SelectableChannel).protected voidendPointClosed(EndPoint endpoint) Callback method invoked when an endpoint is closed.protected voidendPointOpened(EndPoint endpoint) Callback method invoked when an endpoint is opened.newConnection(SelectableChannel channel, EndPoint endpoint, Object attachment) Factory method to createConnection.protected EndPointnewEndPoint(SelectableChannel channel, ManagedSelector selector, SelectionKey selectionKey) Factory method to createEndPoint.Methods inherited from class SelectorManager
accept, accept, acceptor, addEventListener, chooseSelector, connect, connectionClosed, connectionFailed, connectionOpened, connectionSucceeded, doAccept, doFinishConnect, doStart, doStop, execute, getConnectTimeout, getExecutor, getScheduler, getSelectorCount, getTotalKeys, isConnectionPending, newSelector, newSelector, onAccepted, onAcceptFailed, onAccepting, removeEventListener, setConnectTimeout, toStringMethods inherited from class ContainerLifeCycle
addBean, addBean, addManaged, contains, destroy, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeansMethods inherited from class AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Container
getCachedBeans, getEventListenersMethods inherited from interface Dumpable.DumpableContainer
isDumpable
-
Constructor Details
-
UnixDomainSelectorManager
-
-
Method Details
-
accepted
Description copied from class:SelectorManagerCallback method when a channel is accepted from theServerSocketChannelpassed toSelectorManager.acceptor(SelectableChannel). The default impl throws anUnsupportedOperationException, so it must be overridden by subclasses if a server channel is provided.- Overrides:
acceptedin classSelectorManager- Parameters:
channel- the- Throws:
IOException- if unable to accept channel
-
newEndPoint
protected EndPoint newEndPoint(SelectableChannel channel, ManagedSelector selector, SelectionKey selectionKey) Description copied from class:SelectorManagerFactory method to create
EndPoint.This method is invoked as a result of the registration of a channel via
SelectorManager.connect(SelectableChannel, Object)orSelectorManager.accept(SelectableChannel).- Specified by:
newEndPointin classSelectorManager- Parameters:
channel- the channel associated to the endpointselector- the selector the channel is registered toselectionKey- the selection key- Returns:
- a new endpoint
- See Also:
-
newConnection
Description copied from class:SelectorManagerFactory method to create
Connection.- Specified by:
newConnectionin classSelectorManager- Parameters:
channel- the channel associated to the connectionendpoint- the endpointattachment- the attachment- Returns:
- a new connection
-
endPointOpened
Description copied from class:SelectorManagerCallback method invoked when an endpoint is opened.
- Overrides:
endPointOpenedin classSelectorManager- Parameters:
endpoint- the endpoint being opened
-
endPointClosed
Description copied from class:SelectorManagerCallback method invoked when an endpoint is closed.
- Overrides:
endPointClosedin classSelectorManager- Parameters:
endpoint- the endpoint being closed
-