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.wrapper;
12
13 import java.util.Map.Entry;
14 import java.util.Set;
15
16 /**
17 * The Class WrapperInfo.
18 */
19 public class WrapperInfo {
20
21 /** The user. */
22 private String user;
23
24 /** The interactive user. */
25 private String interactiveUser;
26
27 /** The version. */
28 private String version;
29
30 /** The wrapper pid. */
31 private int wrapperPid;
32
33 /** The jvm pid. */
34 private int jvmPid;
35
36 /** The build time. */
37 private String buildTime;
38
39 /** The properties. */
40 private Set<Entry<Object, Object>> properties;
41
42 /** The controlled by wrapper. */
43 private boolean controlledByWrapper;
44
45 /** The launched as service. */
46 private boolean launchedAsService;
47
48 /** The debug enabled. */
49 private boolean debugEnabled;
50
51 /**
52 * Gets the user.
53 *
54 * @return the user
55 */
56 public String getUser() {
57 return user;
58 }
59
60 /**
61 * Sets the user.
62 *
63 * @param user the new user
64 */
65 public void setUser(String user) {
66 this.user = user;
67 }
68
69 /**
70 * Gets the interactive user.
71 *
72 * @return the interactive user
73 */
74 public String getInteractiveUser() {
75 return interactiveUser;
76 }
77
78 /**
79 * Sets the interactive user.
80 *
81 * @param interactiveUser the new interactive user
82 */
83 public void setInteractiveUser(String interactiveUser) {
84 this.interactiveUser = interactiveUser;
85 }
86
87 /**
88 * Gets the version.
89 *
90 * @return the version
91 */
92 public String getVersion() {
93 return version;
94 }
95
96 /**
97 * Sets the version.
98 *
99 * @param version the new version
100 */
101 public void setVersion(String version) {
102 this.version = version;
103 }
104
105 /**
106 * Gets the wrapper pid.
107 *
108 * @return the wrapper pid
109 */
110 public int getWrapperPid() {
111 return wrapperPid;
112 }
113
114 /**
115 * Sets the wrapper pid.
116 *
117 * @param wrapperPid the new wrapper pid
118 */
119 public void setWrapperPid(int wrapperPid) {
120 this.wrapperPid = wrapperPid;
121 }
122
123 /**
124 * Gets the jvm pid.
125 *
126 * @return the jvm pid
127 */
128 public int getJvmPid() {
129 return jvmPid;
130 }
131
132 /**
133 * Sets the jvm pid.
134 *
135 * @param jvmPid the new jvm pid
136 */
137 public void setJvmPid(int jvmPid) {
138 this.jvmPid = jvmPid;
139 }
140
141 /**
142 * Gets the builds the time.
143 *
144 * @return the builds the time
145 */
146 public String getBuildTime() {
147 return buildTime;
148 }
149
150 /**
151 * Sets the builds the time.
152 *
153 * @param buildTime the new builds the time
154 */
155 public void setBuildTime(String buildTime) {
156 this.buildTime = buildTime;
157 }
158
159 /**
160 * Gets the properties.
161 *
162 * @return the properties
163 */
164 public Set<Entry<Object, Object>> getProperties() {
165 return properties;
166 }
167
168 /**
169 * Sets the properties.
170 *
171 * @param properties the new properties
172 */
173 public void setProperties(Set<Entry<Object, Object>> properties) {
174 this.properties = properties;
175 }
176
177 /**
178 * Checks if is controlled by wrapper.
179 *
180 * @return true, if is controlled by wrapper
181 */
182 public boolean isControlledByWrapper() {
183 return controlledByWrapper;
184 }
185
186 /**
187 * Sets the controlled by wrapper.
188 *
189 * @param controlledByWrapper the new controlled by wrapper
190 */
191 public void setControlledByWrapper(boolean controlledByWrapper) {
192 this.controlledByWrapper = controlledByWrapper;
193 }
194
195 /**
196 * Checks if is launched as service.
197 *
198 * @return true, if is launched as service
199 */
200 public boolean isLaunchedAsService() {
201 return launchedAsService;
202 }
203
204 /**
205 * Sets the launched as service.
206 *
207 * @param launchedAsService the new launched as service
208 */
209 public void setLaunchedAsService(boolean launchedAsService) {
210 this.launchedAsService = launchedAsService;
211 }
212
213 /**
214 * Checks if is debug enabled.
215 *
216 * @return true, if is debug enabled
217 */
218 public boolean isDebugEnabled() {
219 return debugEnabled;
220 }
221
222 /**
223 * Sets the debug enabled.
224 *
225 * @param debugEnabled the new debug enabled
226 */
227 public void setDebugEnabled(boolean debugEnabled) {
228 this.debugEnabled = debugEnabled;
229 }
230
231 }