@IocBean(create="init") public class LoglevelService extends Object implements org.nutz.integration.jedis.pubsub.PubSub
| 限定符和类型 | 字段和说明 |
|---|---|
protected LoglevelHeartbeatThread |
loglevelHeartbeatThread |
protected LoglevelProperty |
loglevelProperty |
protected org.nutz.integration.jedis.pubsub.PubSubService |
pubSubService |
protected org.nutz.integration.jedis.RedisService |
redisService |
| 构造器和说明 |
|---|
LoglevelService() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
changeLoglevel(LoglevelCommand loglevelCommand)
发送消息
|
org.nutz.lang.util.NutMap |
getData()
获取客户端列表
|
String |
getLevel()
获取当前进程日志等级
|
void |
init()
初始化数据到redis并订阅主题
|
void |
onMessage(String channel,
String message)
消息处理
|
void |
saveToRedis() |
boolean |
setLevel(String level)
设置当前进程日志等级
|
@Inject protected LoglevelProperty loglevelProperty
@Inject protected org.nutz.integration.jedis.RedisService redisService
@Inject protected org.nutz.integration.jedis.pubsub.PubSubService pubSubService
@Inject protected LoglevelHeartbeatThread loglevelHeartbeatThread
public void init()
public void saveToRedis()
public void changeLoglevel(LoglevelCommand loglevelCommand)
loglevelCommand - public void onMessage(String channel, String message)
onMessage 在接口中 org.nutz.integration.jedis.pubsub.PubSubchannel - message - public boolean setLevel(String level)
level - public String getLevel()
public org.nutz.lang.util.NutMap getData()
Copyright © 2019. All rights reserved.