Package io.dropwizard.unixsocket
Class UnixSocketConnectorFactory
- java.lang.Object
-
- io.dropwizard.jetty.HttpConnectorFactory
-
- io.dropwizard.unixsocket.UnixSocketConnectorFactory
-
- All Implemented Interfaces:
Discoverable,ConnectorFactory
public class UnixSocketConnectorFactory extends HttpConnectorFactory
Builds Unix Domain Socket connectors. Configuration Parameters:Name Default Description path/tmp/dropwizard.sock The path to the unix domain socket file.
-
-
Constructor Summary
Constructors Constructor Description UnixSocketConnectorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jetty.server.Connectorbuild(org.eclipse.jetty.server.Server server, com.codahale.metrics.MetricRegistry metrics, String name, @Nullable org.eclipse.jetty.util.thread.ThreadPool threadPool)Create a new connector.StringgetPath()protected StringhttpConnections()Get name of the timer that tracks incoming HTTP connectionsvoidsetPath(String path)-
Methods inherited from class io.dropwizard.jetty.HttpConnectorFactory
admin, application, buildBufferPool, buildConnector, buildHttpConfiguration, buildHttpConnectionFactory, getAcceptorThreads, getAcceptQueueSize, getBindHost, getBufferPoolIncrement, getHeaderCacheSize, getHttpCompliance, getIdleTimeout, getInputBufferSize, getMaxBufferPoolSize, getMaxRequestHeaderSize, getMaxResponseHeaderSize, getMinBufferPoolSize, getMinRequestDataPerSecond, getMinResponseDataPerSecond, getOutputBufferSize, getPort, getRequestCookieCompliance, getResponseCookieCompliance, getSelectorThreads, getUriCompliance, isInheritChannel, isReuseAddress, isUseDateHeader, isUseForwardedHeaders, isUseProxyProtocol, isUseServerHeader, setAcceptorThreads, setAcceptQueueSize, setBindHost, setBufferPoolIncrement, setHeaderCacheSize, setHttpCompliance, setIdleTimeout, setInheritChannel, setInputBufferSize, setMaxBufferPoolSize, setMaxRequestHeaderSize, setMaxResponseHeaderSize, setMinBufferPoolSize, setMinRequestDataPerSecond, setMinResponseDataPerSecond, setOutputBufferSize, setPort, setRequestCookieCompliance, setResponseCookieCompliance, setReuseAddress, setSelectorThreads, setUriCompliance, setUseDateHeader, setUseForwardedHeaders, setUseProxyProtocol, setUseServerHeader
-
-
-
-
Method Detail
-
getPath
public String getPath()
-
setPath
public void setPath(String path)
-
build
public org.eclipse.jetty.server.Connector build(org.eclipse.jetty.server.Server server, com.codahale.metrics.MetricRegistry metrics, String name, @Nullable org.eclipse.jetty.util.thread.ThreadPool threadPool)Description copied from interface:ConnectorFactoryCreate a new connector.- Specified by:
buildin interfaceConnectorFactory- Overrides:
buildin classHttpConnectorFactory- Parameters:
server- the application'sServerinstancemetrics- the application's metricsname- the application's namethreadPool- the application's thread pool- Returns:
- a
Connector
-
httpConnections
protected String httpConnections()
Description copied from class:HttpConnectorFactoryGet name of the timer that tracks incoming HTTP connections- Overrides:
httpConnectionsin classHttpConnectorFactory
-
-