001: /**
002: * Copyright 2004-2005 jManage.org
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */package org.jmanage.core.data;
016:
017: import java.io.Serializable;
018: import java.util.List;
019: import java.util.Map;
020:
021: /**
022: *
023: * date: Jan 9, 2005
024: * @author Rakesh Kalra
025: */
026: public class ApplicationConfigData implements Serializable {
027:
028: private String appId;
029: private String name;
030: private String host;
031: private Integer port;
032: private String url;
033: private String username;
034: private String password;
035: private String type;
036: private boolean isCluster;
037: private List childApplications;
038: protected Map paramValues;
039:
040: public String getApplicationId() {
041: return appId;
042: }
043:
044: public void setApplicationId(String appId) {
045: this .appId = appId;
046: }
047:
048: public String getName() {
049: return name;
050: }
051:
052: public void setName(String name) {
053: this .name = name;
054: }
055:
056: public String getHost() {
057: return host;
058: }
059:
060: public void setHost(String host) {
061: this .host = host;
062: }
063:
064: public Integer getPort() {
065: return port;
066: }
067:
068: public void setPort(Integer port) {
069: this .port = port;
070: }
071:
072: public String getURL() {
073: return url;
074: }
075:
076: public void setURL(String url) {
077: this .url = url;
078: }
079:
080: public String getUsername() {
081: return username;
082: }
083:
084: public void setUsername(String username) {
085: this .username = username;
086: }
087:
088: public String getPassword() {
089: return password;
090: }
091:
092: public void setPassword(String password) {
093: this .password = password;
094: }
095:
096: public String getType() {
097: return type;
098: }
099:
100: public void setType(String type) {
101: this .type = type;
102: }
103:
104: public Map getParamValues() {
105: return paramValues;
106: }
107:
108: public void setParamValues(Map paramValues) {
109: this .paramValues = paramValues;
110: }
111:
112: public void setCluster(boolean isCluster) {
113: this .isCluster = isCluster;
114: }
115:
116: /**
117: * @return true: if its a application cluster; false: otherwise
118: */
119: public boolean isCluster() {
120: return isCluster;
121: }
122:
123: public List getChildApplications() {
124: return childApplications;
125: }
126:
127: public void setChildApplications(List childApplications) {
128: assert isCluster;
129: this.childApplications = childApplications;
130: }
131: }
|