Package com.netflix.zuul.netty.server
Class Server
java.lang.Object
com.netflix.zuul.netty.server.Server
NOTE: Shout-out to LittleProxy which was great as a reference.
User: michaels
Date: 11/8/14
Time: 8:39 PM
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.netty.util.AttributeKey<Attrs>
Keys should be a short string usable in metrics.static final AtomicReference<Class<? extends io.netty.channel.Channel>>
Deprecated.static final com.netflix.config.DynamicBooleanProperty
Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionServer
(com.netflix.spectator.api.Registry registry, ServerStatusManager serverStatusManager, Map<NamedSocketAddress, ? extends io.netty.channel.ChannelInitializer<?>> addressesToInitializers, ClientConnectionsShutdown clientConnectionsShutdown, EventLoopGroupMetrics eventLoopGroupMetrics, EventLoopConfig eventLoopConfig) Server
(com.netflix.spectator.api.Registry registry, ServerStatusManager serverStatusManager, Map<NamedSocketAddress, ? extends io.netty.channel.ChannelInitializer<?>> addressesToInitializers, ClientConnectionsShutdown clientConnectionsShutdown, EventLoopGroupMetrics eventLoopGroupMetrics, EventLoopConfig eventLoopConfig, Thread jvmShutdownHook) Server
(Map<Integer, io.netty.channel.ChannelInitializer> portsToChannelInitializers, ServerStatusManager serverStatusManager, ClientConnectionsShutdown clientConnectionsShutdown, EventLoopGroupMetrics eventLoopGroupMetrics) Deprecated.Server
(Map<Integer, io.netty.channel.ChannelInitializer> portsToChannelInitializers, ServerStatusManager serverStatusManager, ClientConnectionsShutdown clientConnectionsShutdown, EventLoopGroupMetrics eventLoopGroupMetrics, EventLoopConfig eventLoopConfig) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
final List<NamedSocketAddress>
void
postEventLoopCreationHook
(io.netty.channel.EventLoopGroup clientToProxyBossPool, io.netty.channel.EventLoopGroup clientToProxyWorkerPool) Override for metrics or informational purposesvoid
start()
void
stop()
void
-
Field Details
-
USE_EPOLL
Deprecated.This field is effectively a noop, as Epoll is enabled automatically if available. This can be disabled by using theFORCE_NIO
property. -
defaultOutboundChannelType
@Deprecated public static final AtomicReference<Class<? extends io.netty.channel.Channel>> defaultOutboundChannelTypeDeprecated.This is a hack to expose the channel type to the origin channel. It is NOT API stable and should not be referenced by non-Zuul code. -
CONN_DIMENSIONS
Keys should be a short string usable in metrics.
-
-
Constructor Details
-
Server
@Deprecated public Server(Map<Integer, io.netty.channel.ChannelInitializer> portsToChannelInitializers, ServerStatusManager serverStatusManager, ClientConnectionsShutdown clientConnectionsShutdown, EventLoopGroupMetrics eventLoopGroupMetrics) Deprecated. -
Server
@Deprecated public Server(Map<Integer, io.netty.channel.ChannelInitializer> portsToChannelInitializers, ServerStatusManager serverStatusManager, ClientConnectionsShutdown clientConnectionsShutdown, EventLoopGroupMetrics eventLoopGroupMetrics, EventLoopConfig eventLoopConfig) Deprecated. -
Server
public Server(com.netflix.spectator.api.Registry registry, ServerStatusManager serverStatusManager, Map<NamedSocketAddress, ? extends io.netty.channel.ChannelInitializer<?>> addressesToInitializers, ClientConnectionsShutdown clientConnectionsShutdown, EventLoopGroupMetrics eventLoopGroupMetrics, EventLoopConfig eventLoopConfig) -
Server
public Server(com.netflix.spectator.api.Registry registry, ServerStatusManager serverStatusManager, Map<NamedSocketAddress, ? extends io.netty.channel.ChannelInitializer<?>> addressesToInitializers, ClientConnectionsShutdown clientConnectionsShutdown, EventLoopGroupMetrics eventLoopGroupMetrics, EventLoopConfig eventLoopConfig, Thread jvmShutdownHook)
-
-
Method Details
-
stop
public void stop() -
start
public void start() -
awaitTermination
- Throws:
InterruptedException
-
getListeningAddresses
-
waitForEachEventLoop
-
postEventLoopCreationHook
public void postEventLoopCreationHook(io.netty.channel.EventLoopGroup clientToProxyBossPool, io.netty.channel.EventLoopGroup clientToProxyWorkerPool) Override for metrics or informational purposes- Parameters:
clientToProxyBossPool
- - acceptor poolclientToProxyWorkerPool
- - worker pool
-