mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 11:58:01 +08:00
完善javadoc
This commit is contained in:
parent
a0c488f8b0
commit
773a0aebb6
@ -4,7 +4,7 @@
|
||||
> 如果有多个项目管理起来显得比较麻烦。
|
||||
> 如果新增、更新、删除项目都不是很方便。
|
||||
> 再或者想不使用电脑控制重启、关闭、开启项目。直接使用shell 登录服务器管理显然不是最简单的方法
|
||||
> 如果休息日在朋友家玩,公司领导联系说需要控制一下某个项目,这是你身边有电脑,但是没有专业的管理服务器的软件。
|
||||
> 如果休息日在朋友家玩,公司领导联系说需要控制一下某个项目,此时你身边有电脑,但是没有专业的管理服务器的软件。
|
||||
|
||||
|
||||
### 在这里boot-online 项目将如上问题统一解决
|
||||
|
3
pom.xml
3
pom.xml
@ -9,11 +9,12 @@
|
||||
<version>1.4.7.RELEASE</version>
|
||||
</parent>
|
||||
<artifactId>boot-online</artifactId>
|
||||
<name>在线管理系统</name>
|
||||
<inceptionYear>2017</inceptionYear>
|
||||
<version>1.0</version>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<java.version>1.8</java.version>
|
||||
|
||||
<common-boot.version>1.2.23</common-boot.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
|
@ -22,7 +22,8 @@ import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Created by jiangzeyin on 2018/9/29.
|
||||
* @author jiangzeyin
|
||||
* @date 2018/9/29
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping(value = "/manage/")
|
||||
|
@ -8,11 +8,13 @@ import javax.websocket.Session;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Created by jiangzeyin on 2018/9/29.
|
||||
* @author jiangzeyin
|
||||
* @date 2018/9/29
|
||||
*/
|
||||
public class SocketSession {
|
||||
|
||||
private static final KeyLock<String> LOCK = new KeyLock<>();
|
||||
private static final int ERROR_TRY_COUNT = 10;
|
||||
|
||||
private TailLogThread thread;
|
||||
private Session session;
|
||||
@ -50,13 +52,13 @@ public class SocketSession {
|
||||
if (!session.isOpen()) {
|
||||
return;
|
||||
}
|
||||
for (int i = 1; i <= 10; i++) {
|
||||
for (int i = 1; i <= ERROR_TRY_COUNT; i++) {
|
||||
try {
|
||||
LOCK.lock(session.getId());
|
||||
session.getBasicRemote().sendText(msg);
|
||||
} catch (IOException e) {
|
||||
DefaultSystemLog.ERROR().error("发送消息失败:" + i, e);
|
||||
if (i == 10) {
|
||||
if (i == ERROR_TRY_COUNT) {
|
||||
throw e;
|
||||
} else {
|
||||
continue;
|
||||
|
@ -13,7 +13,8 @@ import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Created by jiangzeyin on 2018/10/2.
|
||||
* @author jiangzeyin
|
||||
* @date 2018/10/2
|
||||
*/
|
||||
public class TopManager {
|
||||
|
||||
|
@ -13,7 +13,8 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* Created by jiangzeyin on 2017/5/11.
|
||||
* @author jiangzeyin
|
||||
* @date 2017/5/11
|
||||
*/
|
||||
@Aspect
|
||||
@Component
|
||||
|
Loading…
Reference in New Issue
Block a user