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 NetworkTrafficListeners.
NetworkTrafficListeners can be added and removed dynamically before and after this connector has
been started without causing ConcurrentModificationExceptions.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.server.ServerConnector
ServerConnector.ServerConnectorManagerNested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Graceful
Graceful.ShutdownNested 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 TypeMethodDescriptionvoidprotected ChannelEndPointnewEndPoint(SocketChannel channel, ManagedSelector selectSet, SelectionKey key) voidMethods 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, setSoLingerTimeMethods inherited from class org.eclipse.jetty.server.AbstractNetworkConnector
getHost, getPort, handleAcceptFailure, setHost, setPort, shutdown, toStringMethods 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, setNameMethods 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, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.server.Connector
getByteBufferPool, getConnectedEndPoints, getConnectionFactories, getConnectionFactory, getConnectionFactory, getDefaultConnectionFactory, getExecutor, getIdleTimeout, getName, getProtocols, getScheduler, getServerMethods inherited from interface org.eclipse.jetty.util.component.Container
addBean, addBean, addEventListener, getBean, getBeans, getBeans, getContainedBeans, isManaged, manage, removeBean, removeEventListener, unmanageMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpableMethods inherited from interface org.eclipse.jetty.util.component.Graceful
isShutdownMethods 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:
newEndPointin classServerConnector
-