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.Connector
build(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.String
getPath()
protected String
httpConnections()
Get name of the timer that tracks incoming HTTP connectionsvoid
setPath(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:ConnectorFactory
Create a new connector.- Specified by:
build
in interfaceConnectorFactory
- Overrides:
build
in classHttpConnectorFactory
- Parameters:
server
- the application'sServer
instancemetrics
- the application's metricsname
- the application's namethreadPool
- the application's thread pool- Returns:
- a
Connector
-
httpConnections
protected String httpConnections()
Description copied from class:HttpConnectorFactory
Get name of the timer that tracks incoming HTTP connections- Overrides:
httpConnections
in classHttpConnectorFactory
-
-