commit | author | age
|
9bcb19
|
1 |
/* |
I |
2 |
Copyright [2020] [https://www.xiaonuo.vip] |
|
3 |
|
|
4 |
Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 |
you may not use this file except in compliance with the License. |
|
6 |
You may obtain a copy of the License at |
|
7 |
|
|
8 |
http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
|
|
10 |
Unless required by applicable law or agreed to in writing, software |
|
11 |
distributed under the License is distributed on an "AS IS" BASIS, |
|
12 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 |
See the License for the specific language governing permissions and |
|
14 |
limitations under the License. |
|
15 |
|
|
16 |
Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点: |
|
17 |
|
|
18 |
1.请不要删除和修改根目录下的LICENSE文件。 |
|
19 |
2.请不要删除和修改Snowy源码头部的版权声明。 |
|
20 |
3.请保留源码和相关描述文件的项目出处,作者声明等。 |
|
21 |
4.分发源码时候,请注明软件出处 https://gitee.com/xiaonuobase/snowy |
|
22 |
5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/xiaonuobase/snowy |
|
23 |
6.若您的项目无法满足以上几点,可申请商业授权,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip |
|
24 |
*/ |
|
25 |
package vip.xiaonuo.sys.modular.monitor.result; |
|
26 |
|
|
27 |
import lombok.Data; |
|
28 |
import lombok.NoArgsConstructor; |
|
29 |
|
|
30 |
import java.io.Serializable; |
|
31 |
|
|
32 |
/** |
|
33 |
* 系统属性结果集 |
|
34 |
* |
|
35 |
* @author xuyuxiang |
|
36 |
* @date 2020/6/5 15:02 |
|
37 |
*/ |
|
38 |
@Data |
|
39 |
public class SysMachineResult implements Serializable { |
|
40 |
|
|
41 |
private static final long serialVersionUID = 1L; |
|
42 |
|
|
43 |
/** |
|
44 |
* 系统信息 |
|
45 |
*/ |
|
46 |
private SysOsInfo sysOsInfo; |
|
47 |
|
|
48 |
/** |
|
49 |
* Java信息 |
|
50 |
*/ |
|
51 |
private SysJavaInfo sysJavaInfo; |
|
52 |
|
|
53 |
/** |
|
54 |
* JVM内存信息 |
|
55 |
*/ |
|
56 |
private SysJvmMemInfo sysJvmMemInfo; |
|
57 |
|
|
58 |
/** |
|
59 |
* 系统信息内部类 |
|
60 |
* |
|
61 |
* @author xuyuxiang |
|
62 |
* @date 2020/6/5 15:19 |
|
63 |
*/ |
|
64 |
@NoArgsConstructor |
|
65 |
@Data |
|
66 |
public static class SysOsInfo { |
|
67 |
|
|
68 |
/** |
|
69 |
* 系统名称 |
|
70 |
*/ |
|
71 |
private String osName; |
|
72 |
|
|
73 |
/** |
|
74 |
* 系统架构 |
|
75 |
*/ |
|
76 |
private String osArch; |
|
77 |
|
|
78 |
/** |
|
79 |
* 系统版本 |
|
80 |
*/ |
|
81 |
private String osVersion; |
|
82 |
|
|
83 |
/** |
|
84 |
* 主机名称 |
|
85 |
*/ |
|
86 |
private String osHostName; |
|
87 |
|
|
88 |
/** |
|
89 |
* 主机ip地址 |
|
90 |
*/ |
|
91 |
private String osHostAddress; |
|
92 |
|
|
93 |
} |
|
94 |
|
|
95 |
/** |
|
96 |
* JVM信息内部类 |
|
97 |
* |
|
98 |
* @author xuyuxiang |
|
99 |
* @date 2020/6/5 15:19 |
|
100 |
*/ |
|
101 |
@NoArgsConstructor |
|
102 |
@Data |
|
103 |
public static class SysJavaInfo { |
|
104 |
|
|
105 |
/** |
|
106 |
* 虚拟机名称 |
|
107 |
*/ |
|
108 |
private String jvmName; |
|
109 |
|
|
110 |
/** |
|
111 |
* 虚拟机版本 |
|
112 |
*/ |
|
113 |
private String jvmVersion; |
|
114 |
|
|
115 |
/** |
|
116 |
* 虚拟机供应商 |
|
117 |
*/ |
|
118 |
private String jvmVendor; |
|
119 |
|
|
120 |
/** |
|
121 |
* java名称 |
|
122 |
*/ |
|
123 |
private String javaName; |
|
124 |
|
|
125 |
/** |
|
126 |
* java版本 |
|
127 |
*/ |
|
128 |
private String javaVersion; |
|
129 |
|
|
130 |
} |
|
131 |
|
|
132 |
/** |
|
133 |
* JVM内存信息 |
|
134 |
* |
|
135 |
* @author xuyuxiang |
|
136 |
* @date 2020/6/5 15:19 |
|
137 |
*/ |
|
138 |
@NoArgsConstructor |
|
139 |
@Data |
|
140 |
public static class SysJvmMemInfo { |
|
141 |
|
|
142 |
/** |
|
143 |
* 最大内存 |
|
144 |
*/ |
|
145 |
private String jvmMaxMemory; |
|
146 |
|
|
147 |
/** |
|
148 |
* 可用内存 |
|
149 |
*/ |
|
150 |
private String jvmUsableMemory; |
|
151 |
|
|
152 |
/** |
|
153 |
* 总内存 |
|
154 |
*/ |
|
155 |
private String jvmTotalMemory; |
|
156 |
|
|
157 |
/** |
|
158 |
* 已使用内存 |
|
159 |
*/ |
|
160 |
private String jvmUsedMemory; |
|
161 |
|
|
162 |
/** |
|
163 |
* 空余内存 |
|
164 |
*/ |
|
165 |
private String jvmFreeMemory; |
|
166 |
|
|
167 |
/** |
|
168 |
* 使用率 |
|
169 |
*/ |
|
170 |
private String jvmMemoryUsedRate; |
|
171 |
} |
|
172 |
} |