|
@@ -42,25 +42,7 @@ public class MachineInfo extends BaseEntity {
|
|
|
private Long bootTime;
|
|
private Long bootTime;
|
|
|
@NotNull
|
|
@NotNull
|
|
|
private String agentVersion;
|
|
private String agentVersion;
|
|
|
- //@NotNull
|
|
|
|
|
- private Long lastCheck;
|
|
|
|
|
|
|
|
|
|
- @NotNull
|
|
|
|
|
- private String vendor;
|
|
|
|
|
- @NotNull
|
|
|
|
|
- private String modelName;
|
|
|
|
|
- @NotNull
|
|
|
|
|
- private Integer physicalCore;
|
|
|
|
|
- @NotNull
|
|
|
|
|
- private Integer logicalCore;
|
|
|
|
|
-
|
|
|
|
|
- @NotNull
|
|
|
|
|
- private Long memTotal;
|
|
|
|
|
- private Long swapTotal;
|
|
|
|
|
- @NotNull
|
|
|
|
|
- @ElementCollection(targetClass = DiskInfo.class)
|
|
|
|
|
- @LazyCollection(LazyCollectionOption.FALSE)
|
|
|
|
|
- private List<DiskInfo> diskInfos;
|
|
|
|
|
@NotNull
|
|
@NotNull
|
|
|
@ElementCollection(targetClass = NetworkInfo.class)
|
|
@ElementCollection(targetClass = NetworkInfo.class)
|
|
|
@LazyCollection(LazyCollectionOption.FALSE)
|
|
@LazyCollection(LazyCollectionOption.FALSE)
|
|
@@ -75,18 +57,6 @@ public class MachineInfo extends BaseEntity {
|
|
|
this.byteOrder = osDetail.getByteOrder();
|
|
this.byteOrder = osDetail.getByteOrder();
|
|
|
this.bootTime = osDetail.getBootTime();
|
|
this.bootTime = osDetail.getBootTime();
|
|
|
this.agentVersion = machineDetail.getAppVersion().getCommitId();
|
|
this.agentVersion = machineDetail.getAppVersion().getCommitId();
|
|
|
- //this.lastCheck = machineDetail.getTimestamp();
|
|
|
|
|
-
|
|
|
|
|
- CpuDetail cpuDetail = machineDetail.getCpuDetail();
|
|
|
|
|
- this.vendor = cpuDetail.getVendor();
|
|
|
|
|
- this.modelName = cpuDetail.getName();
|
|
|
|
|
- this.physicalCore = cpuDetail.getPhysicalCore();
|
|
|
|
|
- this.logicalCore = cpuDetail.getLogicalCore();
|
|
|
|
|
-
|
|
|
|
|
- MemoryDetail memoryDetail = machineDetail.getMemoryDetail();
|
|
|
|
|
- this.memTotal = memoryDetail.getTotal();
|
|
|
|
|
- this.swapTotal = memoryDetail.getSwapTotal();
|
|
|
|
|
- this.diskInfos = machineDetail.getDiskDetails().stream().map(DiskInfo::new).collect(Collectors.toList());
|
|
|
|
|
setNetworkInfos(machineDetail.getNetworkDetails());
|
|
setNetworkInfos(machineDetail.getNetworkDetails());
|
|
|
}
|
|
}
|
|
|
|
|
|