1 4 package com.tc.config.schema; 5 6 import com.tc.util.Assert; 7 8 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 } | Popular Tags |