1 /*
2 * <cvs:source>$Source: /devel/astrogrid/community/common/src/java/org/astrogrid/community/common/service/data/ServiceStatusData.java,v $</cvs:source>
3 * <cvs:author>$Author: dave $</cvs:author>
4 * <cvs:date>$Date: 2004/09/16 23:18:08 $</cvs:date>
5 * <cvs:version>$Revision: 1.6 $</cvs:version>
6 *
7 * <cvs:log>
8 * $Log: ServiceStatusData.java,v $
9 * Revision 1.6 2004/09/16 23:18:08 dave
10 * Replaced debug logging in Community.
11 * Added stream close() to FileStore.
12 *
13 * Revision 1.5.8.1 2004/09/16 09:58:48 dave
14 * Replaced debug with commons logging ....
15 *
16 * Revision 1.5 2004/09/09 01:19:50 dave
17 * Updated MIME type handling in MySpace.
18 * Extended test coverage for MIME types in FileStore and MySpace.
19 * Added VM memory data to community ServiceStatusData.
20 *
21 * Revision 1.4.74.1 2004/09/07 04:01:47 dave
22 * Added memory stats ...
23 *
24 * Revision 1.4 2004/06/18 13:45:20 dave
25 * Merged development branch, dave-dev-200406081614, into HEAD
26 *
27 * Revision 1.3.52.1 2004/06/17 13:38:59 dave
28 * Tidied up old CVS log entries
29 *
30 * </cvs:log>
31 *
32 * TODO .. Re-factor this as a Map of properties ?
33 *
34 *
35 */
36 package org.astrogrid.community.common.service.data ;
37
38 public class ServiceStatusData
39 {
40 /***
41 * Our config file location.
42 *
43 */
44 private String configPath ;
45
46 /***
47 * Get our config file location.
48 *
49 */
50 public String getConfigPath()
51 {
52 return this.configPath ;
53 }
54
55 /***
56 * Set our config file location.
57 *
58 */
59 public void setConfigPath(String value)
60 {
61 this.configPath = value ;
62 }
63
64 /***
65 * Our database name.
66 *
67 */
68 private String databaseName ;
69
70 /***
71 * Get our database name.
72 *
73 */
74 public String getDatabaseName()
75 {
76 return this.databaseName ;
77 }
78
79 /***
80 * Set our database name.
81 *
82 */
83 public void setDatabaseName(String name)
84 {
85 this.databaseName = name ;
86 }
87
88 /***
89 * The current available memory on the server.
90 *
91 */
92 private long freeMemory ;
93
94 /***
95 * Get the current available memory on the server.
96 *
97 */
98 public long getFreeMemory()
99 {
100 return this.freeMemory ;
101 }
102
103 /***
104 * Set the current available memory on the server.
105 *
106 */
107 public void setFreeMemory(long value)
108 {
109 this.freeMemory = value ;
110 }
111
112 /***
113 * The current total memory on the server.
114 *
115 */
116 private long totalMemory ;
117
118 /***
119 * Get the current total memory on the server.
120 *
121 */
122 public long getTotalMemory()
123 {
124 return this.totalMemory ;
125 }
126
127 /***
128 * Set the current total memory on the server.
129 *
130 */
131 public void setTotalMemory(long value)
132 {
133 this.totalMemory = value ;
134 }
135
136 }