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
A specialized version of ServerConnector
that supports NetworkTrafficListener
s.
A NetworkTrafficListener
can be set and unset dynamically before and after this connector has
been started.
-
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, AbstractLifeCycle.StopException
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, Graceful.ThrowingRunnable
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.NetworkConnector
NetworkConnector.Listener
-
Field Summary
Fields inherited from class org.eclipse.jetty.server.AbstractConnector
LOG
-
Constructor Summary
ConstructorDescriptionNetworkTrafficServerConnector
(Server server) NetworkTrafficServerConnector
(Server server, Executor executor, Scheduler scheduler, ByteBufferPool bufferPool, int acceptors, int selectors, ConnectionFactory... factories) NetworkTrafficServerConnector
(Server server, ConnectionFactory connectionFactory) NetworkTrafficServerConnector
(Server server, ConnectionFactory connectionFactory, SslContextFactory.Server sslContextFactory) NetworkTrafficServerConnector
(Server server, SslContextFactory.Server sslContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionGet the listener.protected SocketChannelEndPoint
newEndPoint
(SocketChannel channel, ManagedSelector selectSet, SelectionKey key) void
Set the listener to set, or null to unset.Methods inherited from class org.eclipse.jetty.server.ServerConnector
accept, close, configure, doStart, doStop, getAcceptedReceiveBufferSize, getAcceptedSendBufferSize, getAcceptedTcpNoDelay, getAcceptQueueSize, getLocalPort, getReuseAddress, getSelectorManager, getTransport, isInheritChannel, isOpen, isReusePort, newSelectorManager, open, open, openAcceptChannel, setAcceptedReceiveBufferSize, setAcceptedSendBufferSize, setAcceptedTcpNoDelay, setAccepting, setAcceptQueueSize, setInheritChannel, setReuseAddress, setReusePort
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, getIdleTimeout, getName, getProtocols, getScheduler, getServer, getShutdownIdleTimeout, interruptAcceptors, isAccepting, isShutdown, join, join, onEndPointClosed, onEndPointOpened, removeConnectionFactory, setAcceptorPriorityDelta, setConnectionFactories, setDefaultProtocol, setIdleTimeout, setName, setShutdownIdleTimeout
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeans
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, 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, getCachedBeans, getContainedBeans, getEventListeners, 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
addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stop
-
Constructor Details
-
NetworkTrafficServerConnector
-
NetworkTrafficServerConnector
public NetworkTrafficServerConnector(Server server, ConnectionFactory connectionFactory, SslContextFactory.Server sslContextFactory) -
NetworkTrafficServerConnector
-
NetworkTrafficServerConnector
public NetworkTrafficServerConnector(Server server, Executor executor, Scheduler scheduler, ByteBufferPool bufferPool, int acceptors, int selectors, ConnectionFactory... factories) -
NetworkTrafficServerConnector
-
-
Method Details
-
setNetworkTrafficListener
Set the listener to set, or null to unset.- Parameters:
listener
- the listener to set, or null to unset
-
getNetworkTrafficListener
Get the listener.- Returns:
- the listener
-
newEndPoint
protected SocketChannelEndPoint newEndPoint(SocketChannel channel, ManagedSelector selectSet, SelectionKey key) - Overrides:
newEndPoint
in classServerConnector
-