01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.config.schema;
05:
06: import com.tc.util.Assert;
07:
08: /**
09: * Data used by the admin tool about each L2.
10: */
11: public class L2Info implements java.io.Serializable {
12:
13: public static final String IMPLICIT_L2_NAME = "(implicit)";
14:
15: private final String name;
16: private final String host;
17: private final int jmxPort;
18:
19: public L2Info(String name, String 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 name() {
30: return this .name;
31: }
32:
33: public String host() {
34: return this .host;
35: }
36:
37: public int jmxPort() {
38: return this.jmxPort;
39: }
40:
41: }
|