Class NioConfig

java.lang.Object
org.summerboot.jexpress.boot.config.BootConfig
org.summerboot.jexpress.nio.server.NioConfig
All Implemented Interfaces:
JExpressConfig

@ImportResource("cfg_nio.properties") public class NioConfig extends BootConfig
Author:
Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
  • Field Details

  • Constructor Details

    • NioConfig

      protected NioConfig()
  • Method Details

    • main

      public static void main(String[] args)
    • shutdown

      public void shutdown()
    • getServerDefaultResponseHeaders

      public io.netty.handler.codec.http.HttpHeaders getServerDefaultResponseHeaders()
    • loadCustomizedConfigs

      protected void loadCustomizedConfigs(File cfgFile, boolean isReal, ConfigUtil helper, Properties props) throws Exception
      Specified by:
      loadCustomizedConfigs in class BootConfig
      Throws:
      Exception
    • getBizExecutor

      public ThreadPoolExecutor getBizExecutor()
    • setGuiceInjector

      public void setGuiceInjector(com.google.inject.Injector _injector)
    • getHttpFileUploadHandler

      public io.netty.channel.ChannelHandler getHttpFileUploadHandler()
    • getPingHandler

      public io.netty.channel.ChannelHandler getPingHandler()
    • getRequestHandler

      public io.netty.channel.ChannelHandler getRequestHandler()
    • getWebSockettHandler

      public io.netty.channel.ChannelHandler getWebSockettHandler()
    • isWebSocketCompress

      public boolean isWebSocketCompress()
    • getWebSocketMaxFrameSize

      public int getWebSocketMaxFrameSize()
    • getWebSocketSubprotocols

      public String getWebSocketSubprotocols()
    • isWebSocketAllowExtensions

      public boolean isWebSocketAllowExtensions()
    • getBindingAddresses

      public Map<String,Integer> getBindingAddresses()
    • getKmf

      public KeyManagerFactory getKmf()
    • getTmf

      public TrustManagerFactory getTmf()
    • isVerifyCertificateHost

      public boolean isVerifyCertificateHost()
    • getSslProvider

      public io.netty.handler.ssl.SslProvider getSslProvider()
    • getSslProtocols

      public String[] getSslProtocols()
    • getSslCipherSuites

      public String[] getSslCipherSuites()
    • isSoReuseAddr

      public boolean isSoReuseAddr()
    • isSoKeepAlive

      public boolean isSoKeepAlive()
    • isSoTcpNodelay

      public boolean isSoTcpNodelay()
    • getSoLinger

      public int getSoLinger()
    • getSslHandshakeTimeout

      public int getSslHandshakeTimeout()
    • getSoConnectionTimeout

      public int getSoConnectionTimeout()
    • getSoBacklog

      public int getSoBacklog()
    • getSoRcvBuf

      public int getSoRcvBuf()
    • getSoSndBuf

      public int getSoSndBuf()
    • getHttpObjectAggregatorMaxContentLength

      public int getHttpObjectAggregatorMaxContentLength()
    • getMultiplexer

      public IoMultiplexer getMultiplexer()
    • getHttpServerCodec_MaxInitialLineLength

      public int getHttpServerCodec_MaxInitialLineLength()
    • getHttpServerCodec_MaxHeaderSize

      public int getHttpServerCodec_MaxHeaderSize()
    • getHttpServerCodec_MaxChunkSize

      public int getHttpServerCodec_MaxChunkSize()
    • getNioEventLoopGroupAcceptorSize

      public int getNioEventLoopGroupAcceptorSize()
    • getNioEventLoopGroupWorkerSize

      public int getNioEventLoopGroupWorkerSize()
    • getBizExecutorThreadingMode

      public NioConfig.ThreadingMode getBizExecutorThreadingMode()
    • getBizExecutorCoreSize

      public int getBizExecutorCoreSize()
    • getBizExecutorMaxSize

      public int getBizExecutorMaxSize()
    • getBizExecutorQueueSize

      public int getBizExecutorQueueSize()
    • getBizTimeoutWarnThreshold

      public int getBizTimeoutWarnThreshold()
    • getReaderIdleTime

      public int getReaderIdleTime()
    • getWriterIdleTime

      public int getWriterIdleTime()
    • getHealthInspectionIntervalSeconds

      public int getHealthInspectionIntervalSeconds()
    • isHttpService

      public boolean isHttpService()
    • isFromJsonFailOnUnknownProperties

      public boolean isFromJsonFailOnUnknownProperties()
    • isToJsonIgnoreNull

      public boolean isToJsonIgnoreNull()
    • isToJsonPretty

      public boolean isToJsonPretty()
    • getFielUploadHandlerAnnotatedName

      public String getFielUploadHandlerAnnotatedName()
    • getPingHandlerAnnotatedName

      public String getPingHandlerAnnotatedName()
    • getRequestHandlerAnnotatedName

      public String getRequestHandlerAnnotatedName()
    • getWebSocketHandlerAnnotatedName

      public String getWebSocketHandlerAnnotatedName()
    • getFilterUserType

      public NioConfig.VerboseTargetUserType getFilterUserType()
    • getFilterCallerNameSet

      public Set<String> getFilterCallerNameSet()
    • getFilterCallerIdSet

      public Set<Long> getFilterCallerIdSet()
    • getFilterCallerIdFrom

      public long getFilterCallerIdFrom()
    • getFilterCallerIdTo

      public long getFilterCallerIdTo()
    • getFilterCodeType

      public NioConfig.VerboseTargetCodeType getFilterCodeType()
    • getFilterCodeSet

      public Set<Long> getFilterCodeSet()
    • getFilterCodeRangeFrom

      public long getFilterCodeRangeFrom()
    • getFilterCodeRangeTo

      public long getFilterCodeRangeTo()
    • isVerboseReqHeader

      public boolean isVerboseReqHeader()
    • isVerboseReqContent

      public boolean isVerboseReqContent()
    • isVerboseRespHeader

      public boolean isVerboseRespHeader()
    • isVerboseRespContent

      public boolean isVerboseRespContent()
    • getFilterPOIType

      public NioConfig.VerboseTargetPOIType getFilterPOIType()
    • getFilterPOISet

      public Set<String> getFilterPOISet()
    • getRootFolder

      public File getRootFolder()
    • getDocrootDir

      public String getDocrootDir()
    • getWebResources

      public String getWebResources()
    • getWelcomePage

      public String getWelcomePage()
    • isDownloadMode

      public boolean isDownloadMode()
    • getTempUoloadDir

      public String getTempUoloadDir()