@@ -35,8 +35,8 @@ public final class ClusterConfig implements Cloneable {
3535 private MetadataCodec metadataCodec = MetadataCodec .INSTANCE ;
3636
3737 private String memberAlias ;
38- private String containerHost ;
39- private Integer containerPort ;
38+ private String externalHost ;
39+ private Integer externalPort ;
4040
4141 private TransportConfig transportConfig = TransportConfig .defaultConfig ();
4242 private FailureDetectorConfig failureDetectorConfig = FailureDetectorConfig .defaultConfig ();
@@ -147,27 +147,27 @@ public ClusterConfig metadataCodec(MetadataCodec metadataCodec) {
147147 }
148148
149149 /**
150- * Returns mappedHost . {@code mappedHost } is a config property for container environments, it's
151- * being set for advertising to scalecube cluster some connectable hostname which maps to
150+ * Returns externalHost . {@code externalHost } is a config property for container environments,
151+ * it's being set for advertising to scalecube cluster some connectable hostname which maps to
152152 * scalecube transport's hostname on which scalecube transport is listening.
153153 *
154- * @return mapped host
154+ * @return external host
155155 */
156- public String containerHost () {
157- return containerHost ;
156+ public String externalHost () {
157+ return externalHost ;
158158 }
159159
160160 /**
161- * Setter for mappedHost . {@code mappedHost } is a config property for container environments, it's
162- * being set for advertising to scalecube cluster some connectable hostname which maps to
161+ * Setter for externalHost . {@code externalHost } is a config property for container environments,
162+ * it's being set for advertising to scalecube cluster some connectable hostname which maps to
163163 * scalecube transport's hostname on which scalecube transport is listening.
164164 *
165- * @param mappedHost mapped host
165+ * @param externalHost external host
166166 * @return new {@code ClusterConfig} instance
167167 */
168- public ClusterConfig containerHost (String mappedHost ) {
168+ public ClusterConfig externalHost (String externalHost ) {
169169 ClusterConfig c = clone ();
170- c .containerHost = mappedHost ;
170+ c .externalHost = externalHost ;
171171 return c ;
172172 }
173173
@@ -195,27 +195,27 @@ public ClusterConfig memberAlias(String memberAlias) {
195195 }
196196
197197 /**
198- * Returns mappedPort . {@code mappedPort } is a config property for container environments, it's
199- * being set for advertising to scalecube cluster a port which mapped to scalecube transport's
200- * listening port.
198+ * Returns externalPort . {@code externalPort } is a config property for container environments,
199+ * it's being set for advertising to scalecube cluster a port which mapped to scalecube
200+ * transport's listening port.
201201 *
202- * @return mapped port
202+ * @return external port
203203 */
204- public Integer containerPort () {
205- return containerPort ;
204+ public Integer externalPort () {
205+ return externalPort ;
206206 }
207207
208208 /**
209- * Setter for mappedPort . {@code mappedPort } is a config property for container environments, it's
210- * being set for advertising to scalecube cluster a port which mapped to scalecube transport's
211- * listening port.
209+ * Setter for externalPort . {@code externalPort } is a config property for container environments,
210+ * it's being set for advertising to scalecube cluster a port which mapped to scalecube
211+ * transport's listening port.
212212 *
213- * @param mappedPort mapped port
213+ * @param externalPort external port
214214 * @return new {@code ClusterConfig} instance
215215 */
216- public ClusterConfig containerPort (Integer mappedPort ) {
216+ public ClusterConfig externalPort (Integer externalPort ) {
217217 ClusterConfig c = clone ();
218- c .containerPort = mappedPort ;
218+ c .externalPort = externalPort ;
219219 return c ;
220220 }
221221
@@ -304,8 +304,8 @@ public String toString() {
304304 .add ("metadataTimeout=" + metadataTimeout )
305305 .add ("metadataCodec=" + metadataCodec )
306306 .add ("memberAlias='" + memberAlias + "'" )
307- .add ("containerHost ='" + containerHost + "'" )
308- .add ("containerPort =" + containerPort )
307+ .add ("externalHost ='" + externalHost + "'" )
308+ .add ("externalPort =" + externalPort )
309309 .add ("transportConfig=" + transportConfig )
310310 .add ("failureDetectorConfig=" + failureDetectorConfig )
311311 .add ("gossipConfig=" + gossipConfig )
0 commit comments