@IocBean public class SentinelStarter extends Object implements ServerFace
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.nutz.ioc.impl.PropertiesProxy |
conf |
protected org.nutz.ioc.Ioc |
ioc |
static String |
PROP_CHANNEL |
static String |
PROP_CONSOLE_SERVER |
static String |
PROP_ENABLED |
static String |
PROP_HEARTBEAT_CLIENT_IP |
static String |
PROP_HEARTBEAT_INTERVAL_MS |
static String |
PROP_PROJECR_NAME |
static String |
PROP_RULEKEY |
static String |
PROP_SERVER_PORT |
| 构造器和说明 |
|---|
SentinelStarter() |
@Inject(value="refer:$ioc") protected org.nutz.ioc.Ioc ioc
@Inject protected org.nutz.ioc.impl.PropertiesProxy conf
@PropDoc(value="\u662f\u5426\u542f\u52a8Sentinel\u5ba2\u6237\u7aef", defaultValue="false", type="boolean") public static final String PROP_ENABLED
@PropDoc(value="Sentinel\u5ba2\u6237\u7aef\u540d\u79f0,\u4e0d\u8bbe\u7f6e\u5219\u81ea\u52a8\u83b7\u53d6nutz.application.name", type="string") public static final String PROP_PROJECR_NAME
@PropDoc(value="Sentinel\u5ba2\u6237\u7aef\u7aef\u53e3", defaultValue="8721", type="int") public static final String PROP_SERVER_PORT
@PropDoc(value="Sentinel\u63a7\u5236\u53f0\u5730\u5740", defaultValue="localhost:9090", type="string") public static final String PROP_CONSOLE_SERVER
@PropDoc(value="Sentinel\u5ba2\u6237\u7aef\u901a\u4fe1\u95f4\u9694\u6beb\u79d2\u6570", defaultValue="3000", type="int") public static final String PROP_HEARTBEAT_INTERVAL_MS
@PropDoc(value="Sentinel\u5ba2\u6237\u7aefIP,\u4e0d\u914d\u7f6e\u5219\u81ea\u52a8\u83b7\u53d6\u672c\u5730IP", defaultValue="", type="string") public static final String PROP_HEARTBEAT_CLIENT_IP
@PropDoc(value="Sentinel\u89c4\u5219\u5b58\u50a8key\u503c", defaultValue="nutzboot", type="string") public static final String PROP_RULEKEY
public void start()
throws Exception
start 在接口中 ServerFaceExceptionpublic void stop()
throws Exception
stop 在接口中 ServerFaceExceptionpublic boolean isRunning()
isRunning 在接口中 ServerFaceCopyright © 2019. All rights reserved.