public class InstrumentedServerConnector
extends org.eclipse.jetty.server.ServerConnector
org.eclipse.jetty.server.ServerConnector.ServerConnectorManager
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
org.eclipse.jetty.util.component.LifeCycle.Listener
Constructor and Description |
---|
InstrumentedServerConnector(String id,
int port,
org.eclipse.jetty.server.Server server,
com.codahale.metrics.MetricRegistry registry)
Jetty 9 ServerConnector instrumented with Metrics.
|
InstrumentedServerConnector(String id,
int port,
org.eclipse.jetty.server.Server server,
com.codahale.metrics.MetricRegistry registry,
org.eclipse.jetty.server.ConnectionFactory... factories) |
InstrumentedServerConnector(String id,
int port,
org.eclipse.jetty.server.Server server,
org.eclipse.jetty.util.ssl.SslContextFactory sslContextFactory,
com.codahale.metrics.MetricRegistry registry) |
Modifier and Type | Method and Description |
---|---|
void |
accept(int acceptorID) |
void |
close() |
void |
open() |
configure, doStart, doStop, getAcceptQueueSize, getLocalPort, getReuseAddress, getSelectorManager, getSoLingerTime, getTransport, isInheritChannel, isOpen, newEndPoint, newSelectorManager, open, openAcceptChannel, setAccepting, setAcceptQueueSize, setInheritChannel, setReuseAddress, setSoLingerTime
getHost, getPort, handleAcceptFailure, setHost, setPort, shutdown, toString
addConnectionFactory, addFirstConnectionFactory, addIfAbsentConnectionFactory, clearConnectionFactories, getAcceptorPriorityDelta, getAcceptors, getByteBufferPool, getConnectedEndPoints, getConnectionFactories, getConnectionFactory, getConnectionFactory, getDefaultConnectionFactory, getDefaultProtocol, getExecutor, getIdleTimeout, getName, getProtocols, getScheduler, getServer, interruptAcceptors, isAccepting, isShutdown, join, join, onEndPointClosed, onEndPointOpened, removeConnectionFactory, setAcceptorPriorityDelta, setConnectionFactories, setDefaultProtocol, setIdleTimeout, setName
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getByteBufferPool, getConnectedEndPoints, getConnectionFactories, getConnectionFactory, getConnectionFactory, getDefaultConnectionFactory, getExecutor, getIdleTimeout, getName, getProtocols, getScheduler, getServer
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stop
public InstrumentedServerConnector(String id, int port, @Name(value="server") org.eclipse.jetty.server.Server server, com.codahale.metrics.MetricRegistry registry)
id
- connector id, will be used as prefix for metrics.port
- this port will be set with ServerConnector#setPort().server
- Jetty server.public InstrumentedServerConnector(String id, int port, @Name(value="server") org.eclipse.jetty.server.Server server, com.codahale.metrics.MetricRegistry registry, @Name(value="factories") org.eclipse.jetty.server.ConnectionFactory... factories)
public InstrumentedServerConnector(String id, int port, @Name(value="server") org.eclipse.jetty.server.Server server, @Name(value="sslContextFactory") org.eclipse.jetty.util.ssl.SslContextFactory sslContextFactory, com.codahale.metrics.MetricRegistry registry)
public void accept(int acceptorID) throws IOException
accept
in class org.eclipse.jetty.server.ServerConnector
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.eclipse.jetty.server.NetworkConnector
close
in class org.eclipse.jetty.server.ServerConnector
public void open() throws IOException
open
in interface org.eclipse.jetty.server.NetworkConnector
open
in class org.eclipse.jetty.server.ServerConnector
IOException
Copyright © 2008–2018. All rights reserved.