public class NettyServer
extends services.moleculer.service.Service
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
address |
protected io.netty.handler.ssl.SslContext |
cachedSslContext |
services.moleculer.eventbus.Listener |
evt |
protected ApiGateway |
gateway |
protected io.netty.channel.ChannelHandler |
handler |
protected java.lang.String |
keyCertChainFilePath |
protected java.lang.String |
keyFilePath |
protected java.lang.String |
keyStoreFilePath |
protected java.lang.String |
keyStorePassword |
protected java.lang.String |
keyStoreType |
protected boolean |
openSslSessionCacheEnabled |
protected int |
port |
protected io.netty.channel.EventLoopGroup |
singletonGroup |
protected javax.net.ssl.TrustManagerFactory |
trustManagerFactory |
protected boolean |
useSSL |
protected int |
webSocketCleanupSeconds |
protected NettyWebSocketRegistry |
webSocketRegistry |
| Constructor and Description |
|---|
NettyServer() |
| Modifier and Type | Method and Description |
|---|---|
protected io.netty.handler.ssl.SslHandler |
createSslHandler(io.netty.channel.Channel ch) |
protected io.netty.handler.ssl.SslContext |
getSslContext() |
int |
getWebSocketCleanupSeconds() |
void |
setWebSocketCleanupSeconds(int webSocketCleanupSeconds) |
void |
started(services.moleculer.ServiceBroker broker) |
void |
stopped() |
protected ApiGateway gateway
protected int port
protected java.lang.String address
protected io.netty.channel.EventLoopGroup singletonGroup
protected io.netty.channel.ChannelHandler handler
protected int webSocketCleanupSeconds
protected boolean useSSL
protected javax.net.ssl.TrustManagerFactory trustManagerFactory
protected java.lang.String keyStoreFilePath
protected java.lang.String keyStorePassword
protected java.lang.String keyStoreType
protected java.lang.String keyCertChainFilePath
protected java.lang.String keyFilePath
protected boolean openSslSessionCacheEnabled
protected io.netty.handler.ssl.SslContext cachedSslContext
protected NettyWebSocketRegistry webSocketRegistry
public services.moleculer.eventbus.Listener evt
public void started(services.moleculer.ServiceBroker broker)
throws java.lang.Exception
started in class services.moleculer.service.MoleculerComponentjava.lang.Exceptionpublic void stopped()
stopped in class services.moleculer.service.MoleculerComponentprotected io.netty.handler.ssl.SslHandler createSslHandler(io.netty.channel.Channel ch)
throws java.lang.Exception
java.lang.Exceptionprotected io.netty.handler.ssl.SslContext getSslContext()
throws java.lang.Exception
java.lang.Exceptionpublic int getWebSocketCleanupSeconds()
public void setWebSocketCleanupSeconds(int webSocketCleanupSeconds)