1 21 22 package org.objectweb.jonas.webapp.jonasadmin.joramplatform; 23 24 import javax.servlet.http.HttpServletRequest ; 25 26 import org.apache.struts.action.ActionErrors; 27 import org.apache.struts.action.ActionForm; 28 import org.apache.struts.action.ActionMapping; 29 30 35 36 public final class JoramPlatformForm extends ActionForm { 37 38 40 43 private String localServer = null; 44 47 private String [] remoteServers = null; 48 51 private boolean adapterLoaded = false; 52 55 private String configuration = null; 56 57 private int localPort; 58 59 private String localHost = null; 60 61 private int defaultThreshold; 62 63 private String defaultDMQ = null; 64 65 70 private String version = null; 71 76 private String connectingTimerTxt = null; 77 82 private String txPendingTimerTxt = null; 83 89 private String cnxPendingTimerTxt = null; 90 91 95 private boolean collocatedServer; 96 100 private String configDir = null; 101 105 private String adminFile = null; 106 109 private boolean persistentServer; 110 113 private String serverIdTxt = null; 114 117 private String serverName = null; 118 122 private String hostName = null; 123 126 private String serverPortTxt = null; 127 128 private long timeOutToAbortRequest; 129 131 137 public void reset(ActionMapping mapping, HttpServletRequest request) { 138 version = null; 139 localServer = null; 140 remoteServers = null; 141 adapterLoaded = false; 142 configuration = null; 143 } 144 145 155 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { 156 return new ActionErrors(); 157 } 158 159 162 public String getLocalServer() { 163 return localServer; 164 } 165 166 169 public void setLocalServer(String localServer) { 170 this.localServer = localServer; 171 } 172 173 176 public String [] getRemoteServers() { 177 return remoteServers; 178 } 179 180 183 public void setRemoteServers(String [] remoteServers) { 184 this.remoteServers = remoteServers; 185 } 186 187 190 public boolean getAdapterLoaded() { 191 return adapterLoaded; 192 } 193 194 197 public void setAdapterLoaded(boolean adapterLoaded) { 198 this.adapterLoaded = adapterLoaded; 199 } 200 201 204 public String getConfiguration() { 205 return configuration; 206 } 207 208 211 public void setConfiguration(String configuration) { 212 this.configuration = configuration; 213 } 214 215 218 public String getVersion() { 219 return version; 220 } 221 222 225 public void setVersion(String version) { 226 this.version = version; 227 } 228 229 232 public int getLocalPort() { 233 return localPort; 234 } 235 236 239 public void setLocalPort(int localPort) { 240 this.localPort = localPort; 241 } 242 243 246 public int getDefaultThreshold() { 247 return defaultThreshold; 248 } 249 250 253 public void setDefaultThreshold(int defaultThreshold) { 254 this.defaultThreshold = defaultThreshold; 255 } 256 257 260 public boolean isCollocatedServer() { 261 return collocatedServer; 262 } 263 264 267 public void setCollocatedServer(boolean collocatedServer) { 268 this.collocatedServer = collocatedServer; 269 } 270 271 274 public String getConfigDir() { 275 return configDir; 276 } 277 278 281 public void setConfigDir(String configDir) { 282 this.configDir = configDir; 283 } 284 285 288 public String getAdminFile() { 289 return adminFile; 290 } 291 292 295 public void setAdminFile(String adminFile) { 296 this.adminFile = adminFile; 297 } 298 299 302 public boolean isPersistentServer() { 303 return persistentServer; 304 } 305 306 309 public void setPersistentServer(boolean persistentServer) { 310 this.persistentServer = persistentServer; 311 } 312 313 316 public String getServerIdTxt() { 317 return serverIdTxt; 318 } 319 320 323 public void setServerIdTxt(String serverIdTxt) { 324 this.serverIdTxt = serverIdTxt; 325 } 326 327 330 public String getServerName() { 331 return serverName; 332 } 333 334 337 public void setServerName(String serverName) { 338 this.serverName = serverName; 339 } 340 341 344 public String getHostName() { 345 return hostName; 346 } 347 348 351 public void setHostName(String hostName) { 352 this.hostName = hostName; 353 } 354 355 358 public String getServerPortTxt() { 359 return serverPortTxt; 360 } 361 362 365 public void setServerPortTxt(String serverPortTxt) { 366 this.serverPortTxt = serverPortTxt; 367 } 368 369 372 public String getCnxPendingTimerTxt() { 373 return cnxPendingTimerTxt; 374 } 375 376 379 public void setCnxPendingTimerTxt(String cnxPendingTimerTxt) { 380 this.cnxPendingTimerTxt = cnxPendingTimerTxt; 381 } 382 383 386 public String getConnectingTimerTxt() { 387 return connectingTimerTxt; 388 } 389 390 393 public void setConnectingTimerTxt(String connectingTimerTxt) { 394 this.connectingTimerTxt = connectingTimerTxt; 395 } 396 397 400 public String getTxPendingTimerTxt() { 401 return txPendingTimerTxt; 402 } 403 404 407 public void setTxPendingTimerTxt(String txPendingTimerTxt) { 408 this.txPendingTimerTxt = txPendingTimerTxt; 409 } 410 411 414 public String getLocalHost() { 415 return localHost; 416 } 417 418 421 public void setLocalHost(String localHost) { 422 this.localHost = localHost; 423 } 424 425 428 public long getTimeOutToAbortRequest() { 429 return timeOutToAbortRequest; 430 } 431 432 435 public void setTimeOutToAbortRequest(long timeOutToAbortRequest) { 436 this.timeOutToAbortRequest = timeOutToAbortRequest; 437 } 438 439 442 public String getDefaultDMQ() { 443 return defaultDMQ; 444 } 445 446 449 public void setDefaultDMQ(String defaultDMQ) { 450 this.defaultDMQ = defaultDMQ; 451 } 452 } 453 | Popular Tags |