KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > config > schema > L2Info


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.config.schema;
5
6 import com.tc.util.Assert;
7
8 /**
9  * Data used by the admin tool about each L2.
10  */

11 public class L2Info implements java.io.Serializable JavaDoc {
12
13   public static final String JavaDoc IMPLICIT_L2_NAME = "(implicit)";
14
15   private final String JavaDoc name;
16   private final String JavaDoc host;
17   private final int jmxPort;
18
19   public L2Info(String JavaDoc name, String JavaDoc host, int jmxPort) {
20     Assert.assertNotBlank(name);
21     Assert.assertNotBlank(host);
22     Assert.eval(jmxPort >= 0);
23
24     this.name = name;
25     this.host = host;
26     this.jmxPort = jmxPort;
27   }
28
29   public String JavaDoc name() {
30     return this.name;
31   }
32
33   public String JavaDoc host() {
34     return this.host;
35   }
36
37   public int jmxPort() {
38     return this.jmxPort;
39   }
40
41 }
Popular Tags