Commit a27f0409 authored by duanruiming's avatar duanruiming

[update] 优化服务名称

parent 22b4a03d
...@@ -59,7 +59,7 @@ public class NettyClient { ...@@ -59,7 +59,7 @@ public class NettyClient {
channelFuture.channel().closeFuture().syncUninterruptibly(); channelFuture.channel().closeFuture().syncUninterruptibly();
log.warn("udp服务关闭!"); log.warn("udp服务关闭!");
})); }));
log.info("udp服务正在运行,端口:{}", remotePort); log.info("udp服务正在运行,端口:{}", localPort);
NettyClient.udpChannelFuture = channelFuture; NettyClient.udpChannelFuture = channelFuture;
} }
......
...@@ -14,7 +14,7 @@ import org.springframework.stereotype.Service; ...@@ -14,7 +14,7 @@ import org.springframework.stereotype.Service;
*/ */
@Service @Service
@Slf4j @Slf4j
public class HeartBeatFactory implements CommandResponseFactory { public class HeartBeatService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return commandPojo.getResponseMsg(); return commandPojo.getResponseMsg();
...@@ -30,7 +30,5 @@ public class HeartBeatFactory implements CommandResponseFactory { ...@@ -30,7 +30,5 @@ public class HeartBeatFactory implements CommandResponseFactory {
String str = "55ac00000000000017050f11060b0000000000000000000000000000000000"; String str = "55ac00000000000017050f11060b0000000000000000000000000000000000";
MessageResultPojo resultPojo = NettyClient.sendMessage("10.102.1.204", 5050, str, "55ab", 300); MessageResultPojo resultPojo = NettyClient.sendMessage("10.102.1.204", 5050, str, "55ab", 300);
log.info("信号返回字符串:{}", resultPojo.getHexMessageResult()); log.info("信号返回字符串:{}", resultPojo.getHexMessageResult());
} }
} }
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:08 * @date 2023/05/12 16:08
*/ */
@Service @Service
public class GetFaultInfoFactory implements CommandResponseFactory { public class GetAlarmInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:05 * @date 2023/05/12 16:05
*/ */
@Service @Service
public class GetBaseInfoFactory implements CommandResponseFactory { public class GetBaseInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:07 * @date 2023/05/12 16:07
*/ */
@Service @Service
public class GetSchedulesInfoFactory implements CommandResponseFactory { public class GetDailyPlanInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:06 * @date 2023/05/12 16:06
*/ */
@Service @Service
public class GetDetectorInfoFactory implements CommandResponseFactory { public class GetDetectorInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:05 * @date 2023/05/12 16:05
*/ */
@Service @Service
public class GetDeviceInfoFactory implements CommandResponseFactory { public class GetDeviceInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:08 * @date 2023/05/12 16:08
*/ */
@Service @Service
public class GetAlarmInfoFactory implements CommandResponseFactory { public class GetFaultInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:06 * @date 2023/05/12 16:06
*/ */
@Service @Service
public class GetLightsGroupInfoFactory implements CommandResponseFactory { public class GetLightsGroupInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:06 * @date 2023/05/12 16:06
*/ */
@Service @Service
public class GetPhaseInfoFactory implements CommandResponseFactory { public class GetPhaseInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:07 * @date 2023/05/12 16:07
*/ */
@Service @Service
public class GetPhaseSecurityInfoFactory implements CommandResponseFactory { public class GetPhaseSecurityInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:07 * @date 2023/05/12 16:07
*/ */
@Service @Service
public class GetRunningStateInfoFactory implements CommandResponseFactory { public class GetRunningStateInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:07 * @date 2023/05/12 16:07
*/ */
@Service @Service
public class GetDailyPlanInfoFactory implements CommandResponseFactory { public class GetSchedulesInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:07 * @date 2023/05/12 16:07
*/ */
@Service @Service
public class GetSchemeInfoFactory implements CommandResponseFactory { public class GetSchemeInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:06 * @date 2023/05/12 16:06
*/ */
@Service @Service
public class GetStageInfoFactory implements CommandResponseFactory { public class GetStageInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:08 * @date 2023/05/12 16:08
*/ */
@Service @Service
public class GetTrafficDataInfoFactory implements CommandResponseFactory { public class GetTrafficDataInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:13 * @date 2023/05/12 16:13
*/ */
@Service @Service
public class SetAlarmInfoFactory implements CommandResponseFactory { public class SetAlarmInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:10 * @date 2023/05/12 16:10
*/ */
@Service @Service
public class SetBaseInfoFactory implements CommandResponseFactory { public class SetBaseInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:13 * @date 2023/05/12 16:13
*/ */
@Service @Service
public class SetControlInfoFactory implements CommandResponseFactory { public class SetControlInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:11 * @date 2023/05/12 16:11
*/ */
@Service @Service
public class SetSchedulesInfoFactory implements CommandResponseFactory { public class SetDailyPlanInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:10 * @date 2023/05/12 16:10
*/ */
@Service @Service
public class SetDetectorInfoFactory implements CommandResponseFactory { public class SetDetectorInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:09 * @date 2023/05/12 16:09
*/ */
@Service @Service
public class SetDeviceInfoFactory implements CommandResponseFactory { public class SetDeviceInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:13 * @date 2023/05/12 16:13
*/ */
@Service @Service
public class SetFaultInfoFactory implements CommandResponseFactory { public class SetFaultInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:10 * @date 2023/05/12 16:10
*/ */
@Service @Service
public class SetLightsGroupInfoFactory implements CommandResponseFactory { public class SetLightsGroupInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:10 * @date 2023/05/12 16:10
*/ */
@Service @Service
public class SetStageInfoFactory implements CommandResponseFactory { public class SetPhaseInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:11 * @date 2023/05/12 16:11
*/ */
@Service @Service
public class SetPhaseSecurityInfoFactory implements CommandResponseFactory { public class SetPhaseSecurityInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:11 * @date 2023/05/12 16:11
*/ */
@Service @Service
public class SetDailyPlanInfoFactory implements CommandResponseFactory { public class SetSchedulesInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:11 * @date 2023/05/12 16:11
*/ */
@Service @Service
public class SetSchemeInfoFactory implements CommandResponseFactory { public class SetSchemeInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:10 * @date 2023/05/12 16:10
*/ */
@Service @Service
public class SetPhaseInfoFactory implements CommandResponseFactory { public class SetStageInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* @date 2023/05/12 16:12 * @date 2023/05/12 16:12
*/ */
@Service @Service
public class SetTrafficDataInfoFactory implements CommandResponseFactory { public class SetTrafficDataInfoService implements CommandResponseFactory {
@Override @Override
public String getCommandResponse(CommandPojo commandPojo) { public String getCommandResponse(CommandPojo commandPojo) {
return null; return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment