org.redkale.boot

## 类 NodeServer

- java.lang.Object
- - org.redkale.boot.NodeServer

- 直接已知子类:
    NodeHttpServer, NodeSncpServer

      public abstract class NodeServer
      extends java.lang.Object

  详情见: http://www.redkale.org

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected Application` | `application`
    `protected java.util.function.Consumer<ServiceWrapper>` | `consumer`
    `protected ResourceFactory` | `factory`
    `protected boolean` | `fine`
    `protected boolean` | `finer`
    `static java.lang.String` | `LINE_SEPARATOR`
    `protected java.util.Set<ServiceWrapper>` | `localServiceWrappers`
    `protected java.util.logging.Logger` | `logger`
    `protected java.util.Set<ServiceWrapper>` | `remoteServiceWrappers`
    `protected Server` | `server`
    `protected AnyValue` | `serverConf`

  - ### 构造器概要

    构造器
    构造器和说明
    `NodeServer(Application application, Server server)`

  - ### 方法概要

    所有方法 静态方法 实例方法 抽象方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static <T extends NodeServer> NodeServer` | `create(java.lang.Class<T> clazz, Application application, AnyValue serconf)`
    `protected ClassFilter` | `createClassFilter(java.lang.String localGroup, java.lang.Class<? extends java.lang.annotation.Annotation> ref, java.lang.Class inter, java.lang.Class<? extends java.lang.annotation.Annotation> ref2, java.lang.String properties, java.lang.String property)`
    `protected ClassFilter<Service>` | `createServiceClassFilter()`
    `protected abstract ClassFilter<Servlet>` | `createServletClassFilter()`
    `protected java.util.function.Consumer<java.lang.Runnable>` | `getExecutor()`
    `java.net.InetSocketAddress` | `getSncpAddress()`
    `java.lang.String` | `getSncpGroup()`
    `abstract java.net.InetSocketAddress` | `getSocketAddress()`
    `void` | `init(AnyValue config)`
    `boolean` | `isSNCP()`
    `protected void` | `loadService(ClassFilter serviceFilter)`
    `protected abstract void` | `loadServlet(ClassFilter<? extends Servlet> servletFilter)`
    `protected Transport` | `loadTransport(java.util.HashSet<java.lang.String> groups)`
    `protected Transport` | `loadTransport(java.lang.String group)`
    `protected java.util.List<Transport>` | `loadTransports(java.util.HashSet<java.lang.String> groups)`
    `void` | `shutdown()`
    `void` | `start()`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### LINE_SEPARATOR

          public static final java.lang.String LINE_SEPARATOR

      另请参阅:
        常量字段值

    - #### logger

          protected final java.util.logging.Logger logger

    - #### fine

          protected final boolean fine

    - #### finer

          protected final boolean finer

    - #### application

          protected final Application application

    - #### factory

          protected final ResourceFactory factory

    - #### server

          protected final Server server

    - #### consumer

          protected java.util.function.Consumer<ServiceWrapper> consumer

    - #### serverConf

          protected AnyValue serverConf

    - #### localServiceWrappers

          protected final java.util.Set<ServiceWrapper> localServiceWrappers

    - #### remoteServiceWrappers

          protected final java.util.Set<ServiceWrapper> remoteServiceWrappers

  - ### 构造器详细资料

    - #### NodeServer

          public NodeServer(Application application,
                            Server server)

  - ### 方法详细资料

    - #### getExecutor

          protected java.util.function.Consumer<java.lang.Runnable> getExecutor()
                                                                         throws java.lang.Exception

      抛出:
        `java.lang.Exception`

    - #### create

          public static <T extends NodeServer> NodeServer create(java.lang.Class<T> clazz,
                                                                 Application application,
                                                                 AnyValue serconf)

    - #### init

          public void init(AnyValue config)
                    throws java.lang.Exception

      抛出:
        `java.lang.Exception`

    - #### loadServlet

          protected abstract void loadServlet(ClassFilter<? extends Servlet> servletFilter)
                                       throws java.lang.Exception

      抛出:
        `java.lang.Exception`

    - #### loadService

          protected void loadService(ClassFilter serviceFilter)
                              throws java.lang.Exception

      抛出:
        `java.lang.Exception`

    - #### loadTransports

          protected java.util.List<Transport> loadTransports(java.util.HashSet<java.lang.String> groups)

    - #### loadTransport

          protected Transport loadTransport(java.util.HashSet<java.lang.String> groups)

    - #### loadTransport

          protected Transport loadTransport(java.lang.String group)

    - #### createServletClassFilter

          protected abstract ClassFilter<Servlet> createServletClassFilter()

    - #### createServiceClassFilter

          protected ClassFilter<Service> createServiceClassFilter()

    - #### createClassFilter

          protected ClassFilter createClassFilter(java.lang.String localGroup,
                                                  java.lang.Class<? extends java.lang.annotation.Annotation> ref,
                                                  java.lang.Class inter,
                                                  java.lang.Class<? extends java.lang.annotation.Annotation> ref2,
                                                  java.lang.String properties,
                                                  java.lang.String property)

    - #### getSocketAddress

          public abstract java.net.InetSocketAddress getSocketAddress()

    - #### isSNCP

          public boolean isSNCP()

    - #### getSncpAddress

          public java.net.InetSocketAddress getSncpAddress()

    - #### getSncpGroup

          public java.lang.String getSncpGroup()

    - #### start

          public void start()
                     throws java.io.IOException

      抛出:
        `java.io.IOException`

    - #### shutdown

          public void shutdown()
                        throws java.io.IOException

      抛出:
        `java.io.IOException`