01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19: * USA
20: *
21: * --------------------------------------------------------------------------
22: * $Id: DiscoveryServiceForm.java 9838 2006-11-14 15:35:24Z danesa $
23: * --------------------------------------------------------------------------
24: */package org.objectweb.jonas.webapp.jonasadmin.service.discovery;
25:
26: import org.apache.struts.action.ActionForm;
27:
28: /**
29: * Form used to present the discovery service properties
30: * @author Adriana Danes
31: */
32: public final class DiscoveryServiceForm extends ActionForm {
33:
34: // ------------------------------------------------------------- Properties Variables
35: private String multicastAddress = null;
36: private String multicastPort = null;
37: private boolean isMaster = false;
38: private String multicastTtl = null;
39:
40: // ------------------------------------------------------------- Properties Methods
41:
42: public String getMulticastTtl() {
43: return multicastTtl;
44: }
45:
46: public void setMulticastTtl(String multicastTtl) {
47: this .multicastTtl = multicastTtl;
48: }
49:
50: /**
51: * @return Returns the multicastAddress.
52: */
53: public String getMulticastAddress() {
54: return multicastAddress;
55: }
56:
57: /**
58: * @param multicastAddress The multicastAddress to set.
59: */
60: public void setMulticastAddress(String multicastAddress) {
61: this .multicastAddress = multicastAddress;
62: }
63:
64: /**
65: * @return Returns the multicastPort.
66: */
67: public String getMulticastPort() {
68: return multicastPort;
69: }
70:
71: /**
72: * @param multicastPort The multicastPort to set.
73: */
74: public void setMulticastPort(String multicastPort) {
75: this .multicastPort = multicastPort;
76: }
77:
78: /**
79: * @return Returns the isMaster.
80: */
81: public boolean getMaster() {
82: return isMaster;
83: }
84:
85: /**
86: * @param isMaster The isMaster to set.
87: */
88: public void setMaster(boolean isMaster) {
89: this.isMaster = isMaster;
90: }
91: }
|