KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > ejb3 > dd > ClusterConfig


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.ejb3.dd;
8
9 import java.util.ArrayList JavaDoc;
10 import java.util.List JavaDoc;
11
12 /**
13  * Represents an <cluster-config> element of the jboss.xml deployment descriptor
14  * for the 1.4 schema
15  *
16  * @version <tt>$Revision: 1.1.2.1 $</tt>
17  * @author <a HREF="mailto:bdecoste@jboss.com">William DeCoste</a>
18  */

19 public class ClusterConfig
20 {
21    private String JavaDoc loadBalancePolicy = null;
22
23    private String JavaDoc partition = null;
24    
25    public String JavaDoc getLoadBalancePolicy()
26    {
27       return loadBalancePolicy;
28    }
29
30    public void setLoadBalancePolicy(String JavaDoc loadBalancePolicy)
31    {
32       this.loadBalancePolicy = loadBalancePolicy;
33    }
34
35    public String JavaDoc getPartition()
36    {
37       return partition;
38    }
39
40    public void setPartition(String JavaDoc partition)
41    {
42       this.partition = partition;
43    }
44
45    public String JavaDoc toString()
46    {
47       StringBuffer JavaDoc sb = new StringBuffer JavaDoc(100);
48       sb.append("[");
49       sb.append("loadBalancePolicy=").append(loadBalancePolicy);
50       sb.append("]");
51       return sb.toString();
52    }
53
54 }
55
Popular Tags