| | |
| | | */ |
| | | private Integer icmpStatus; |
| | | /** |
| | | * icmp状态 2/1/-1/0 全部/在线/离线/未知 |
| | | */ |
| | | private String icmpStatusText; |
| | | /** |
| | | * 最近icmp时间 |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | |
| | | */ |
| | | private Integer status; |
| | | /** |
| | | * 在线状态 2/1/-1/0 全部/在线/离线/未知 |
| | | */ |
| | | private String statusText; |
| | | /** |
| | | * 省厅标签 |
| | | */ |
| | | private String tagStr; |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date vqdTime; |
| | | |
| | | public String getIcmpStatusText() { |
| | | if (icmpStatus == 2) { |
| | | this.icmpStatusText = "全部"; |
| | | } |
| | | if (icmpStatus == 1) { |
| | | this.icmpStatusText = "在线"; |
| | | } |
| | | if (icmpStatus == -1) { |
| | | this.icmpStatusText = "离线"; |
| | | } |
| | | if (icmpStatus == 0) { |
| | | this.icmpStatusText = "未知"; |
| | | } |
| | | return icmpStatusText; |
| | | } |
| | | |
| | | public String getStatusText() { |
| | | if (status == 2) { |
| | | this.statusText = "全部"; |
| | | } |
| | | if (status == 1) { |
| | | this.statusText = "在线"; |
| | | } |
| | | if (status == -1) { |
| | | this.statusText = "离线"; |
| | | } |
| | | if (status == 0) { |
| | | this.statusText = "未知"; |
| | | } |
| | | return statusText; |
| | | } |
| | | } |