@IocBean(create="init") public class TioServerStarter extends Object implements ServerFace
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
TioServerStarter.NopServerAioXXX |
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.nutz.ioc.impl.PropertiesProxy |
conf |
protected static String |
PRE |
static String |
PROP_HEARTBEAT |
static String |
PROP_HEARTBEATTIMEOUT |
static String |
PROP_IP |
static String |
PROP_NAME |
static String |
PROP_PORT |
static String |
PROP_SSL_KEYSTORE_PASSWORD |
static String |
PROP_SSL_KEYSTORE_PATH |
protected org.tio.server.TioServer |
tioServer |
| 构造器和说明 |
|---|
TioServerStarter() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.tio.server.TioServer |
getAioServer(org.tio.server.ServerGroupContext serverGroupContext) |
TioServerStarter.NopServerAioXXX |
getServerAioHandler() |
TioServerStarter.NopServerAioXXX |
getServerAioListener() |
org.tio.server.ServerGroupContext |
getServerGroupContext(org.tio.server.intf.ServerAioHandler serverAioHandler,
org.tio.server.intf.ServerAioListener serverAioListener) |
void |
init() |
void |
start() |
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfailsafe, isRunning@Inject protected org.nutz.ioc.impl.PropertiesProxy conf
@PropDoc(group="tio", value="tio\u76d1\u542c\u7aef\u53e3", defaultValue="9420") public static final String PROP_PORT
@PropDoc(group="tio", value="tio\u76d1\u542c\u7684ip", defaultValue="0.0.0.0") public static final String PROP_IP
@PropDoc(group="tio", value="\u662f\u5426\u542f\u52a8\u6846\u67b6\u5c42\u9762\u5fc3\u8df3", defaultValue="false") public static final String PROP_HEARTBEAT
@PropDoc(group="tio", value="\u5fc3\u8df3\u8d85\u65f6\u65f6\u95f4(\u5355\u4f4d:\u6beb\u79d2)", defaultValue="120000") public static final String PROP_HEARTBEATTIMEOUT
@PropDoc(group="tio", value="\u4e0a\u4e0b\u6587\u540d\u79f0", defaultValue="NutzBoot GroupContext") public static final String PROP_NAME
@PropDoc(group="tio", value="ssl keyStore\u8def\u5f84") public static final String PROP_SSL_KEYSTORE_PATH
@PropDoc(group="tio", value="ssl keyStore\u5bc6\u94a5") public static final String PROP_SSL_KEYSTORE_PASSWORD
protected org.tio.server.TioServer tioServer
@IocBean(name="nopServerAioHandler") public TioServerStarter.NopServerAioXXX getServerAioHandler()
@IocBean(name="nopServerAioListener") public TioServerStarter.NopServerAioXXX getServerAioListener()
@IocBean(name="serverGroupContext")
public org.tio.server.ServerGroupContext getServerGroupContext(@Inject
org.tio.server.intf.ServerAioHandler serverAioHandler,
@Inject
org.tio.server.intf.ServerAioListener serverAioListener)
throws Exception
Exception@IocBean
public org.tio.server.TioServer getAioServer(@Inject
org.tio.server.ServerGroupContext serverGroupContext)
public void start()
throws Exception
start 在接口中 ServerFaceExceptionpublic void stop()
throws Exception
stop 在接口中 ServerFaceExceptionCopyright © 2020. All rights reserved.