1
|
package eu.dnetlib.services;
|
2
|
|
3
|
/**
|
4
|
* This bean packages the minimum information for describing a service running instance.
|
5
|
*/
|
6
|
public class ServiceRunningInstance {
|
7
|
|
8
|
private String serviceId;
|
9
|
private String baseUrl;
|
10
|
private long freeDiskSpace = 0;
|
11
|
private long totalDiskSpace = 0;
|
12
|
private long freeMemory = 0;
|
13
|
private long totalMemory = 0;
|
14
|
private long maxMemory = 0;
|
15
|
private long usedMemory = 0;
|
16
|
private long numberOfProcessors = 0;
|
17
|
private double sysLoadAvg = 0;
|
18
|
|
19
|
public ServiceRunningInstance() {}
|
20
|
|
21
|
public ServiceRunningInstance(final String serviceId, final String baseUrl) {
|
22
|
this.serviceId = serviceId;
|
23
|
this.baseUrl = baseUrl;
|
24
|
}
|
25
|
|
26
|
public String getServiceId() {
|
27
|
return serviceId;
|
28
|
}
|
29
|
|
30
|
public void setServiceId(final String serviceId) {
|
31
|
this.serviceId = serviceId;
|
32
|
}
|
33
|
|
34
|
public String getBaseUrl() {
|
35
|
return baseUrl;
|
36
|
}
|
37
|
|
38
|
public void setBaseUrl(final String baseUrl) {
|
39
|
this.baseUrl = baseUrl;
|
40
|
}
|
41
|
|
42
|
public long getFreeDiskSpace() {
|
43
|
return freeDiskSpace;
|
44
|
}
|
45
|
|
46
|
public void setFreeDiskSpace(final long freeDiskSpace) {
|
47
|
this.freeDiskSpace = freeDiskSpace;
|
48
|
}
|
49
|
|
50
|
public long getTotalDiskSpace() {
|
51
|
return totalDiskSpace;
|
52
|
}
|
53
|
|
54
|
public void setTotalDiskSpace(final long totalDiskSpace) {
|
55
|
this.totalDiskSpace = totalDiskSpace;
|
56
|
}
|
57
|
|
58
|
public long getFreeMemory() {
|
59
|
return freeMemory;
|
60
|
}
|
61
|
|
62
|
public void setFreeMemory(final long freeMemory) {
|
63
|
this.freeMemory = freeMemory;
|
64
|
}
|
65
|
|
66
|
public long getTotalMemory() {
|
67
|
return totalMemory;
|
68
|
}
|
69
|
|
70
|
public void setTotalMemory(final long totalMemory) {
|
71
|
this.totalMemory = totalMemory;
|
72
|
}
|
73
|
|
74
|
public long getMaxMemory() {
|
75
|
return maxMemory;
|
76
|
}
|
77
|
|
78
|
public void setMaxMemory(final long maxMemory) {
|
79
|
this.maxMemory = maxMemory;
|
80
|
}
|
81
|
|
82
|
public long getUsedMemory() {
|
83
|
return usedMemory;
|
84
|
}
|
85
|
|
86
|
public void setUsedMemory(final long usedMemory) {
|
87
|
this.usedMemory = usedMemory;
|
88
|
}
|
89
|
|
90
|
public long getNumberOfProcessors() {
|
91
|
return numberOfProcessors;
|
92
|
}
|
93
|
|
94
|
public void setNumberOfProcessors(final long numberOfProcessors) {
|
95
|
this.numberOfProcessors = numberOfProcessors;
|
96
|
}
|
97
|
|
98
|
public double getSysLoadAvg() {
|
99
|
return sysLoadAvg;
|
100
|
}
|
101
|
|
102
|
public void setSysLoadAvg(double sysLoadAvg) {
|
103
|
this.sysLoadAvg = sysLoadAvg;
|
104
|
}
|
105
|
|
106
|
}
|