GpuDTO.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. package api.common.pojo.dto;
  2. import lombok.Data;
  3. import java.util.List;
  4. @Data
  5. public class GpuDTO {
  6. //名称
  7. private String name;
  8. //总内存
  9. private String totalMemory;
  10. //已用内存
  11. private String usedMemory;
  12. //空闲内存
  13. private String freeMemory;
  14. /**
  15. * 使用率 整形,最大为100
  16. */
  17. private int usageRate;
  18. //进程信息
  19. private List<ProcessDTO> processDTOS;
  20. public String getName() {
  21. return name;
  22. }
  23. public void setName(String name) {
  24. this.name = name;
  25. }
  26. public String getTotalMemory() {
  27. return totalMemory;
  28. }
  29. public void setTotalMemory(String totalMemory) {
  30. this.totalMemory = totalMemory;
  31. }
  32. public String getUsedMemory() {
  33. return usedMemory;
  34. }
  35. public void setUsedMemory(String usedMemory) {
  36. this.usedMemory = usedMemory;
  37. }
  38. public String getFreeMemory() {
  39. return freeMemory;
  40. }
  41. public void setFreeMemory(String freeMemory) {
  42. this.freeMemory = freeMemory;
  43. }
  44. public int getUsageRate() {
  45. return usageRate;
  46. }
  47. public void setUsageRate(int usageRate) {
  48. this.usageRate = usageRate;
  49. }
  50. public List<ProcessDTO> getProcessDTOS() {
  51. return processDTOS;
  52. }
  53. public void setProcessDTOS(List<ProcessDTO> processDTOS) {
  54. this.processDTOS = processDTOS;
  55. }
  56. }