Class RunOne

java.lang.Object
com.iohao.net.app.RunOne

public class RunOne extends Object
Coordinates startup for a combined deployment that can host the external server, multiple logic servers, and an optional center server in one process.
Since:
25.1
Author:
渔民小镇
date:
2025-09-04
  • Field Details

    • aeron

      protected io.aeron.Aeron aeron
    • publisher

      protected Publisher publisher
    • netServerBuilder

      protected NetServerBuilder netServerBuilder
    • centerServerBuilder

      protected CenterServerBuilder centerServerBuilder
    • externalServer

      protected ExternalServer externalServer
    • logicServerList

      protected List<LogicServer> logicServerList
    • enableCenterServer

      protected boolean enableCenterServer
    • serverShutdownHookList

      protected List<ServerShutdownHook> serverShutdownHookList
  • Constructor Details

    • RunOne

      public RunOne()
  • Method Details

    • getNetServerBuilder

      public NetServerBuilder getNetServerBuilder()
    • startup

      public void startup()
    • defaultSetting

      protected void defaultSetting()
    • banner

      public static void banner(int externalServerSize, int logicServerSize)
    • enableCenterServer

      public RunOne enableCenterServer()
    • setAeron

      public RunOne setAeron(io.aeron.Aeron aeron)
      Returns:
      this.
    • setPublisher

      public RunOne setPublisher(Publisher publisher)
      Returns:
      this.
    • setNetServerBuilder

      public RunOne setNetServerBuilder(NetServerBuilder netServerBuilder)
      Returns:
      this.
    • setCenterServerBuilder

      public RunOne setCenterServerBuilder(CenterServerBuilder centerServerBuilder)
      Returns:
      this.
    • setExternalServer

      public RunOne setExternalServer(ExternalServer externalServer)
      Returns:
      this.
    • setLogicServerList

      public RunOne setLogicServerList(List<LogicServer> logicServerList)
      Returns:
      this.
    • setEnableCenterServer

      public RunOne setEnableCenterServer(boolean enableCenterServer)
      Returns:
      this.
    • setServerShutdownHookList

      public RunOne setServerShutdownHookList(List<ServerShutdownHook> serverShutdownHookList)
      Returns:
      this.