Package org.eclipse.jetty.server
Class NetworkTrafficServerConnector
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.server.AbstractConnector
org.eclipse.jetty.server.AbstractNetworkConnector
org.eclipse.jetty.server.ServerConnector
org.eclipse.jetty.server.NetworkTrafficServerConnector
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Connector
,NetworkConnector
,Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,Graceful
,LifeCycle
- Direct Known Subclasses:
NetworkTrafficSelectChannelConnector
A specialized version of ServerConnector
that supports NetworkTrafficListener
s.
NetworkTrafficListener
s can be added and removed dynamically before and after this connector has
been started without causing ConcurrentModificationException
s.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.server.ServerConnector
ServerConnector.ServerConnectorManager
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.Listener
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Graceful
Graceful.Shutdown
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
FieldsFields inherited from class org.eclipse.jetty.server.AbstractConnector
LOG
-
Constructor Summary
ConstructorsConstructorDescriptionNetworkTrafficServerConnector
(Server server) NetworkTrafficServerConnector
(Server server, Executor executor, Scheduler scheduler, ByteBufferPool pool, int acceptors, int selectors, ConnectionFactory... factories) NetworkTrafficServerConnector
(Server server, ConnectionFactory connectionFactory) NetworkTrafficServerConnector
(Server server, ConnectionFactory connectionFactory, SslContextFactory sslContextFactory) NetworkTrafficServerConnector
(Server server, SslContextFactory sslContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected ChannelEndPoint
newEndPoint
(SocketChannel channel, ManagedSelector selectSet, SelectionKey key) void
Methods inherited from class org.eclipse.jetty.server.ServerConnector
accept, close, configure, doStart, doStop, getAcceptedReceiveBufferSize, getAcceptedSendBufferSize, getAcceptedTcpNoDelay, getAcceptQueueSize, getLocalPort, getReuseAddress, getSelectorManager, getSoLingerTime, getTransport, isInheritChannel, isOpen, newSelectorManager, open, open, openAcceptChannel, setAcceptedReceiveBufferSize, setAcceptedSendBufferSize, setAcceptedTcpNoDelay, setAccepting, setAcceptQueueSize, setInheritChannel, setReuseAddress, setSoLingerTime
Methods inherited from class org.eclipse.jetty.server.AbstractNetworkConnector
getHost, getPort, handleAcceptFailure, setHost, setPort, shutdown, toString
Methods inherited from class org.eclipse.jetty.server.AbstractConnector
addConnectionFactory, addFirstConnectionFactory, addIfAbsentConnectionFactory, clearConnectionFactories, getAcceptorPriorityDelta, getAcceptors, getByteBufferPool, getConnectedEndPoints, getConnectionFactories, getConnectionFactory, getConnectionFactory, getDefaultConnectionFactory, getDefaultProtocol, getExecutor, getHttpChannelListeners, getIdleTimeout, getName, getProtocols, getScheduler, getServer, interruptAcceptors, isAccepting, isShutdown, join, join, onEndPointClosed, onEndPointOpened, removeConnectionFactory, setAcceptorPriorityDelta, setConnectionFactories, setDefaultProtocol, setIdleTimeout, setName
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.server.Connector
getByteBufferPool, getConnectedEndPoints, getConnectionFactories, getConnectionFactory, getConnectionFactory, getDefaultConnectionFactory, getExecutor, getIdleTimeout, getName, getProtocols, getScheduler, getServer
Methods inherited from interface org.eclipse.jetty.util.component.Container
addBean, addBean, addEventListener, getBean, getBeans, getBeans, getContainedBeans, isManaged, manage, removeBean, removeEventListener, unmanage
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
Methods inherited from interface org.eclipse.jetty.util.component.Graceful
isShutdown
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
Field Details
-
listeners
-
-
Constructor Details
-
NetworkTrafficServerConnector
-
NetworkTrafficServerConnector
public NetworkTrafficServerConnector(Server server, ConnectionFactory connectionFactory, SslContextFactory sslContextFactory) -
NetworkTrafficServerConnector
-
NetworkTrafficServerConnector
public NetworkTrafficServerConnector(Server server, Executor executor, Scheduler scheduler, ByteBufferPool pool, int acceptors, int selectors, ConnectionFactory... factories) -
NetworkTrafficServerConnector
-
-
Method Details
-
addNetworkTrafficListener
- Parameters:
listener
- the listener to add
-
removeNetworkTrafficListener
- Parameters:
listener
- the listener to remove
-
newEndPoint
protected ChannelEndPoint newEndPoint(SocketChannel channel, ManagedSelector selectSet, SelectionKey key) - Overrides:
newEndPoint
in classServerConnector
-