IService.ServiceState| 构造器和说明 |
|---|
AbstractService() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearAttributes() |
void |
closeService()
关闭服务
|
protected void |
daemonInit() |
protected void |
daemonStop() |
protected abstract void |
doClose()
执行关闭服务逻辑
|
protected void |
doJvmClose()
执行jvm关闭
|
protected abstract void |
doStart()
执行启动服务逻辑
|
Object |
getAttribute(String key) |
IService.ServiceState |
getState()
获取服务状态
|
boolean |
hasAttribute(String key) |
protected boolean |
isDaemon() |
Object |
removeAttribute(String key) |
void |
setAttribute(String key,
Object value) |
protected void |
setDaemon(boolean daemon) |
void |
startService()
启动服务
|
protected boolean isDaemon()
protected void setDaemon(boolean daemon)
protected void daemonInit()
protected void daemonStop()
public void startService()
IServicestartService 在接口中 IServicepublic void closeService()
IServicecloseService 在接口中 IServicepublic IService.ServiceState getState()
IServicepublic boolean hasAttribute(String key)
hasAttribute 在接口中 IServicepublic void setAttribute(String key, Object value)
setAttribute 在接口中 IServicepublic Object getAttribute(String key)
getAttribute 在接口中 IServicepublic Object removeAttribute(String key)
removeAttribute 在接口中 IServicepublic void clearAttributes()
clearAttributes 在接口中 IServiceprotected void doJvmClose()
Copyright © 2020. All rights reserved.