2024-10-08 09:38:54 +08:00
|
|
|
|
/**
|
2025-03-04 10:42:17 +08:00
|
|
|
|
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
|
|
|
|
|
|
* 微信:mohan_88888
|
|
|
|
|
|
* 抖音:程序员三丙
|
2026-06-10 14:26:04 +08:00
|
|
|
|
* 付费课程:https://www.bilibili.com/cheese/play/ss942400790
|
2024-10-08 09:38:54 +08:00
|
|
|
|
*/
|
|
|
|
|
|
package sanbing.jcpp.app.data;
|
|
|
|
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2025-09-09 08:23:59 +00:00
|
|
|
|
* @author 九筒
|
2024-10-08 09:38:54 +08:00
|
|
|
|
*/
|
|
|
|
|
|
@Data
|
|
|
|
|
|
public class PileSession implements Serializable {
|
|
|
|
|
|
|
|
|
|
|
|
private final UUID pileId;
|
|
|
|
|
|
|
|
|
|
|
|
private final String pileCode;
|
|
|
|
|
|
|
|
|
|
|
|
private final String protocolName;
|
|
|
|
|
|
|
|
|
|
|
|
private UUID protocolSessionId;
|
|
|
|
|
|
|
|
|
|
|
|
private String remoteAddress;
|
|
|
|
|
|
|
|
|
|
|
|
private String nodeId;
|
|
|
|
|
|
|
2024-10-23 17:07:57 +08:00
|
|
|
|
private String nodeIp;
|
|
|
|
|
|
|
|
|
|
|
|
private int nodeRestPort;
|
|
|
|
|
|
|
|
|
|
|
|
private int nodeGrpcPort;
|
2024-10-08 09:38:54 +08:00
|
|
|
|
|
|
|
|
|
|
public PileSession(UUID pileId, String pileCode, String protocolName) {
|
|
|
|
|
|
this.pileId = pileId;
|
|
|
|
|
|
this.pileCode = pileCode;
|
|
|
|
|
|
this.protocolName = protocolName;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@JsonCreator
|
|
|
|
|
|
public PileSession(
|
|
|
|
|
|
@JsonProperty("pileId") UUID pileId,
|
|
|
|
|
|
@JsonProperty("pileCode") String pileCode,
|
|
|
|
|
|
@JsonProperty("protocolName") String protocolName,
|
|
|
|
|
|
@JsonProperty("protocolSessionId") UUID protocolSessionId,
|
|
|
|
|
|
@JsonProperty("remoteAddress") String remoteAddress,
|
|
|
|
|
|
@JsonProperty("nodeId") String nodeId,
|
2024-10-23 17:07:57 +08:00
|
|
|
|
@JsonProperty("nodeIp") String nodeIp,
|
|
|
|
|
|
@JsonProperty("nodeRestPort") int nodeRestPort,
|
|
|
|
|
|
@JsonProperty("nodeGrpcPort") int nodeGrpcPort) {
|
2024-10-08 09:38:54 +08:00
|
|
|
|
this.pileId = pileId;
|
|
|
|
|
|
this.pileCode = pileCode;
|
|
|
|
|
|
this.protocolName = protocolName;
|
|
|
|
|
|
this.protocolSessionId = protocolSessionId;
|
|
|
|
|
|
this.remoteAddress = remoteAddress;
|
|
|
|
|
|
this.nodeId = nodeId;
|
2024-10-23 17:07:57 +08:00
|
|
|
|
this.nodeIp = nodeIp;
|
|
|
|
|
|
this.nodeRestPort = nodeRestPort;
|
|
|
|
|
|
this.nodeGrpcPort = nodeGrpcPort;
|
2024-10-08 09:38:54 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|