View Javadoc
1   /*
2    * Licensed under the GPL License. You may not use this file except in compliance with the License.
3    * You may obtain a copy of the License at
4    *
5    *   https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
6    *
7    * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
8    * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
9    * PURPOSE.
10   */
11  package psiprobe.model.jmx;
12  
13  /**
14   * The Class RuntimeInformation.
15   */
16  public class RuntimeInformation {
17  
18    /** The vm vendor. */
19    private String vmVendor;
20  
21    /** The committed virtual memory size. */
22    private long committedVirtualMemorySize;
23  
24    /** The free physical memory size. */
25    private long freePhysicalMemorySize;
26  
27    /** The free swap space size. */
28    private long freeSwapSpaceSize;
29  
30    /** The process cpu time. */
31    private long processCpuTime;
32  
33    /** The available processors. */
34    private int availableProcessors = 1;
35  
36    /** The total physical memory size. */
37    private long totalPhysicalMemorySize;
38  
39    /** The total swap space size. */
40    private long totalSwapSpaceSize;
41  
42    /** The os name. */
43    private String osName;
44  
45    /** The os version. */
46    private String osVersion;
47  
48    /** The start time. */
49    private long startTime;
50  
51    /** The uptime. */
52    private long uptime;
53  
54    /** The open file descriptor count. */
55    private long openFileDescriptorCount;
56  
57    /** The max file descriptor count. */
58    private long maxFileDescriptorCount;
59  
60    /**
61     * Gets the committed virtual memory size.
62     *
63     * @return the committed virtual memory size
64     */
65    public long getCommittedVirtualMemorySize() {
66      return committedVirtualMemorySize;
67    }
68  
69    /**
70     * Sets the committed virtual memory size.
71     *
72     * @param committedVirtualMemorySize the new committed virtual memory size
73     */
74    public void setCommittedVirtualMemorySize(long committedVirtualMemorySize) {
75      this.committedVirtualMemorySize = committedVirtualMemorySize;
76    }
77  
78    /**
79     * Gets the free physical memory size.
80     *
81     * @return the free physical memory size
82     */
83    public long getFreePhysicalMemorySize() {
84      return freePhysicalMemorySize;
85    }
86  
87    /**
88     * Sets the free physical memory size.
89     *
90     * @param freePhysicalMemorySize the new free physical memory size
91     */
92    public void setFreePhysicalMemorySize(long freePhysicalMemorySize) {
93      this.freePhysicalMemorySize = freePhysicalMemorySize;
94    }
95  
96    /**
97     * Gets the free swap space size.
98     *
99     * @return the free swap space size
100    */
101   public long getFreeSwapSpaceSize() {
102     return freeSwapSpaceSize;
103   }
104 
105   /**
106    * Sets the free swap space size.
107    *
108    * @param freeSwapSpaceSize the new free swap space size
109    */
110   public void setFreeSwapSpaceSize(long freeSwapSpaceSize) {
111     this.freeSwapSpaceSize = freeSwapSpaceSize;
112   }
113 
114   /**
115    * Gets the process cpu time.
116    *
117    * @return the process cpu time
118    */
119   public long getProcessCpuTime() {
120     return processCpuTime;
121   }
122 
123   /**
124    * Sets the process cpu time.
125    *
126    * @param processCpuTime the new process cpu time
127    */
128   public void setProcessCpuTime(long processCpuTime) {
129     this.processCpuTime = processCpuTime;
130   }
131 
132   /**
133    * Gets the available processors.
134    *
135    * @return the available processors
136    */
137   public int getAvailableProcessors() {
138     return availableProcessors;
139   }
140 
141   /**
142    * Sets the available processors.
143    *
144    * @param availableProcessors the new available processors
145    */
146   public void setAvailableProcessors(int availableProcessors) {
147     this.availableProcessors = availableProcessors;
148   }
149 
150   /**
151    * Gets the total physical memory size.
152    *
153    * @return the total physical memory size
154    */
155   public long getTotalPhysicalMemorySize() {
156     return totalPhysicalMemorySize;
157   }
158 
159   /**
160    * Sets the total physical memory size.
161    *
162    * @param totalPhysicalMemorySize the new total physical memory size
163    */
164   public void setTotalPhysicalMemorySize(long totalPhysicalMemorySize) {
165     this.totalPhysicalMemorySize = totalPhysicalMemorySize;
166   }
167 
168   /**
169    * Gets the total swap space size.
170    *
171    * @return the total swap space size
172    */
173   public long getTotalSwapSpaceSize() {
174     return totalSwapSpaceSize;
175   }
176 
177   /**
178    * Sets the total swap space size.
179    *
180    * @param totalSwapSpaceSize the new total swap space size
181    */
182   public void setTotalSwapSpaceSize(long totalSwapSpaceSize) {
183     this.totalSwapSpaceSize = totalSwapSpaceSize;
184   }
185 
186   /**
187    * Gets the os name.
188    *
189    * @return the os name
190    */
191   public String getOsName() {
192     return osName;
193   }
194 
195   /**
196    * Sets the os name.
197    *
198    * @param osName the new os name
199    */
200   public void setOsName(String osName) {
201     this.osName = osName;
202   }
203 
204   /**
205    * Gets the os version.
206    *
207    * @return the os version
208    */
209   public String getOsVersion() {
210     return osVersion;
211   }
212 
213   /**
214    * Sets the os version.
215    *
216    * @param osVersion the new os version
217    */
218   public void setOsVersion(String osVersion) {
219     this.osVersion = osVersion;
220   }
221 
222   /**
223    * Gets the start time.
224    *
225    * @return the start time
226    */
227   public long getStartTime() {
228     return startTime;
229   }
230 
231   /**
232    * Sets the start time.
233    *
234    * @param startTime the new start time
235    */
236   public void setStartTime(long startTime) {
237     this.startTime = startTime;
238   }
239 
240   /**
241    * Gets the uptime.
242    *
243    * @return the uptime
244    */
245   public long getUptime() {
246     return uptime;
247   }
248 
249   /**
250    * Sets the uptime.
251    *
252    * @param uptime the new uptime
253    */
254   public void setUptime(long uptime) {
255     this.uptime = uptime;
256   }
257 
258   /**
259    * Gets the vm vendor.
260    *
261    * @return the vm vendor
262    */
263   public String getVmVendor() {
264     return vmVendor;
265   }
266 
267   /**
268    * Sets the vm vendor.
269    *
270    * @param vmVendor the new vm vendor
271    */
272   public void setVmVendor(String vmVendor) {
273     this.vmVendor = vmVendor;
274   }
275 
276   /**
277    * Gets the open file descriptor count.
278    *
279    * @return the open file descriptor count
280    */
281   public long getOpenFileDescriptorCount() {
282     return openFileDescriptorCount;
283   }
284 
285   /**
286    * Sets the open file descriptor count.
287    *
288    * @param openFileDescriptorCount the new open file descriptor count
289    */
290   public void setOpenFileDescriptorCount(long openFileDescriptorCount) {
291     this.openFileDescriptorCount = openFileDescriptorCount;
292   }
293 
294   /**
295    * Gets the max file descriptor count.
296    *
297    * @return the max file descriptor count
298    */
299   public long getMaxFileDescriptorCount() {
300     return maxFileDescriptorCount;
301   }
302 
303   /**
304    * Sets the max file descriptor count.
305    *
306    * @param maxFileDescriptorCount the new max file descriptor count
307    */
308   public void setMaxFileDescriptorCount(long maxFileDescriptorCount) {
309     this.maxFileDescriptorCount = maxFileDescriptorCount;
310   }
311 
312 }