|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AggregateLifeCycle
org.eclipse.jetty.server.AbstractConnector
org.eclipse.jetty.server.nio.AbstractNIOConnector
org.eclipse.jetty.server.nio.SelectChannelConnector
org.eclipse.jetty.server.nio.NetworkTrafficSelectChannelConnector
public class NetworkTrafficSelectChannelConnector
A specialized version of SelectChannelConnector
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.util.component.AbstractLifeCycle |
---|
AbstractLifeCycle.AbstractLifeCycleListener |
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle |
---|
LifeCycle.Listener |
Field Summary |
---|
Fields inherited from class org.eclipse.jetty.server.nio.SelectChannelConnector |
---|
_acceptChannel |
Fields inherited from class org.eclipse.jetty.server.AbstractConnector |
---|
_buffers, _lowResourceMaxIdleTime, _maxIdleTime, _soLingerTime |
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
---|
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING |
Constructor Summary | |
---|---|
NetworkTrafficSelectChannelConnector()
|
Method Summary | |
---|---|
void |
addNetworkTrafficListener(NetworkTrafficListener listener)
|
protected void |
endPointClosed(SelectChannelEndPoint endpoint)
|
protected SelectChannelEndPoint |
newEndPoint(java.nio.channels.SocketChannel channel,
SelectorManager.SelectSet selectSet,
java.nio.channels.SelectionKey key)
|
void |
removeNetworkTrafficListener(NetworkTrafficListener listener)
|
Methods inherited from class org.eclipse.jetty.server.nio.SelectChannelConnector |
---|
accept, close, customize, doStart, getConnection, getLocalPort, getLowResourcesConnections, getLowResourcesMaxIdleTime, getSelectorManager, newConnection, open, persist, setLowResourcesConnections, setLowResourcesMaxIdleTime, setMaxIdleTime, setThreadPool |
Methods inherited from class org.eclipse.jetty.server.nio.AbstractNIOConnector |
---|
getUseDirectBuffers, setUseDirectBuffers |
Methods inherited from class org.eclipse.jetty.util.component.AggregateLifeCycle |
---|
addBean, addBean, contains, destroy, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, unmanage |
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
---|
addLifeCycleListener, getState, getState, 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.util.component.LifeCycle |
---|
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable |
---|
dump, dump |
Constructor Detail |
---|
public NetworkTrafficSelectChannelConnector()
Method Detail |
---|
public void addNetworkTrafficListener(NetworkTrafficListener listener)
listener
- the listener to addpublic void removeNetworkTrafficListener(NetworkTrafficListener listener)
listener
- the listener to removeprotected SelectChannelEndPoint newEndPoint(java.nio.channels.SocketChannel channel, SelectorManager.SelectSet selectSet, java.nio.channels.SelectionKey key) throws java.io.IOException
newEndPoint
in class SelectChannelConnector
java.io.IOException
protected void endPointClosed(SelectChannelEndPoint endpoint)
endPointClosed
in class SelectChannelConnector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |