blob: 1c17d73523b4d07f4ce1f9a907dc18c1a789dd90 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.node.verification.spec.retrievers;
/**
* All information the different retrievers retrieve is stored as a HardwareInfo object.
*
* @author olaaun
* @author sgrostad
*/
// TODO: This should be immutable
public class HardwareInfo {
private double minDiskAvailableGb;
private double minMainMemoryAvailableGb;
private int minCpuCores;
private boolean ipv4Interface;
private boolean ipv6Interface;
private boolean ipv6Connection;
private double interfaceSpeedMbs;
private DiskType diskType;
public double getInterfaceSpeedMbs() {
return interfaceSpeedMbs;
}
public void setInterfaceSpeedMbs(double interfaceSpeedMbs) {
this.interfaceSpeedMbs = interfaceSpeedMbs;
}
public double getMinDiskAvailableGb() {
return minDiskAvailableGb;
}
public void setMinDiskAvailableGb(double minDiskAvailableGb) {
this.minDiskAvailableGb = minDiskAvailableGb;
}
public boolean getIpv6Interface() {
return ipv6Interface;
}
public void setIpv6Interface(boolean ipv6Interface) {
this.ipv6Interface = ipv6Interface;
}
public boolean getIpv4Interface() {
return ipv4Interface;
}
public void setIpv4Interface(boolean ipv4Interface) {
this.ipv4Interface = ipv4Interface;
}
public boolean isIpv6Connection() {
return ipv6Connection;
}
public void setIpv6Connection(boolean ipv6Connection) {
this.ipv6Connection = ipv6Connection;
}
public double getMinMainMemoryAvailableGb() {
return minMainMemoryAvailableGb;
}
public void setMinMainMemoryAvailableGb(double minMainMemoryAvailableGb) {
this.minMainMemoryAvailableGb = minMainMemoryAvailableGb;
}
public void setDiskType(DiskType diskType) {
this.diskType = diskType;
}
public DiskType getDiskType() {
return diskType;
}
public int getMinCpuCores() {
return minCpuCores;
}
public void setMinCpuCores(int minCpuCores) {
this.minCpuCores = minCpuCores;
}
public enum DiskType {SLOW, FAST, UNKNOWN}
}
|